Leum chun t-susbaint

Grok Imagine Reference to Video

Amalaich

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

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

Faidhlichean mar an eisimpleir: $0.402 402 creideasan API · ≈ ₽43.14 thèid na faidhlichean agad a thomhas ron ruith Ruith e air an duilleig seo

Faigh iuchair API
xAI Iomradh gu Bhidio In-chuir iomraidh1–10 ssuas ri 720p #video-edit#v2v#grok#xai

Cruthaich bhidio air a stiùireadh le 1 gu 7 ìomhaighean iomraidh air an tagaigeadh sa prompt mar @Image1, @Image2

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Grok Imagine. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 16
Bhidio

The camera starts with a close-up on the Uterus's face showing pure exhaustion, then slowly tilts down to reveal the tiny, injured Sperm hobbling into the frame. The Sperm stops and tries to puff out its chest heroically while waving a crutch in the air. As he speaks, he loses his balance and...

Bhidio

Камера плавно панорамирует слева направо, открывая вид на просыпающуюся деревню. Жители выходят из домов, обмениваясь приветствиями, пар от их дыхания виден в морозном воздухе. Мальчики похлопывают лошадей по шее, а девочки играют, подбрасывая снег. Движение размеренное, создающее ощущение начала...

Bhidio

Устойчивая, статичная камера. Классическая диалоговая последовательность "кадр-контркадр". Без резких движений, подчеркивающих формальность и окончательность ситуации. On-screen dialogue (characters speak with lip-sync): Юрист (voice: Женский голос. Теплый, мелодичный меццо-сопрано с уверенным,...

Bhidio

Пальцы Аиши быстро, но немного неуклюже бегают по клавишам, совершая ошибку. Она резко останавливается, сжимая кулаки. Камера совершает быстрый круговой облет вокруг неё, передавая чувство головокружения и фрустрации. Затем она снова кладет руки на клавиши, её взгляд становится жестким и...

Bhidio

Тигр медленно поворачивает голову к напарнику, произнося фразу с холодной уверенностью. Камера плавно приближается к лицу тигра. Лёгкий дождь усиливает блики на асфальте. Атмосфера растущей напряжённости. On-screen dialogue (characters speak with lip-sync): Барс (voice: Низкий грубый бас,...

Bhidio

Camera slowly pushes in, the boys wave enthusiastically and smile, dynamic and joyful movement. On-screen dialogue (characters speak with lip-sync): Роберт (voice: Звонкий, чистый детский голос с мягким тембром, спокойной интонацией и легкой, дружелюбной энергией.): "Всем привет!"; Рафаэль...

Bhidio

Искры от костра взлетают вверх, смешиваясь со звездами. Анастасия Георгиевна мягко гладит Юру по голове и что-то шепчет ему. Камера медленно приближается к их лицам, передавая интимность момента. Огонь мерцает, создавая живые тени на их лицах и на стене строящейся школы за их спинами. Это момент...

Bhidio

Палец Елены уверенно прокручивает список товаров в приложении, останавливаясь на продуктах категории «Здоровье». Камера совершает плавный боковой проезд вокруг рук, создавая динамику. На заднем плане мягко переливается свет, имитируя уютную домашнюю обстановку. В конце сцены на экране появляется...

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach 88 / 4096

Prompt gineadh bhidio le iomraidhean ìomhaighe ann an òrdugh: tha @Image1 a’ comharrachadh a’ chiad inntrig ann an reference_image_urls, @Image2 an dàrna tè, agus mar sin air adhart.

•riatanach reference_image_urls
Leig às faidhle, no · suas ri 7

URLan ìomhaighean iomraidh a’ solarachadh stiùireadh stoidhle is susbaint airson a’ bhidio. Thoir seachad eadar aon agus 7 ìomhaighean, agus thoir iomradh orra sa phrompt a’ cleachdadh @Image1, @Image2, agus mar sin air adhart.

resolution bun-roghainn 480p

Dùmhlachd-bhreacaidh bhidio an às-chuir.

aspect_ratio bun-roghainn 16:9

Co-mheas taobh a’ bhidio a thig às.

bun-roghainn 8

Fad a’ bhidio air a thomhas ann an diogan.

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

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

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Grok Imagine Reference to Video

Tog criomag bho prompt teacsa agus 1 gu 7 ìomhaighean iomraidh ann an `reference_image_urls`, a bhios nan stiùiridhean stoidhle is susbaint. Thoir iomradh orra sa prompt mar @Image1, @Image2 agus mar sin air adhart, ann an òrdugh. Tha an ùine eadar 1 agus 10 diogan (8 mar bhunait), ’s e 480p no 720p an rùn, agus tha grunn cho-mheasan taobh bho 16:9 gu 9:16 rim faighinn.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
≤ 4,096 caractar
Prompt gineadh bhidio le iomraidhean ìomhaighe ann an òrdugh: tha @Image1 a’ comharrachadh a’ chiad inntrig ann an reference_image_urls, @Image2 an dàrna tè, agus mar sin air adhart.
reference_image_urlsriatanach images
Seòrsaurl[] · image
≤ 7 nì
URLan ìomhaighean iomraidh a’ solarachadh stiùireadh stoidhle is susbaint airson a’ bhidio. Thoir seachad eadar aon agus 7 ìomhaighean, agus thoir iomradh orra sa phrompt a’ cleachdadh @Image1, @Image2, agus mar sin air adhart.
durationroghainneil
Seòrsainteger
Bun-roghainn8
1 – 10
Fad a’ bhidio air a thomhas ann an diogan.
resolutionroghainneil
Seòrsaenum
Bun-roghainn480p
480p720p
Dùmhlachd-bhreacaidh bhidio an às-chuir.
aspect_ratioroghainneil
Seòrsaenum
Bun-roghainn16:9
16:94:33:21:12:33:49:16
Co-mheas taobh a’ bhidio a thig às.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Faodar sgrìonadh a shocrachadh le false, ma tha cead aig an neach-gairm.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/reference-to-video",
  "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": 402,
    "usd": "0.402",
    "charged": 402,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Bhidio a rinn am modail.

Barrachd mhodalan: Iomradh gu Bhidio

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/xai/grok-imagine-video/reference-to-video.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt