REASONING · IMAGE · VIDEO · xAI

Grok API

The public catalog includes grok-4.7 for language workloads plus Grok Imagine image and video models. Each modality uses its own endpoint and billing shape, even when the family name is the same.

5 public catalog rowsPublic catalog dataEnglish guide

One family, several API surfaces

Grok language, image and video requests are not interchangeable. Use /v1/chat/completions or the Responses API for text, the image endpoints for image generation/editing, and the asynchronous video endpoint for video jobs.

Check the model's current audio and reference behavior

The public video description identifies resolution and duration tiers, while model-specific reference or frame behavior may be narrower. Treat the authenticated capability response as the submission gate.

Do not turn model names into trademark claims

Grok and other model names identify upstream families. Xinfeng's public catalog describes its API surface and prices; it does not claim ownership of third-party trademarks.

Public catalog snapshot

This table is generated from /api/pricing. A value such as “Token-metered” means the public response does not expose one simple per-second amount. Verify the authenticated catalog for the final rate.

Public catalog snapshot — amounts can change by account group and route.
Model IDEndpointsGroupsCatalog durationPublic price basisObserved service state
grok-4.7openai, openai-responseGrok—Token-metered expression · see live catalogOpen at observation
grok-imagine-imageimage-edit, image-generation, openaiImage—Dynamic / see live catalogOpen at observation
grok-imagine-image-qualityimage-edit, image-generation, openaiImage—Dynamic / see live catalogOpen at observation
grok-imagine-videoopenai, openai-videoVideo1–15 s480p ✦0.2/s · 720p ✦0.2/sOpen at observation
grok-imagine-video-1.5openai, openai-videoVideo1–15 s480p ✦0.22/s · 720p ✦0.27/s · 1080p ✦0.32/sOpen at observation

The table shows the service state observed during the catalog refresh.

Rates are base Xinfeng Credits for the displayed tiers. Reference inputs, audio and account groups can affect the charge. See the live service status and the catalog snapshot time.

Request example

Create a Grok Imagine video job. Replace the example prompt and model options with values supported by your account.

Create a Grok Imagine video job
curl -X POST "https://xinfeng.best/draw/api/v1/videos" \
  -H "Authorization: Bearer $XINFENG_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: grok-demo-001" \
  -d '{
    "model": "grok-imagine-video-1.5",
    "prompt": "A paper lantern floating over a calm lake at dusk",
    "seconds": 5,
    "output": {"ratio": "720p-16:9"}
  }'

Frequently asked questions

Which Grok endpoint should I use for chat?

Use the OpenAI-compatible base /v1 and the standard /v1/chat/completions or Responses endpoint with model grok-4.7.

Which endpoint should I use for Grok video?

Use the asynchronous video endpoint documented by Xinfeng. The public catalog examples use POST /draw/api/v1/videos and a task query under the same path.

Is Grok Imagine image the same as Grok video?

No. Image and video are separate billing modes and task types. Select the model and endpoint for the required modality.