xAIVideo

grok-imagine-video-1.5

Video generation with long-task hosting — great for marketing assets, storyboard previews and automated content.

Capabilities

  • Text-to-video
  • Async task

Call it (OpenAI-compatible)

Point base_url at WanAPIs and keep your existing OpenAI SDK.

cURL
curl https://api.wanapis.com/v1/chat/completions \
  -H "Authorization: Bearer $WANAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Python
from openai import OpenAI

client = OpenAI(
    api_key="$WANAPIS_API_KEY",
    base_url="https://api.wanapis.com/v1",
)

resp = client.chat.completions.create(
    model="grok-imagine-video-1.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

More xAI models

Integrate grok-imagine-video-1.5 in minutes

Sign up for free trial credit and go live by changing one base_url line.