Skip to main content

Video Generation

The video generation endpoint allows you to generate videos from text prompts. Simply provide a prompt describing the video you want to create. To see the list of models that support video generation, visit the Models page and filter by β€œText to Video”.
Video generation can take a few minutes to generate, depending on the model. So we recommend using the run_fast parameter to speed up the process. We are working on async video generation, reach out at support@oxen.ai if you want early access.
curl -X POST \
  https://hub.oxen.ai/api/videos/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
    "model": "wan-2.2-t2v-fast",
    "prompt": "An ox walking in a field",
    "run_fast": true
  }'

Parameters

  • model: The model identifier to use for video generation (e.g., wan-2.2-t2v-fast)
  • prompt: Text description of the video you want to generate
  • run_fast: Whether to use fast generation mode (optional, defaults to true)