API ReferenceText to Speech
Sync HTTP
Generate speech synchronously with Open API v1.
Sync HTTP
POST /api/open/v1/speech/tts
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json{
"text": "Hello from FishSpeech.",
"voiceId": "YOUR_VOICE_ID",
"format": "mp3"
}Use voiceId for new integrations. reference_id and modelId are legacy aliases for the same voice row id.
When cache is false or omitted, successful responses return binary audio. When cache is true, successful responses return JSON metadata with audio_url, credits_used, and quota_remaining.