Video Generation

Text-to-video and image-to-video models, pay-per-clip.

Text-to-video and image-to-video models, pay-per-clip. 4 endpoints, each gated by the x402 payment protocol and settled in USDC. Connect the same endpoints over the MCP server for agent-to-agent use.

Grok Imagine 1.5 Short

AI video generation using grok-imagine-video-1.5. Requires an input image (.jpeg/.jpg/.png/.webp) and a prompt, generates a 10-second high-quality video clip.

POST /video/grok-1.5-short

Price

$0.5

Network

Solana

x402

v2

Request parameters

ParameterTypeRequiredDescription
prompttextareaYesPrompt for video generation
image_urlstringYesInput image URL, must be .jpeg, .jpg, .png, or .webp
resolutionstringNoOutput resolution: 480p, 720p, or 1080p (default 720p)
aspect_ratiostringNoVideo aspect ratio (default auto)

Response

Returns video_url (CDN URL), thumbnail_url, duration, model, and metadata

Example

curl -X POST "https://api.xona-agent.com/video/grok-1.5-short" \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-payload>" \
  -d '{
  "prompt": "Cinematic motion - the subject looks up into the sunlight filtering into the room",
  "image_url": "https://example.com/image.jpg",
  "resolution": "720p",
  "aspect_ratio": "auto"
}'

Grok Video Short

AI short video generation using Grok Imagine Video model. Takes your prompt and generates a 10-second high-quality video using xAI's Grok Video API.

POST /video/short-generation

Price

$0.5

Network

Solana

x402

v2

Request parameters

ParameterTypeRequiredDescription
prompttextareaYesPrompt for video generation
aspect_ratiostringNoVideo aspect ratio (optional)
image_urlstringNoOptional input image URL for image-to-video generation

Response

Returns video_url (CDN URL), duration (10 seconds), model, and metadata

Example

curl -X POST "https://api.xona-agent.com/video/short-generation" \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-payload>" \
  -d '{
  "prompt": "A cat playing with a ball",
  "aspect_ratio": "16:9",
  "image_url": "https://example.com/image.jpg"
}'

Seedance 2.0 Video

AI video generation using ByteDance Seedance 2.0 via Replicate. Generates a video with audio, defaults to a 10-second 480p clip; duration up to 10s, resolution up to 1080p.

POST /video/seedance-generation

Price

$0.8

Network

Solana

x402

v2

Request parameters

ParameterTypeRequiredDescription
prompttextareaYesPrompt for video generation
aspect_ratiostringNoVideo aspect ratio (default: 16:9)
durationnumberNoClip length in seconds (1–10, default 10)
resolutionstringNoOutput resolution (default 480p)
reference_imagesimage-uploadNoOptional reference images (paste HTTPS URLs)

Response

Returns video_url (CDN URL), thumbnail_url, duration (matches requested length), model, and metadata

Example

curl -X POST "https://api.xona-agent.com/video/seedance-generation" \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-payload>" \
  -d '{
  "prompt": "become kamen rider with panda suit",
  "aspect_ratio": "16:9",
  "duration": 10,
  "resolution": "480p",
  "reference_images": "https://example.com/reference.jpg"
}'

Seedance 2.5 Video

AI video generation using ByteDance Seedance 2.5 via Replicate. Native audio and single-pass clips from 4 to 30 seconds; defaults to a 5-second 720p clip. Dynamic pricing: $0.26 per second at 720p, $0.12 per second at 480p.

POST /video/seedance-2.5

Price

$0.26/s (720p), $0.12/s (480p)

Network

Solana

x402

v2

Request parameters

ParameterTypeRequiredDescription
prompttextareaYesPrompt for video generation. For dialogue, put spoken words in double quotes.
aspect_ratiostringNoVideo aspect ratio (default: 16:9, use "adaptive" to let the model choose)
durationnumberNoClip length in seconds (4–30, default 5). Price scales with duration.
resolutionstringNoOutput resolution (default 720p)
generate_audiobooleanNoGenerate synchronized audio: dialogue, sound effects, music
reference_imagesimage-uploadNoOptional reference images, up to 30 (paste HTTPS URLs). Reference them in the prompt as [Image1], [Image2], etc.

Response

Returns video_url (CDN URL), thumbnail_url, duration (matches requested length), model, and metadata

Example

curl -X POST "https://api.xona-agent.com/video/seedance-2.5" \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-payload>" \
  -d '{
  "prompt": "become kamen rider with panda suit",
  "aspect_ratio": "16:9",
  "duration": 5,
  "resolution": "720p",
  "generate_audio": true,
  "reference_images": "https://example.com/reference.jpg"
}'

Kling v4.0 Video

AI video generation using Kling v4.0 via Replicate. Text-to-video or image-to-video with start/end frames, keyframes, and reference images or videos; clips from 3 to 30 seconds, defaults to a 5-second 720p clip. Dynamic pricing: $0.18 per second at 720p, $0.26 per second at 1080p.

POST /video/kling-v4

Price

$0.18/s (720p), $0.26/s (1080p)

Network

Solana

x402

v2

Request parameters

ParameterTypeRequiredDescription
prompttextareaYesPrompt describing the video. Refer to images as @image_1, @image_2, ... and reference videos as @video_1, @video_2, ...
aspect_ratiostringNoVideo aspect ratio: 16:9 (default), 9:16, 1:1, 21:9. Ignored when frame images are set.
durationnumberNoClip length in seconds (3–30, default 5). Price scales with duration.
resolutionstringNoOutput resolution: 720p (default) or 1080p
start_imagestringNoOptional first frame image URL
end_imagestringNoOptional last frame image URL
middle_imagesarrayNoOptional keyframe image URLs between the first and last frame, in order
reference_imagesarrayNoOptional reference image URLs for characters, objects, scenes or style. Up to 10 images across all image inputs.
reference_videosarrayNoOptional reference video URLs (.mp4/.mov, 3–30s) for motion, camera work or style

Response

Returns video_url (CDN URL), thumbnail_url, duration (matches requested length), model, and metadata

Example

curl -X POST "https://api.xona-agent.com/video/kling-v4" \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <x402-payment-payload>" \
  -d '{
  "prompt": "a red fox running through fresh snow at sunrise, cinematic tracking shot",
  "aspect_ratio": "16:9",
  "duration": 5,
  "resolution": "720p"
}'

On this page