Xenodia Docs
API ReferenceGenerated Reference

Create video generation task

Creates an async Xenodia video generation task. Veo3.1 is billed per generated video by request resolution. Seedance 2.0 is billed per generated second by resolution and whether reference_video_urls is present. Query /v1/models for current media pricing tiers.

POST
/v1/videos/generations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.xenodia.xyz/v1/videos/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "veo3_fast",    "prompt": "A cinematic close-up of a developer dashboard.",    "generationType": "TEXT_2_VIDEO",    "aspect_ratio": "16:9",    "resolution": "720p"  }'
{
  "task_id": "string",
  "object": "task",
  "model": "string",
  "type": "image",
  "state": "waiting",
  "created_at": 0,
  "poll_url": "string",
  "capability_slug": "string",
  "capability_version": "string",
  "recommended_poll_interval_ms": 0,
  "eta_hint_seconds": 0
}
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}