AI for Production: we'll match your first deposit 100% (x2 credits), up to $1,000 in bonus credits. Limited time.Bonus termsGet API key

LLM API
xAIVideo generationReleased June 1, 2025

Grok Imagine Image-to-Video

Grok Imagine Image-to-Video costs $0.05 per second of video on LLM API.

Pricing

Served by MuAPI, the only provider.

Grok Imagine Image-to-Video prices on LLM API
Video$0.05/ secondper second

Specifications

  • Generates fromImage

Call Grok Imagine Image-to-Video

POST /v1/videosVideo jobs run in the background: create one, poll it, then download the file.Videos docs

import os
import time

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

video = client.videos.create(
    model="grok-i2v",
    prompt="The paper boat drifts down the rainy street",
    extra_body={"image_url": "https://llmapi.ai/samples/paper-boat.jpg"},
)
while video.status in ("queued", "in_progress"):
    time.sleep(10)
    video = client.videos.retrieve(video.id)
if video.status == "failed":
    raise RuntimeError(video.error)
client.videos.download_content(video.id).write_to_file("video.mp4")

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up