rreAPI Docs
rreAPI Docs
HomepageWelcome

Image

flux-2z-imageqwen-image-2midjourney-v7wan-2-7-imagegpt-image-2gpt-image-2-officialgemini-2.5-flash-image-previewgemini-3-pro-image-previewgemini-3.1-flash-image-previewdoubao-seedream-5-0-liteimagen-4-0

Audio

Mureka V9 Song APIVocal Remover APIMusic Extractor APIVoice Cleaner APIMultistem Splitter APIVoice Changer API

Video

kling-3-0music-video-1-0wan-2-7-videokling-motion-controlpixverse-v6doubao-seedance-2.0doubao-seedance-2.0-officialdoubao-seedance-2.0-betahappyhorse-1.0happyhorse-1.0-officialviduq3grok-imagine-video-1.5-betagrok-imagine-1.0-videoVeo 3.1gemini-omni

Chat

minimax-m3deepseek-v4gpt-5.5gpt-5.4claude-opus-4-8claude-opus-4-7claude-sonnet-4-6

Text

ai-essay-writerhumanizeai-text-detector

Tools

enhance-video-1.0
X (Twitter)

grok-imagine-video-1.5-beta

Grok Imagine Video 1.5 — async image-to-video with native synchronized audio. One required reference image, optional prompt, 480p / 720p, 1 to 15 second clips. Per-second pricing.

Grok Imagine Video 1.5 — async image-to-video with native synchronized audio. Pass exactly one reference image (and an optional prompt) and the model returns a realistic clip with lifelike motion at 480p or 720p, 1 to 15 seconds. Model id grok-imagine-video-1.5-beta. See current pricing on the model page.

Quick example

curl https://reapi.ai/api/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5-beta",
    "prompt": "Gentle cinematic push-in, golden-hour light, subtle motion",
    "image_urls": ["https://your-cdn.com/source.jpg"],
    "resolution": "720p",
    "duration": 8
  }'
import requests

resp = requests.post(
    "https://reapi.ai/api/v1/videos/generations",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
        "model": "grok-imagine-video-1.5-beta",
        "prompt": "Gentle cinematic push-in, golden-hour light, subtle motion",
        "image_urls": ["https://your-cdn.com/source.jpg"],
        "resolution": "720p",
        "duration": 8,
    },
    timeout=30,
)
print(resp.json())
const r = await fetch("https://reapi.ai/api/v1/videos/generations", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "grok-imagine-video-1.5-beta",
    prompt: "Gentle cinematic push-in, golden-hour light, subtle motion",
    image_urls: ["https://your-cdn.com/source.jpg"],
    resolution: "720p",
    duration: 8,
  }),
});
console.log(await r.json());
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "io"
    "net/http"
)

func main() {
    body, _ := json.Marshal(map[string]any{
        "model":      "grok-imagine-video-1.5-beta",
        "prompt":     "Gentle cinematic push-in, golden-hour light, subtle motion",
        "image_urls": []string{"https://your-cdn.com/source.jpg"},
        "resolution": "720p",
        "duration":   8,
    })
    req, _ := http.NewRequest("POST",
        "https://reapi.ai/api/v1/videos/generations", bytes.NewReader(body))
    req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
    req.Header.Set("Content-Type", "application/json")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()
    out, _ := io.ReadAll(resp.Body)
    fmt.Println(string(out))
}

Submit response

{
  "id": "task_018f5a3a1b6e7d9f8c2b4d6e8f0a2c4e",
  "model": "grok-imagine-video-1.5-beta",
  "status": "processing",
  "created_at": 1735000000
}

Poll GET /api/v1/tasks/{id} (see the Tasks reference) until status === "completed". The completed payload's output.video_urls holds the generated MP4 URL (with audio), valid for 7 days.


Authentication

Every call needs a Bearer token. Generate keys at reapi.ai/settings/apikeys.

Authorization: Bearer YOUR_API_KEY

Keys carry the active workspace's billing scope — there is no separate project header.


Endpoint

POST /api/v1/videos/generations
GET  /api/v1/tasks/{id}

Submission is async. The POST returns immediately with a task_id; the task endpoint returns the same envelope until completion. Polling does not consume credits.

This is an image-to-video model — exactly one reference image is required on every request. There is no text-to-video mode and no mode parameter.


Request body

model — required

string. Must be "grok-imagine-video-1.5-beta".

image_urls — string[], required

Array with exactly one public HTTP(S) image URL — the frame the model animates. Accepted source formats: JPEG, PNG, WebP.

No data: URIs. reAPI rejects base64 inputs platform-wide — the image URL must be a public HTTP(S) link. Upload to your own object storage (S3, R2, OSS, …) and pass the URL. More than one entry is rejected.

prompt — string, optional

Up to 4,096 characters. Optional — the reference image alone will animate. Use it to direct motion, camera, atmosphere, and any dialogue or sound you want in the generated audio.

