YepAPI
AI Models

Grok Imagine Video 1.5

xAI's Grok Imagine Video 1.5. AI video generation up to 1080p, 1-15 seconds.

POST/v1/media/queue
from $0.17/second

Overview

xAI's Grok Imagine Video 1.5 — video generation up to 1080p. Async operation — submit a job, poll for completion.

PropertyValue
Model IDx-ai/grok-imagine-video-1.5
ProviderxAI
Resolutions480p, 720p, 1080p
Duration1–15 seconds
Audio GenerationNot supported
BillingDynamic (actual cost per job)
Pricingfrom $0.17/second

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

Text-to-Video

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'x-ai/grok-imagine-video-1.5',
    prompt: 'A cinematic drone shot over a rugged coastline at golden hour',
    options: {
      resolution: '720p',
      duration: '5',
    },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "x-ai/grok-imagine-video-1.5", "prompt": "A cinematic drone shot over a rugged coastline", "options": {"resolution": "720p", "duration": "5"}}'

Image-to-Video

Pass a reference image via imageData to generate a video from a still image.

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'x-ai/grok-imagine-video-1.5',
    prompt: 'Animate this scene — clouds drifting, light changing',
    options: {
      resolution: '720p',
      duration: '5',
    },
    imageData: {
      mimeType: 'image/jpeg',
      base64: '...', // Base64-encoded image
    },
  }),
});

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesx-ai/grok-imagine-video-1.5 or aliases grok-video, grok-video-1-5
promptstringYesText description of the video to generate
options.resolutionstringNo480p, 720p, 1080p480p
options.durationstringNo1 to 15 (seconds)5
options.imageRolestringNoHow to use the input image: first_framefirst_frame
imageData.mimeTypestringNoMIME type of input image (image/png, image/jpeg, image/webp)
imageData.base64stringNoBase64-encoded input image for image-to-video generation

Pricing

TierCost/sec
480p$0.17
720p$0.30
1080p$0.53

Example: 5-second video ≈ 5 x $0.30 = $1.50. Billing is dynamic — each job is billed from the actual cost of the finished video, so shorter or lower-resolution jobs cost less.

Info

Video jobs can take several minutes to complete. Results retained for 1 hour.

Under the Hood

Powered by xAI's Grok Imagine Video 1.5 via our AI provider. 100% margin on upstream costs.

On this page