FocalAPI Docs
API 参考音频创作

文本转语音 (当前部署不可用)

Deprecated

POST
/v1/audio/speech

当前部署不提供此端点;调用将返回 HTTP 501 和 endpoint_unavailable。

Authorization

BearerAuth
AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

audio/mpeg

curl -X POST "https://example.com/v1/audio/speech" \  -H "Content-Type: application/json" \  -d '{    "model": "tts-1",    "input": "string",    "voice": "alloy"  }'
"string"