ffal.aiVideo generation

Grok Imagine API: fal.ai's video-generation model, one key away

Grok Imagine via the ApexApi gateway

Grok Imagine is a video-generation model from fal.ai. Call it through ApexApi's unified, OpenAI-compatible API with one `ak-` key, alongside every other model in the catalog. Pricing is $0.060–$0.084/sec per second, billed pay-per-use from your credit balance with no subscription.

Grok Imagine is served through ApexApi's unified, OpenAI-compatible API. One key, one format, with smart routing and automatic failover. Provider: fal.ai.

Why Grok Imagine

AI video generation

Text-to-video (and image-to-video where supported) via a simple async job.

Per-second pricing ($0.060–$0.084/sec)

Pay only for what you generate from your credit balance. No subscription.

OpenAI-compatible

Drop-in with any OpenAI SDK. Change the base URL and key, keep your code.

Specifications

Modality
video
Context window
Max output
Streaming
Tool / function calling
Vision input

Grok Imagine pricing

Pay-per-use. No subscription, no minimums. Buy credits and pay only for what you call. Transparent, per-call pricing across every model.

Getting started with Grok Imagine

OpenAI-compatible. Point your client at ApexApi, swap your key, and call it. No new SDK to learn.

POST /v1/videos/generations
import requests, time

job = requests.post(
    "https://api.apexapi.dev/v1/videos/generations",
    headers={"Authorization": "Bearer <YOUR_APEXAPI_KEY>"},
    json={"model": "xai/grok-imagine-video/text-to-video", "prompt": "A drone shot over a neon city at night", "duration": 5},
).json()

# Poll until the async job completes
while True:
    res = requests.get(
        f"https://api.apexapi.dev/v1/videos/generations/{job['id']}",
        headers={"Authorization": "Bearer <YOUR_APEXAPI_KEY>"},
    ).json()
    if res["status"] in ("completed", "failed"):
        print(res)
        break
    time.sleep(3)

Grok Imagine use cases

What teams build with Grok Imagine on ApexApi.

Short-form content

Generate clips for social, ads, and marketing.

Product & explainer

Turn prompts or images into motion for launches and demos.

Creative prototyping

Explore video concepts fast before a full production.

Grok Imagine vs other models

How it compares, and on ApexApi you can switch between any of them with a single string change, same key, same endpoint.

Grok Imagine vs Veo 3.1

Compare Grok Imagine against this model on price, capabilities, and latency. A/B them with a single key on ApexApi.

Learn more about Veo 3.1 API →

Grok Imagine vs Seedance 2.0

Compare Grok Imagine against this model on price, capabilities, and latency. A/B them with a single key on ApexApi.

Learn more about Seedance 2.0 API →

Why build on ApexApi

One API, every model

OpenAI-compatible. Swap the base URL and key, keep your code. Call 14+ providers and hundreds of models through a single integration.

Smart routing & failover

Per-model provider chains with automatic failover. If one provider degrades, requests route to the next. Your app stays up.

Pay-per-use, no lock-in

Buy credits, pay only for what you call. No subscriptions, no minimums. Switch models anytime with a single string change.

Grok Imagine API: FAQ

How do I use the Grok Imagine API?

Create an ApexApi key, then point your client at https://api.apexapi.dev/v1 and use the model slug. POST to /v1/videos/generations with the model slug and a prompt, then poll the returned job id.

Is the Grok Imagine API OpenAI-compatible?

Yes. ApexApi exposes Grok Imagine through the same OpenAI-compatible interface used across the whole catalog. Swap the base URL and API key and keep your existing code.

How much does Grok Imagine cost on ApexApi?

Pay-per-use. See the live price in the Pricing section above. There's no subscription or minimum; you buy credits and pay only for what you call.

Can I switch from Grok Imagine to another model later?

Yes. Change a single string (the model slug) to call any other model in the catalog through the same endpoint and key. No re-integration.

Ready to build with Grok Imagine?

One API key. Every major AI model. Pay only for what you use.

Get your API key, free to start
Grok Imagine API on ApexApi