Neidio i'r cynnwys

Pika Scenes (v2.2)

Integreiddio

ID y model pika/v2.2/pikascenes
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/pika/v2.2/pikascenes?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Y cais hwn: $0.45 450 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Pika Delwedd i Fideo 5–10 shyd at 1080p #editing#effects#animation

Yn cyfuno sawl delwedd gyfeirio yn un fideo, gyda chyfuno manwl gywir neu greadigol

Pika · Fideo

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Disgrifiad testun o'r fideo i'w gynhyrchu.

•gofynnol image_urls
Gollyngwch ffeil, neu

URLs sy'n nodi'r delweddau ffynhonnell a gaiff eu cyfuno'n fideo.

duration 5 s

Hyd fideo allbwn, wedi’i fesur mewn eiliadau.

aspect_ratio rhagosodedig 16:9

Cymhareb agwedd ar gyfer y fideo allbwn.

resolution rhagosodedig 1080p

Cydraniad y fideo allbwn.

Uwch negative_prompt · ingredients_mode · seed
rhagosodedig ugly, bad, terrible

Anogiad negyddol a ddefnyddir ar gyfer arweiniad y model.

ingredients_mode rhagosodedig precise

Modd integreiddio delweddau lluosog, gyda dewis rhwng cywirdeb uwch modd precise a chreadigrwydd uwch modd creative.

Gwerth hedyn a ddefnyddir gan y generadur rhifau ar hap.

POST /run/pika/v2.2/pikascenes?wait=20 dyfynbris → $0.45
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/pika/v2.2/pikascenes?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Pika Scenes (v2.2)

Yn uno delweddau lluosog o `image_urls` yn un clip wedi’i arwain gan `prompt` gofynnol. Mae `ingredients_mode` yn newid rhwng precise, sy’n glynu’n agosach at y ffynonellau, a creative, sy’n caniatáu mwy o ryddid. Yn cefnogi saith cymhareb agwedd, 720p neu 1080p (rhagosodiad 1080p), a hyd o 5 neu 10 eiliad.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
image_urlsgofynnol images
Mathurl[] · image
URLs sy'n nodi'r delweddau ffynhonnell a gaiff eu cyfuno'n fideo.
promptgofynnol
Mathstring
Disgrifiad testun o'r fideo i'w gynhyrchu.
negative_promptdewisol
Mathstring
Rhagosodedigugly, bad, terrible
Anogiad negyddol a ddefnyddir ar gyfer arweiniad y model.
seeddewisol
Mathinteger | null
Gwerth hedyn a ddefnyddir gan y generadur rhifau ar hap.
aspect_ratiodewisol
Mathenum
Rhagosodedig16:9
16:99:161:14:55:43:22:3
Cymhareb agwedd ar gyfer y fideo allbwn.
resolutiondewisol
Mathenum
Rhagosodedig1080p
720p1080p
Cydraniad y fideo allbwn.
durationdewisol
Mathenum
Rhagosodedig5
510
Hyd fideo allbwn, wedi’i fesur mewn eiliadau.
ingredients_modedewisol
Mathenum
Rhagosodedigprecise
precisecreative
Modd integreiddio delweddau lluosog, gyda dewis rhwng cywirdeb uwch modd precise a chreadigrwydd uwch modd creative.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "pika/v2.2/pikascenes",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 450,
    "usd": "0.45",
    "charged": 450,
    "refunded": 0
  },
  "input": {
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
video
object {url, content_type, file_name, file_size}Fideo a gynhyrchir wedi'i lunio o ddelweddau lluosog.

Mwy o fodelau: Delwedd i Fideo

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/pika/v2.2/pikascenes.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt