Skip to content

Grok Imagine Video · Text to Video

Integrate

Model id xai/grok-imagine-video/text-to-video
# 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/xai/grok-imagine-video/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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.42 420 API credits Run it on this page

Get API key

Made on Doitong

Public works made with Grok Imagine by the Doitong community. Reuse a prompt in one click.

Public works shown: 16
Персонаж перемещается между всплывающими иконками, указывая на них пальцем. Каждая иконка подсвеч... Video

Персонаж перемещается между всплывающими иконками, указывая на них пальцем. Каждая иконка подсвечивается при упоминании. Камера следует за движениями персонажа, создавая эффект презентации. В конце сцены персонаж хитро подмигивает зрителям. On-screen dialogue (characters speak with lip-sync):...

Камера плавно наезжает на персонажа, сидящего на губе. Персонаж активно жестикулирует маленькими ... Video

Камера плавно наезжает на персонажа, сидящего на губе. Персонаж активно жестикулирует маленькими ручками и меняет мимику от спокойной до хитрой. Его тело слегка вибрирует, как желе, когда он говорит. На заднем плане видна текстура кожи с порами и мелкими волосками. On-screen dialogue (characters...

Персонаж гордо выпрямляется на вершине воспаления. Камера медленно опускается вниз, показывая мас... Video

Персонаж гордо выпрямляется на вершине воспаления. Камера медленно опускается вниз, показывая масштаб 'простуды' на губе. Персонаж смеется и разводит руками, привлекая внимание зрителя. Движения персонажа плавные и уверенные. On-screen dialogue (characters speak with lip-sync): Вирус герпеса...

Персонаж делает призывающий жест руками к зрителю. Камера максимально приближается к его лицу. В ... Video

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

Персонаж в центре кадра указывает на всплывающие вокруг него иконки стресса и недосыпа. Он делает... Video

Персонаж в центре кадра указывает на всплывающие вокруг него иконки стресса и недосыпа. Он делает резкие движения, демонстрируя силу. Камера совершает легкий круговой облет вокруг персонажа, подчеркивая динамику момента. Иконки на фоне плавно пульсируют. On-screen dialogue (characters speak with...

Video

Крупный план процесса сборки торта светлый мраморный стол. Влажные коржи из тёмного шоколада выкладываются один на другой на тонкую белую подложку, каждый слой равномерно промазывается шоколадным кремом с помощью кондитерского мешка. Торт собирается на металлической подставке. Руки в одноразовых...

Video

(0:00-0:05) SHOT: Статична камера фокусується на руці Олексія на стіні. Він завмирає на мить, насолоджуючись тишею. Озвучки немає. У повітрі проявляється бірюзовий напис: «Звукоізоляція між номерами: −52 дБ. Тиша — це результат професійної звукоізоляції». Жодних зайвих рухів. HARD CUT. No...

Video

(0:00-0:06) SHOT: Олексій штовхає двері, заходить усередину в номер (використовуємо референсне зображення - Роскошный гостиничный номер), і в цей момент плавно вмикається тепле стельове світло. Камера слідує за ним зі спини на рівні плеча. У повітрі біля лампи виникає напівпрозора бірюзова...

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 4096

Description specifying what video to create.

resolution default 720p

Output video's resolution.

aspect_ratio default 16:9

Aspect ratio for the resulting video.

default 6

Video length measured in seconds.

Advanced enable_safety_checker
POST /run/xai/grok-imagine-video/text-to-video?wait=20 quote → $0.42
# 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/xai/grok-imagine-video/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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Grok Imagine Video · Text to Video

Creates a clip purely from a text `prompt` of up to 4096 characters, with no image input. Set `duration` from 1 to 15 seconds (default 6) and `resolution` to 480p or 720p. Aspect ratios include 16:9 (default), 4:3, 3:2, 1:1, 2:3, 3:4 and 9:16. The standard starting point when you have no source material.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 4,096 characters
Description specifying what video to create.
durationoptional
Typeinteger
Default6
1 – 15
Video length measured in seconds.
resolutionoptional
Typeenum
Default720p
480p720p
Output video's resolution.
aspect_ratiooptional
Typeenum
Default16:9
16:94:33:21:12:33:49:16
Aspect ratio for the resulting video.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/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": 420,
    "usd": "0.42",
    "charged": 420,
    "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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Video produced by the model.

More models: Text to Video

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/xai/grok-imagine-video/text-to-video.md. All models and guides: https://doitong.com/developers/llms.txt