Codzen
API 参考音频

创建语音

从输入文本生成音频。

从输入文本生成音频。

POST
/v1/audio/speech

Authorization

BearerAuth
AuthorizationBearer <token>

在 Authorization 请求头中使用 API Key 作为 Bearer 令牌

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

audio/mpeg

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