API 文档接口参考
ElevenLabs Eleven v4 · 查询单个模型
模型对象包含 slug、name、type、vendor、params 和 providers。供应商条目包含其实际参数和价格档位。
GET
/api/v1/models/{slug}公开接口 · 无需 API Key此模型使用的接口
POST
/generations创建生成任务GET/generations/{id}获取结果POST/generations/{id}/cancel取消任务POST/quote报价GET/models/{slug}查询单个模型选择供应商可查看其实际参数限制。自动路由会选择支持所传参数的供应商。示例包含默认值和必填输入,请将示例媒体地址替换为可访问的文件。
请求
cURL
curl 'https://01router.com/api/v1/models/elevenlabs-tts-v4'输入参数
查询 / 路径参数slugstring · path必填模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。
可选值:"elevenlabs-tts-v4"
响应示例
200 · application/json
{
"slug": "elevenlabs-tts-v4",
"name": "ElevenLabs Eleven v4",
"type": "audio",
"vendor": "ElevenLabs",
"description": "ElevenLabs Eleven v4: expressive multilingual speech with audio tags, voice selection and delivery controls.",
"tags": [
"text-to-speech",
"voice",
"multilingual"
],
"coverUrl": "",
"params": [
{
"name": "prompt",
"type": "text",
"label": "Text",
"required": true,
"maxLength": 5000
},
{
"name": "voice",
"type": "string",
"label": "Voice",
"default": "Rachel"
},
{
"name": "stability",
"type": "number",
"label": "Stability",
"min": 0,
"max": 1,
"default": 0.5
},
{
"name": "similarity_boost",
"type": "number",
"label": "Voice similarity",
"min": 0,
"max": 1,
"default": 0.75
},
{
"name": "language_code",
"type": "string",
"label": "Language code",
"description": "ISO 639-1, e.g. en or zh"
},
{
"name": "seed",
"type": "integer",
"label": "Seed",
"min": 0,
"max": 4294967295
},
{
"name": "output_format",
"type": "enum",
"label": "Output format",
"options": [
"mp3_22050_32",
"mp3_44100_32",
"mp3_44100_64",
"mp3_44100_96",
"mp3_44100_128",
"mp3_44100_192",
"pcm_8000",
"pcm_16000",
"pcm_22050",
"pcm_24000",
"pcm_44100",
"pcm_48000",
"ulaw_8000",
"alaw_8000",
"opus_48000_32",
"opus_48000_64",
"opus_48000_96",
"opus_48000_128",
"opus_48000_192"
],
"default": "mp3_44100_128"
},
{
"name": "apply_text_normalization",
"type": "enum",
"label": "Text normalization",
"options": [
"auto",
"on",
"off"
],
"default": "auto"
}
],
"providers": [
{
"provider": "fal",
"providerName": "fal.ai",
"discount": 90,
"preferred": false,
"params": [
{
"name": "prompt",
"type": "text",
"label": "Text",
"required": true,
"maxLength": 5000
},
{
"name": "voice",
"type": "string",
"label": "Voice",
"default": "Rachel"
},
{
"name": "stability",
"type": "number",
"label": "Stability",
"min": 0,
"max": 1,
"default": 0.5
},
{
"name": "similarity_boost",
"type": "number",
"label": "Voice similarity",
"min": 0,
"max": 1,
"default": 0.75
},
{
"name": "language_code",
"type": "string",
"label": "Language code",
"description": "ISO 639-1, e.g. en or zh"
},
{
"name": "seed",
"type": "integer",
"label": "Seed",
"min": 0,
"max": 4294967295
},
{
"name": "output_format",
"type": "enum",
"label": "Output format",
"options": [
"mp3_22050_32",
"mp3_44100_32",
"mp3_44100_64",
"mp3_44100_96",
"mp3_44100_128",
"mp3_44100_192",
"pcm_8000",
"pcm_16000",
"pcm_22050",
"pcm_24000",
"pcm_44100",
"pcm_48000",
"ulaw_8000",
"alaw_8000",
"opus_48000_32",
"opus_48000_64",
"opus_48000_96",
"opus_48000_128",
"opus_48000_192"
],
"default": "mp3_44100_128"
},
{
"name": "apply_text_normalization",
"type": "enum",
"label": "Text normalization",
"options": [
"auto",
"on",
"off"
],
"default": "auto"
}
],
"prices": [
{
"unit": "kchar",
"conditions": {},
"priceMicros": 72000,
"originalMicros": 80000,
"credits": 1
}
]
},
{
"provider": "wavespeed",
"providerName": "WaveSpeedAI",
"discount": 90,
"preferred": false,
"params": [
{
"name": "prompt",
"type": "text",
"label": "Text",
"required": true,
"maxLength": 5000
},
{
"name": "voice",
"type": "string",
"label": "Voice",
"default": "Alicia"
},
{
"name": "stability",
"type": "number",
"label": "Stability",
"min": 0,
"max": 1,
"default": 0.5
},
{
"name": "similarity_boost",
"type": "number",
"label": "Voice similarity",
"min": 0,
"max": 1,
"default": 0.75
}
],
"prices": [
{
"unit": "kchar",
"conditions": {},
"priceMicros": 72000,
"originalMicros": 80000,
"credits": 1
}
]
},
{
"provider": "openrouter",
"providerName": "OpenRouter",
"discount": 90,
"preferred": false,
"params": [
{
"name": "prompt",
"type": "text",
"label": "Text",
"required": true,
"maxLength": 5000
},
{
"name": "voice",
"type": "string",
"label": "Voice",
"default": "george",
"options": [
"george",
"sarah",
"adam",
"alice",
"bella",
"bill",
"brian",
"callum",
"charlie",
"chris",
"daniel",
"eric",
"harry",
"jessica",
"laura",
"liam",
"lily",
"matilda",
"river",
"roger",
"will"
]
}
],
"prices": [
{
"unit": "kchar",
"conditions": {},
"priceMicros": 72000,
"originalMicros": 80000,
"credits": 1
}
]
}
],
"fromMicros": 72000,
"fromOriginalMicros": 80000,
"fromUnit": "kchar"
}响应仅用于说明结构;ID、用量、价格和结果以实际请求为准。
输出字段
slugstring模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。
paramsarray参数定义:name、type、required、default、options,以及已配置的 min、max、maxItems、maxLength。
providersarray可用供应商、各自的参数约束及公开价格档位。
给 AI 使用
把文档索引或完整接口文档交给 AI 编程助手,包含实时模型参数。