Introduction
20 种语言的配音通道,与图像视频端点共用同一把密钥。
Key Features
- 20 语言
- 同一密钥
Technical Details
- model — xai/tts-v1
- task — text-to-audio
- prompt — string · required
Performance
- 无冷启动,按提交顺序调度
- 支持任意宽高比
- 批量并行提交
Use Cases
- 广告素材批量生成与变体测试
- 短剧与分镜预演
- 商品视觉与虚拟试穿
- 游戏与 3D 资产原型
20 种语言的配音通道,与图像视频端点共用同一把密钥。
code samples
curl -X POST https://api.waninter.com/v1/generations \
-H "Authorization: Bearer $AIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/tts-v1",
"task": "text-to-audio",
"prompt": "A neon-lit alley after rain, 35mm, shallow depth of field",
"resolution": "1024x1024"
}'from aio_gateway import Client
client = Client()
job = client.generations.create(
model="xai/tts-v1",
task="text-to-audio",
prompt="A neon-lit alley after rain, 35mm, shallow depth of field",
)
result = job.wait()
print(result.output_url)quickstart
安装
认证
提交请求
检查状态
上传文件