SpaceXAI: Grok Imagine Video
openrouter.x.x-ai-grok-imagine-videoGrok Imagine Video is SpaceXAI's fast, text-, image-, and reference-conditioned video generation model. It produces short videos (1–15 seconds, 24 fps) at 480p or 720p across seven aspect ratios -...
- Price
- Pricing soonAt list price
- Success rate
- 100%Last 30 days · 7 calls
- Latency p50
- 2.6 sp95 2.8 s
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/openrouter.x.x-ai-grok-imagine-videoBeta- Uses platform quota
- Asynchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (JSON) | ||||
model | string | Required | x-ai/grok-imagine-video | |
prompt | string | Required | A paper boat crosses a quiet pond at sunrise. | |
duration | integer | Optional | ||
resolution | string | Optional | ||
aspect_ratio | string | Optional | ||
- Request body (JSON)
modelstringRequiredExample:
x-ai/grok-imagine-videopromptstringRequiredExample:
A paper boat crosses a quiet pond at sunrise.durationintegerOptionalresolutionstringOptionalaspect_ratiostringOptional
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/openrouter.x.x-ai-grok-imagine-video' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/openrouter.x.x-ai-grok-imagine-video",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/openrouter.x.x-ai-grok-imagine-video", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data.