Source: https://01router.com/zh/docs/models/elevenlabs-tts-v4/quote Base URL: https://01router.com/api/v1 # ElevenLabs Eleven v4 · 报价 请求体与创建任务相同。返回按价格排序的可用供应商,以及无法处理该请求的供应商及原因。 `POST /api/v1/quote` 公开接口 · 无需 API Key ## 输入参数 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | model | string | yes | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | options: [ "elevenlabs-tts-v4" ] | | input | object | yes | 模型专属的输入对象。必填字段、默认值和限制见对应模型文档。 | | | provider | string | no | 可选供应商 slug。不传时自动路由;项目配置可能固定供应商。 | | | project | string | no | 可选项目 ID,使用该项目公开的模型目录和路由配置。 | | | input.prompt | string | yes | | maxLength: 5000 | | input.voice | string | no | | default: "Rachel" | | input.stability | number | no | | default: 0.5; min: 0; max: 1 | | input.similarity_boost | number | no | | default: 0.75; min: 0; max: 1 | | input.language_code | string | no | ISO 639-1, e.g. en or zh | | | input.seed | integer | no | | min: 0; max: 4294967295 | | input.output_format | enum | no | | default: "mp3_44100_128"; 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" ] | | input.apply_text_normalization | enum | no | | default: "auto"; options: [ "auto", "on", "off" ] | ## 输出字段 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | model | string | — | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | | | input | object | — | 模型专属的输入对象。必填字段、默认值和限制见对应模型文档。 | | | providers | array | — | 按价格排序的可用供应商,包含 unit、quantity、price_usd、original_price_usd 和 credits。 | | | unavailable | array | — | 无法处理此请求的供应商及原因。 | | ## cURL ```bash curl 'https://01router.com/api/v1/quote' \ -H "Content-Type: application/json" \ -d '{ "model": "elevenlabs-tts-v4", "input": { "prompt": "A cinematic landscape at sunrise.", "voice": "Rachel", "stability": 0.5, "similarity_boost": 0.75, "output_format": "mp3_44100_128", "apply_text_normalization": "auto" } }' ``` ## 200 · application/json ```json { "model": "elevenlabs-tts-v4", "type": "audio", "input": { "prompt": "A cinematic landscape at sunrise.", "voice": "Rachel", "stability": 0.5, "similarity_boost": 0.75, "output_format": "mp3_44100_128", "apply_text_normalization": "auto" }, "providers": [ { "provider": "01router", "provider_name": "01Router", "unit": "second", "quantity": 5, "price_usd": 1, "original_price_usd": null, "credits": 100 } ], "unavailable": [] } ```