Skip to main content

Grok Video 1.5

In this page's examples, {BASE_URL} is https://api.uniall.ai.

Updated: 2026-08-03

Use the public model grok-video-1.5 for text-to-video, single-image animation, and multi-image reference generation. Submit a task through the UniAll async video API, then poll the task until it completes or fails.

1. Capability Scope

ModeImage InputPromptMaximum Resolution
Text-to-videoNo image fieldRequired1080p
Single-image-to-videoOne image or image_urlOptional1080p
Reference-to-video1 to 7 reference_images or reference_image_urlsRequired720p

The model also supports:

  • durations from 1 to 15 seconds, defaulting to 8 seconds;
  • 480p, 720p, and 1080p output, defaulting to 480p;
  • auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, and 2:3 aspect ratios;
  • HTTP(S) image URLs and complete image Data URLs.

This public model does not support reference audio, source-video editing, or video extension. Use the existing Grok Imagine video models for edit and extend workflows.

2. When To Use It

Use grok-video-1.5 when you need to:

  • create a video directly from a text prompt;
  • animate one source image, with or without an additional prompt;
  • keep a character, product, or visual style consistent across 1 to 7 reference images;
  • request up to 1080p for text-to-video or single-image generation.

Do not use this model for first-and-last-frame generation, reference audio, video editing, or video extension.

3. Endpoint And Authentication

Use the primary endpoints for new integrations:

PurposeMethodPath
Create a video taskPOST/v1/videos
Query a video taskGET/v1/videos/{task_id}

The compatible /v1/videos/generations create and query paths remain available.

Every request requires a Bearer token:

Authorization: Bearer sk-***

Task creation also requires:

Content-Type: application/json

4. Request Body Parameters

ParameterTypeRequiredDescription
modelstringYesMust be grok-video-1.5.
promptstringConditionalRequired for text and reference generation; optional for single-image generation.
durationinteger or integer stringNo1 to 15. Defaults to 8.
secondsinteger or integer stringNoCompatible alias for duration. If both are present, their values must match.
resolutionstringNo480p, 720p, or 1080p. Defaults to 480p. Reference generation supports up to 720p.
sizestringNoCompatible alias for resolution. If both are present, their values must match.
aspect_ratiostringNoauto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, or 2:3.
imageobjectNoOne structured image in the form {"url":"..."}.
image_urlstringNoCompatible single-image field.
reference_imagesobject[]No1 to 7 structured images in the form [{"url":"..."}].
reference_image_urlsstring[]NoCompatible array containing 1 to 7 image URLs or Data URLs.

Prefer duration over seconds, resolution over size, and the structured image or reference_images fields in new integrations.

Image Field Selection

The four image fields are mutually exclusive. Choose exactly one field for an image-based request:

Input ShapeUse
One structured imageimage: {"url":"..."}
One compatible string fieldimage_url: "..."
Multiple structured referencesreference_images: [{"url":"..."}]
Multiple compatible string referencesreference_image_urls: ["..."]

Do not combine single-image fields with reference-image fields in the same request.

Supported Image Values

Every image value must be either:

  • a server-accessible http:// or https:// URL; or
  • a complete image Data URL such as data:image/png;base64,....

Bare Base64 strings, local file paths, browser-session URLs, images, image_urls, and every form of file_id are rejected.

5. Request Examples

5.1 Text-To-Video

This request uses 1080p and the default 8-second duration:

curl -X POST "{BASE_URL}/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-video-1.5",
"prompt": "A quiet mountain lake at sunrise, gentle camera movement, realistic reflections.",
"resolution": "1080p",
"aspect_ratio": "16:9"
}'

5.2 Single Image From An HTTP URL

The prompt is optional for single-image generation:

curl -X POST "{BASE_URL}/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-video-1.5",
"image": {
"url": "https://example.com/product.jpg"
},
"duration": 6,
"resolution": "720p"
}'

5.3 Single Image From A Data URL

Pass the complete Data URL, including its media type and Base64 prefix:

curl -X POST "{BASE_URL}/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-video-1.5",
"prompt": "Subtle camera push-in and natural fabric movement.",
"image_url": "data:image/png;base64,iVBORw0KGgo...",
"duration": 5,
"size": "480p",
"aspect_ratio": "9:16"
}'

5.4 Multiple Reference Images

Reference generation accepts 1 to 7 images and is limited to 480p or 720p:

curl -X POST "{BASE_URL}/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-video-1.5",
"prompt": "Keep the character identity and clothing consistent while the character turns toward the camera.",
"reference_images": [
{"url": "https://example.com/character-front.jpg"},
{"url": "https://example.com/character-side.jpg"}
],
"duration": 5,
"resolution": "720p",
"aspect_ratio": "9:16"
}'

6. Response Examples

Task Created

Save id or the compatible task_id value for polling.

{
"id": "task_xxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxx",
"object": "video.generation.job",
"model": "grok-video-1.5",
"status": "queued",
"raw_status": "PENDING",
"progress": 0,
"created_at": 1785715200,
"video_url": null
}

7. Task Status And Result

After creation, save id or task_id, then poll GET /v1/videos/{task_id} until the task reaches completed or failed. See Video Generation Overview for the shared polling interval, status fields, error contract, result URL, and authenticated download flow.

8. Aspect Ratio Behavior

  • If text-to-video omits aspect_ratio, the effective default is normally 16:9.
  • If single-image generation omits it, output normally follows the source image ratio.
  • auto is accepted as a compatibility value.
  • For predictable framing, prepare source and reference images in the desired output orientation.

9. Billing Notes

This page does not define an exact user price. The normalized duration, resolution, and number of input images affect billing:

  • omitted duration is billed using the 8-second default;
  • text-to-video has no input-image charge dimension;
  • single-image generation counts one input image;
  • reference generation counts every supplied reference image;
  • higher resolution generally costs more.

Check current pricing in the UniAll console and review account usage after task creation. Wait for the original task's terminal state before retrying it.

10. Common Errors

Missing prompt

prompt is required for text-to-video and reference-to-video. It may be omitted only for a single-image request.

Conflicting Image Fields

Do not combine image, image_url, reference_images, or reference_image_urls. Choose one field only.

Invalid Image Encoding

Use an HTTP(S) URL or a complete Data URL. A bare Base64 string such as iVBORw0KGgo... is invalid.

Reference Generation At 1080p

Reference generation supports at most 720p. Use 480p or 720p, or switch to text or single-image generation for 1080p.

Too Many Reference Images

reference_images and reference_image_urls accept 1 to 7 images. An empty array or more than 7 images is invalid.

Unsupported Fields

Do not pass file_id, reference_audios, reference_audio_urls, voice_id, output, storage_options, or user. Do not place them inside extra_body.

Unsupported Video Operations

Reference audio, first-and-last-frame generation, video editing, and video extension are not part of grok-video-1.5.

11. Migration From The Previous Contract

ItemPrevious ContractCurrent Contract
Generation modesSingle-image onlyText, single-image, and 1-to-7-image reference generation
Image fieldsimage_url onlyStructured image / reference_images plus compatible URL fields
Image valuesHTTP(S) URL onlyHTTP(S) URL or complete image Data URL
Single-image promptRequiredOptional
DurationRequired integer durationduration or seconds, 1..15, default 8
Resolution480p or 720pAlso 1080p for text and single-image generation
Aspect ratioSix values plus autoAdds 4:3 and 3:4

Do not migrate to provider-native model names or file IDs. Keep using the stable public model grok-video-1.5 and the UniAll task endpoints.