שפּרינגען צו אינהאַלט

Grok Imagine Video 1.5 Lite Text to Video

אינטעגרירן

מאָדעל־id xai/grok-imagine-video/v1.5/lite/text-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/lite/text-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"
  }'

# 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"

פֿײַלן ווי דער בײַשפּיל: ⁨$ 0.18⁩ 180 API־קרעדיטן אײַערע פֿײַלן ווערן געמאסטן איידערן לויפֿן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
xAI טעקסט צו ווידעא שנעל1–15 sביז 1080p #text-to-video

Lite 1.5 טעקסט־צו־ווידעא מיט קליפּס פֿון 1 ביז 15 סעקונדעס און רעזאָלוציעס ביז 1080p

xAI · ווידעא

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט 88 / 4096

באַשרײַבונג וואָס ספּעציפֿיצירט וועלכן ווידעא צו שאַפֿן.

resolution סטאַנדאַרט 720p

רעזולטאַט־ווידעא־רעזאָלוציע.

aspect_ratio סטאַנדאַרט 16:9

אַספּעקט־פאַרהעלטעניש פון דער רעזולטירנדיקער ווידעא.

סטאַנדאַרט 6

ווידעא־לענג געמאסטן אין סעקונדעס.

פֿאָרגעשריטן enable_safety_checker
POST /run/xai/grok-imagine-video/v1.5/lite/text-to-video?wait=20 פּרײַז → ⁨$ 0.18⁩
# 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/lite/text-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"
  }'

# 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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Grok Imagine Video 1.5 Lite Text to Video

שאַפֿט ווידעא פֿון אַ טעקסט־פּראָמפּט פֿון ביז 4096 אותיות. `duration` גייט פֿון 1 ביז 15 סעקונדעס (פעליק 6), און `resolution` קען זײַן 480p, 720p אָדער 1080p. אַספּעקט־פּראָפּאָרציעס אַרייַננעמען 16:9 (פעליק), 4:3, 3:2, 1:1, 2:3, 3:4 און 9:16. קלייבט אים ווען איר דאַרפֿט העכערע רעזולטאַט־רעזאָלוציע פֿון בלויז טעקסט.

פּאַראַמעטערס

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptפארלאנגט
טיפּstring
≤ 4,096 כאַראַקטערן
באַשרײַבונג וואָס ספּעציפֿיצירט וועלכן ווידעא צו שאַפֿן.
durationאָפּציאָנעל
טיפּinteger
סטאַנדאַרט6
1 – 15
ווידעא־לענג געמאסטן אין סעקונדעס.
resolutionאָפּציאָנעל
טיפּenum
סטאַנדאַרט720p
480p720p1080p
רעזולטאַט־ווידעא־רעזאָלוציע.
aspect_ratioאָפּציאָנעל
טיפּenum
סטאַנדאַרט16:9
16:94:33:21:12:33:49:16
אַספּעקט־פאַרהעלטעניש פון דער רעזולטירנדיקער ווידעא.
enable_safety_checkerאָפּציאָנעל
טיפּboolean
סטאַנדאַרטtrue
סקרינינג קען ווערן פאַרלייכטערט דורך שטעלן false, אויב דער רופער איז אָטעריזירט.
פארלאנגט

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/v1.5/lite/text-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": 180,
    "usd": "0.18",
    "charged": 180,
    "refunded": 0
  },
  "input": {
    "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,
      "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"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}ווידעא געשאַפֿן דורכן מאָדעל.

מער מאָדעלן: טעקסט צו ווידעא

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/xai/grok-imagine-video/v1.5/lite/text-to-video.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt