APIMart
Grok Imagine Video 1.5 model icon
Video

Grok Imagine Video 1.5 API

The Grok Imagine Video 1.5 API on APIMart turns a prompt, or a prompt plus reference images, into a 1–15 second video at 480p, 720p or 1080p. This page offers xAI's official grok-imagine-video-1.5 and the lower-cost grok-imagine-1.5-video-ext.

Video GenerationHigh Quality

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input

Review the prompt and input images before submission. Flagged requests create no task and incur no charge.

52 / 8000 characters
8s
Output

The video link is valid for 72 hours. Download or save it promptly.

Grok Imagine Video 1.5 API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
grok-imagine-video-1.5Reference image (each)0.08Credits(~$0.008)/pic0.076Credits(~$0.0076)/pic0.072Credits(~$0.0072)/pic0.1Credits(~$0.01)/pic20%
480P0.64Credits(~$0.064)/sec0.608Credits(~$0.0608)/sec0.576Credits(~$0.0576)/sec0.8Credits(~$0.08)/sec20%
720P1.12Credits(~$0.112)/sec1.064Credits(~$0.1064)/sec1.008Credits(~$0.1008)/sec1.4Credits(~$0.14)/sec20%
1080P2Credits(~$0.2)/sec1.9Credits(~$0.19)/sec1.8Credits(~$0.18)/sec2.5Credits(~$0.25)/sec20%

* Actual costs are subject to final output.

Grok Imagine Video 1.5 API: Text and Image to Video up to 1080p

Generate 1–15 second videos with xAI's Grok Imagine Video 1.5 on APIMart. The official model renders up to 1080p from a prompt or reference images; the Ext model costs less at 480p and 720p. Both are billed per second, and failed tasks are not charged.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

Grok Imagine Video 1.5 API Example: Text to Video and Image to Video

Call the Grok Imagine Video 1.5 API on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint to get the video URL.

  1. 1

    Authenticate Grok Imagine Video 1.5 API requests

    Save the key you created above in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Grok Imagine Video 1.5 task

    POST /v1/videos/generations with model grok-imagine-video-1.5, your prompt, duration, resolution and aspect_ratio. Add image_urls for image to video. The task ID is in data[0].task_id.

  3. 3

    Get the Grok Imagine Video 1.5 result

    Poll GET /v1/tasks/{task_id} every 3–5 seconds until status is completed, then read the video URL from data.result.videos[0].url[0]. Results are kept for 72 hours. A failed task returns its reason in data.error.message and costs nothing.

    See the Grok Imagine Video 1.5 API reference for every field, response and error code.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5",
    "prompt": "A slow aerial push over a coastal city at sunrise, golden light on glass towers, gentle waves, cinematic color grading",
    "duration": 8,
    "resolution": "1080p",
    "aspect_ratio": "16:9"
  }'

Grok Imagine Video 1.5 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: grok-imagine-video-1.5grok-imagine-video-1.5. This model generates video from text or reference images; video editing is not supported.
promptstringRequiredDefault: —Video description, 1 to 8,000 characters.
durationintegerOptionalDefault: 8Output length, a whole number from 1 to 15 seconds.
resolutionstringOptionalDefault: 480p480p, 720p or 1080p.
aspect_ratiostringOptionalDefault: 16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2 or 2:3.
image_urlsarrayOptionalDefault: —Public HTTPS image URLs for reference image to video. Order is kept and each image is billed. Omit the field for text to video instead of sending an empty array.
nsfw_checkbooleanOptionalDefault: falseSet true to moderate the prompt and input images before the task is submitted.