aspect_ratio — string, default "auto"

Output framing. auto follows the source image's size. One of:

ValueShape
autoFollow source image (default)
1:1Square
16:9Landscape
9:16Portrait
4:3Landscape
3:4Portrait
3:2Landscape
2:3Portrait

resolution — string, default "480p"

480p or 720p. Unlike a flat-rate model, 720p costs more per second than 480p — see Pricing.

duration — integer, default 8

Output length in seconds. Any integer in [1, 15]. Out-of-range → 400. Drives pricing linearly.

Send a number, not a string. "duration": "8" is rejected with 400.

nsfw_checker — boolean, default true

Content safety filter. Defaults to true. You can set it to false to relax filtering for your own request.


Response envelope

Submit and poll share the same shape — only status and output fill in over time.

{
  "id": "task_018f5a3a1b6e7d9f8c2b4d6e8f0a2c4e",
  "model": "grok-imagine-video-1.5-beta",
  "status": "completed",
  "created_at": 1735000000,
  "output": {
    "video_urls": ["https://cdn.reapi.ai/media/tasks/018f5a3a1b6e7d9f8c2b4d6e8f0a2c4e/0.mp4"]
  },
  "error": null
}
FieldTypeNotes
idstringTask identifier — keep it for polling and audit
modelstringEcho of the submitted model
statusstringprocessing / completed / failed
created_atintegerSubmission unix timestamp
outputobject | nullnull until completion. output.video_urls holds MP4s
errorobject | nullPopulated on failed — { code, message }

The generated MP4 carries the native audio track. output.video_urls URLs are valid for 7 days — re-host to your own storage if you need them longer.


Validation errors

Pattern-match on code, not message — message strings carry request-specific context (field names, observed values) and are not a stable contract.

TriggerCodeMessage (illustrative)
image_urls missing20002image_urls is required
image_urls with more than one entry20003image_urls allows at most 1 entry
prompt longer than 4,096 chars20007prompt must be at most 4096 characters
duration outside [1, 15]20003duration must be 1-15 seconds
Unknown resolution20003invalid resolution (allowed: 480p / 720p)
Unknown aspect_ratio20003invalid aspect_ratio
image_urls carrying a data: URI or non-http(s)20003image_urls entries must be public http(s) URLs

The full envelope is { "error": { "code", "message", "request_id" } } — see the Errors catalog for the wire format and request_id correlation tips.


Recipes

Minimum request — image only

{
  "model": "grok-imagine-video-1.5-beta",
  "image_urls": ["https://your-cdn.com/source.jpg"]
}

Directed motion + HD

{
  "model": "grok-imagine-video-1.5-beta",
  "prompt": "Slow dolly forward, wind moving the hair, warm cinematic light",
  "image_urls": ["https://your-cdn.com/portrait.jpg"],
  "resolution": "720p",
  "duration": 10
}

Vertical social clip

{
  "model": "grok-imagine-video-1.5-beta",
  "prompt": "Energetic motion with ambient street sound",
  "image_urls": ["https://your-cdn.com/poster.jpg"],
  "aspect_ratio": "9:16",
  "resolution": "720p",
  "duration": 6
}

Polling pattern

The task endpoint behaves identically to other video tasks. A pragmatic schedule:

0–5 minutes:    poll every 5s
5 min – 1 h:    back off gradually toward 1 min
≥ 1 h:          cap at 3 min between polls

A typical task completes in a few minutes. The worker's wall-clock cap is 48 hours, comfortably above any realistic queue.


Pricing

Per-second rate by resolution — 720p costs more per second than 480p. See current rates on the Grok Imagine Video 1.5 model page.

Bill formula (1 credit = $0.001):

credits = ceil(per_second_usd × duration × 1000)

Failed jobs refund automatically.


Tips

  • One clear subject image works best. A centered, well-lit reference with clean composition tracks identity and motion far better than a busy frame.
  • Prompt the motion and the sound. "Slow push-in, ambient room tone, soft breathing" gives the native audio something to lock onto, not just the video.
  • Sweet-spot duration: 5–10 seconds. Longer clips raise wall-time without changing the per-second rate.
  • Pick 720p for hero shots, 480p to save. Resolution changes the per-second cost on this model, unlike flat-rate siblings.

Related

  • grok-imagine-1.0-video
  • Errors catalog
  • Authentication
  • Quickstart

Table of Contents

Quick example
Submit response
Authentication
Endpoint
Request body
model — required
image_urls — string[], required
prompt — string, optional
aspect_ratio — string, default "auto"
resolution — string, default "480p"
duration — integer, default 8
nsfw_checker — boolean, default true
Response envelope
Validation errors
Recipes
Minimum request — image only
Directed motion + HD
Vertical social clip
Polling pattern
Pricing
Tips
Related