API介绍
我们自己部署的开源方案
API调试台
登录后,探索更多精彩功能! 点击登录
API列表 (4)
| API描述 | 接口地址 | 请求方法 | 稳定性 | 参数说明 |
|---|---|---|---|---|
创建声音克隆任务 | POST | 稳定 | 查看详情 | |
文档详情 创建声音克隆 价格:0.03PTC/1k tokens 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 application/jsoninput_textstring必需 输入文本,注意参考用例区分多人和单人的格式 示例值:
The sun rises in the east and sets in the west.
This simple fact has been observed by humans for thousands of years.
ref_audio_linksarray[string]必需 参考音频链接,顺序请跟参考音频文本顺序一致 示例值: [
"https://file.302ai.cn/gpt/imgs/20250813/bd5d60fc61fc455e869bba2115ff1f60.wav",
"https://file.302ai.cn/gpt/imgs/20250813/5e3f614b436f4d21a55813bab3e4bf58.wav"
]ref_audio_textarray[string]必需 参考音频文本,顺序请跟参考音频链接顺序一致 示例值: [
"\n\t\t\t\tThe device would work during the day as well,\n\t\t\t\tif you took steps to either block direct sunlight or point it away from the sun.\n\t\t\t\t",
"\n\t\t\t\tMaintaining your ability to learn translates into increased marketability,\n\t\t\t\timproved career options and higher salaries.\n\t\t\t\t"
]temperatureanyOf可选 The value used to module the next token probabilities >= 0 <= 1.5默认值: 1top_kanyOf可选 The number of highest probability vocabulary tokens to keep for top-k-filtering >= -1 <= 100默认值: 50top_panyOf可选 If set to float < 1, only the most probable tokens with probabilities that add up to top_p or higher are kept for generation >= 0.1 <= 1默认值: 0.95 | ||||
查看声音克隆任务 | GET | 稳定 | 查看详情 | |
文档详情 查看声音克隆任务 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Query参数task_idstring必需 任务ID | ||||
创建智能声音生成任务 | POST | 稳定 | 查看详情 | |
文档详情 创建智能声音生成任务,可以通过system_prompt来描述音色 价格:0.03PTC/1k tokens 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 application/jsonis_multi_speakerboolean必需 是否多个speaker input_textstring必需 输入文本,注意参考用例区分多人和单人的格式 示例值:
The sun rises in the east and sets in the west.
This simple fact has been observed by humans for thousands of years.
system_promptanyOf可选 system_prompt,注意参考用例区分多人和单人的格式 示例值:
Generate audio following instruction.
<|scene_desc_start|>
Audio is recorded from a quiet room.
<|scene_desc_end|>
示例值:
Generate audio following instruction.
<|scene_desc_start|>
Audio is recorded from a quiet room.
<|scene_desc_end|>
temperatureanyOf可选 The value used to module the next token probabilities >= 0 <= 1.5默认值: 1top_kanyOf可选 The number of highest probability vocabulary tokens to keep for top-k-filtering >= -1 <= 100默认值: 50top_panyOf可选 If set to float < 1, only the most probable tokens with probabilities that add up to top_p or higher are kept for generation >= 0.1 <= 1默认值: 0.95 | ||||
查看智能声音生成任务 | GET | 稳定 | 查看详情 | |
文档详情 查看智能声音生成任务 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Query参数task_idstring必需 任务ID | ||||
API价格表
| 模型 | 说明 | 302.AI价格 |
|---|
创建声音克隆任务 | - |
|
查看声音克隆任务 | - |
|
创建智能声音生成任务 | - |
|
查看智能声音生成任务 | - |
|
