视频生成
文生视频与图生视频模型,按片段付费。
文生视频与图生视频模型,按片段付费。共 4 个 endpoint,每个都由 x402 支付协议 保护,并以 USDC 结算。也可以通过 MCP 服务器 连接相同的 endpoint,用于智能体之间的调用。
Grok Imagine 1.5 Short
使用 grok-imagine-video-1.5 进行 AI 视频生成。需要一张输入图片(.jpeg/.jpg/.png/.webp)和一个提示词,生成一段 10 秒的高质量视频片段。
POST /video/grok-1.5-short价格
$0.5
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 视频生成的提示词 |
image_url | string | 是 | 输入图片 URL,必须为 .jpeg、.jpg、.png 或 .webp |
resolution | string | 否 | 输出分辨率:480p、720p 或 1080p(默认 720p) |
aspect_ratio | string | 否 | 视频宽高比(默认 auto) |
响应
返回 video_url(CDN URL)、thumbnail_url、duration、model 和 metadata
示例
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
使用 Grok Imagine Video 模型生成 AI 短视频。根据你的提示词,通过 xAI 的 Grok Video API 生成一段 10 秒的高质量视频。
POST /video/short-generation价格
$0.5
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 视频生成的提示词 |
aspect_ratio | string | 否 | 视频宽高比(可选) |
image_url | string | 否 | 用于图生视频的可选输入图片 URL |
响应
返回 video_url(CDN URL)、duration(10 秒)、model 和 metadata
示例
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
通过 Replicate 使用 ByteDance Seedance 2.0 进行 AI 视频生成。生成带音频的视频,默认为 10 秒 480p 片段;时长最长 10 秒,分辨率最高 1080p。
POST /video/seedance-generation价格
$0.8
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 视频生成的提示词 |
aspect_ratio | string | 否 | 视频宽高比(默认:16:9) |
duration | number | 否 | 片段时长,单位为秒(1–10,默认 10) |
resolution | string | 否 | 输出分辨率(默认 480p) |
reference_images | image-upload | 否 | 可选参考图片(粘贴 HTTPS URL) |
响应
返回 video_url(CDN URL)、thumbnail_url、duration(与请求的时长一致)、model 和 metadata
示例
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
通过 Replicate 使用 ByteDance Seedance 2.5 进行 AI 视频生成。原生音频,单次生成 4 到 30 秒的片段;默认为 5 秒 720p 片段。动态定价:720p 每秒 $0.26,480p 每秒 $0.12。
POST /video/seedance-2.5价格
$0.26/s (720p), $0.12/s (480p)
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 视频生成的提示词。如需对白,请将台词放在双引号中。 |
aspect_ratio | string | 否 | 视频宽高比(默认:16:9,使用 "adaptive" 让模型自行选择) |
duration | number | 否 | 片段时长,单位为秒(4–30,默认 5)。价格随时长变化。 |
resolution | string | 否 | 输出分辨率(默认 720p) |
generate_audio | boolean | 否 | 生成同步音频:对白、音效、音乐 |
reference_images | image-upload | 否 | 可选参考图片,最多 30 张(粘贴 HTTPS URL)。在提示词中以 [Image1]、[Image2] 等方式引用。 |
响应
返回 video_url(CDN URL)、thumbnail_url、duration(与请求的时长一致)、model 和 metadata
示例
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"
}'