Dža ko lil

Grok Imagine Video 1.5 Reference to Video

Integriruj

Modelosko id xai/grok-imagine-video/v1.5/reference-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/v1.5/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Fajlo sar o misalo: $0.65 650 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
xAI Referenca ko Video Referencaki inputuraLipsync1–15 sdži 720p #stylized#transform

Verzija 1.5 reference-to-video dži 7 fotkenca tagime <IMAGE_0>, <IMAGE_1> thaj klipurenca dži 15 sekund

xAI · Video

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul 88 / 4096

Prompto savo specifikinel o video savo te kerel pes. Identifikisar e referenca e <IMAGE_0>, <IMAGE_1>, thaj palutne tagonca.

•trubul reference_image_urls
Čhiv jekh fajl, vaj · dži 7

Referencakere kipo-URL-ja save den stiloski thaj contentoski dikhipen vaś o video. Den maškar jekh thaj 7 kipo, thaj phen len ande prompto sar <IMAGE_0>, <IMAGE_1>, thaj ajso dural.

resolution standardno 480p

Rezolucija e rezultatoskere videoski.

aspect_ratio standardno 16:9

Aspect ratio e rezultato videoqo.

standardno 8

Videosqi lungepen merime ande sekunda.

Lučhe enable_safety_checker
POST /run/xai/grok-imagine-video/v1.5/reference-to-video?wait=20 hesab → $0.65
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/v1.5/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Grok Imagine Video 1.5 Reference to Video

Kerel video katar jek prompto thaj 1 dži 7 referenca kipa ande `reference_image_urls`. Referis pe sako kipo ande teksto e tagenca sar <IMAGE_0> thaj <IMAGE_1>. Pala e purani referenca modela, `duration` džal dži 15 sekunda (standardno 8). O rezultato si 480p vaj 720p ande proporci katar 16:9 dži 9:16.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 4,096 simbolura
Prompto savo specifikinel o video savo te kerel pes. Identifikisar e referenca e <IMAGE_0>, <IMAGE_1>, thaj palutne tagonca.
reference_image_urlstrubul images
Tipurl[] · image
≤ 7 artiklura
Referencakere kipo-URL-ja save den stiloski thaj contentoski dikhipen vaś o video. Den maškar jekh thaj 7 kipo, thaj phen len ande prompto sar <IMAGE_0>, <IMAGE_1>, thaj ajso dural.
durationopcionalno
Tipinteger
standardno8
1 – 15
Videosqi lungepen merime ande sekunda.
resolutionopcionalno
Tipenum
standardno480p
480p720p
Rezolucija e rezultatoskere videoski.
aspect_ratioopcionalno
Tipenum
standardno16:9
16:94:33:21:12:33:49:16
Aspect ratio e rezultato videoqo.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/v1.5/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": 650,
    "usd": "0.65",
    "charged": 650,
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Video kerdo le modelostar.

Bute modeli: Referenca ko Video

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/xai/grok-imagine-video/v1.5/reference-to-video.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt