Grok Imagine Video 1.5 API
1–15s T2V, frames & multi-ref · Synced audio
POST /v1/videos/generations · https://api.callmodels.dev/v1/videos/generations
Pricing & specification tiers
Per-second pricing on requested duration (1–15s, default 6s): 1.8 Credits/s (480p), 3.5 Credits/s (720p), or 6.2 Credits/s (1080p). Reference images and native synced audio add 0 extra Credits.
| Specification | Price (USD) | Credits ($1 = 100) | Per $10 Est. |
|---|---|---|---|
| 480p · T2V / I2V / Multi-Ref (6s = 10.80 Credits) | $0.0180 / s | 1.800000 Credits / s | ~92 clips (6s) |
| 720p (default) · T2V / I2V / Multi-Ref (6s = 21.00 Credits) | $0.0350 / s | 3.500000 Credits / s | ~47 clips (6s) |
| 1080p · T2V & single-frame I2V (6s = 37.20 Credits) | $0.0620 / s | 6.200000 Credits / s | ~26 clips (6s) |
Public model IDs & modes
| Public model ID | Mode |
|---|---|
| grok-imagine-video-1.5-text-to-video | Text-to-Video (1–15s · 480p / 720p / 1080p) |
| grok-imagine-video-1.5-image-to-video | First / First+Last Frame Image-to-Video (1–15s) |
| grok-imagine-video-1.5-reference-to-video | Multi-Image Reference-to-Video (1–14 Refs · 480p / 720p) |
Request parameters
Local reference assets: upload via
POST /v1/files/uploads (0 Credits) for a 24h signed URL.| Parameter | Type & Default | Constraints |
|---|---|---|
AuthorizationRequiredHeader | string | Bearer sk-... server-side API key from your account. |
Idempotency-KeyOptionalHeader | stringDefault: recommended | 1 to 255 ASCII chars. Prevents duplicate submissions and charges for 24h. |
modelRequired | "grok-imagine-video-1.5-{text,image,reference}-to-video" | Select text-to-video, first/last-frame image-to-video, or 1–14 image reference-to-video. |
promptRequired | string | 1 to 5,000 UTF-8 characters describing camera motion, scene action, and sound. |
image_urlsOptional | I2V: string[] (1..2) | R2V: string[] (1..14)Default: required on I2V / R2V | I2V accepts 1 start frame or 2 first+last frames; R2V accepts 1–14 subject/scene reference images. Included at 0 extra Credits. |
qualityOptional | "480p" | "720p" | "1080p"Default: "720p" | T2V and single-frame I2V support 480p/720p/1080p; 2-frame I2V (first+last frame) and R2V support 480p/720p. |
durationOptional | integer (1..15s)Default: 6 | Requested clip duration from 1 to 15 integer seconds; settles on requested seconds after delivery. |
aspect_ratioOptional | "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "3:2" | "2:3"Default: "16:9" | Supported across all 3 modes (T2V, I2V, and R2V). |
output_formatOptional | "mp4"Default: "mp4" | MP4 video with native synchronized audio track via a 30-day signed HTTPS URL. |
Code examples
# Set CALLMODELS_OPERATION_ID once per job and keep it for retries.
: "${CALLMODELS_OPERATION_ID:?Set a stable job ID}"
curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/videos/generations" \
-H "Authorization: Bearer $CALLMODELS_API_KEY" \
-H "Idempotency-Key: $CALLMODELS_OPERATION_ID" \
-H "Content-Type: application/json" \
--data-binary '{
"model": "grok-imagine-video-1.5-text-to-video",
"prompt": "Sunlit ceramic studio, artisan shaping wet terracotta on a spinning wheel, warm ambient sound",
"quality": "720p",
"duration": 6,
"aspect_ratio": "16:9",
"output_format": "mp4"
}'
# Set TASK_ID to the id from the response, then poll until terminal.
if [ -n "${TASK_ID:-}" ]; then
curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $CALLMODELS_API_KEY"
fiTask responses
On completed, read results[0].url (30-day signed link, no auth header) and usage.cost_credits.
HTTP/1.1 202 Accepted
X-Request-Id: req_example
Cache-Control: no-store
{
"id": "task_01e561ba-859e-47fe-be79-60bc6f1d6499",
"model": "grok-imagine-video-1.5-text-to-video",
"object": "video.generation.task",
"created_at": "2026-11-21T00:00:00.000Z",
"status": "pending"
}Error codes
| HTTP / Error Code | Cause & Handling | Billing |
|---|---|---|
400 invalid_parameter400 model_not_found | Use the model ID and parameters documented for the endpoint. Correct the JSON before sending again. | 0 Credits for this rejection |
| 401 invalid_api_key | Check the server-side Bearer key, expiration and revocation status. | 0 Credits for this rejection |
402 insufficient_balance402 key_quota_exceeded | Check available account credits and the key’s total and daily limits with GET /v1/credits. | 0 Credits for this rejection |
403 model_access_denied403 account_disabled | Check the model allowlist and account status. | 0 Credits for this rejection |
| 404 not_found | Check the task ID or original Idempotency-Key and the account that submitted it. | 0 Credits for this rejection |
| 409 idempotency_key_conflict | Use the original JSON for this job. Assign a fresh key only to a new job. | 0 Credits for this rejection |
413 body_too_large415 unsupported_media_type | Send application/json with a request body no larger than 128 KiB. | 0 Credits for this rejection |
500 internal_error503 service_unavailable503 model_unavailable | On a timeout or transient error, look up the original job and retry only with its original key and body. | Check the task record |
Task: delivery_failedTask: submission_unknownTask: submission_rejectedTask: upstream_failedTask: timeout | The task ended. Its hold was released. Review error.code before creating a separate generation job. | 0 Credits charged |