Skip to content

Qwen TTS Series

Brief: Convert text to speech using Qwen TTS models.


Overview

  • Method: POST
  • Path: /v1/audio/speech
  • Content-Type: application/json

Authentication

  • Header: Authorization: Bearer <token>
  • Supports bearer token authentication

Request Body Parameters

ParameterTypeRequiredDescription
modelstringYesModel name, choose qwen3-tts-flash or qwen-tts
inputstringYesText to convert into speech, up to 600 characters
voicestringYesVoice style, see official docs for voice options such as Cherry, Ethan, Nofish

Common voices include: Cherry, Ethan, Nofish, Jennifer, Ryan, Katerina, Elias, Jada, Dylan, Sunny, li, Marcus, Roy, Peter, Rocky, Kiki, Eric.


curl Example

bash
curl -X POST "https://api.gpt.ge/v1/audio/speech" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
    "model": "qwen3-tts-flash",
    "input": "Hello, I am the v-api TTS assistant. Thank you for using our API service!",
    "voice": "Cherry"
  }'

JavaScript (fetch) Example

javascript
fetch('https://api.gpt.ge/v1/audio/speech', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer sk-xxxx'
  },
  body: JSON.stringify({
    model: 'qwen3-tts-flash',
    input: 'Hello, I am the v-api TTS assistant. Thank you for using our API service!',
    voice: 'Cherry'
  })
}).then(r => r.blob()).then(console.log);

Python (requests) Example

python
import requests

response = requests.post(
    'https://api.gpt.ge/v1/audio/speech',
    headers={
        'Content-Type': 'application/json',
        'Authorization': 'Bearer sk-xxxx'
    },
    json={
        'model': 'qwen3-tts-flash',
        'input': 'Hello, I am the v-api TTS assistant. Thank you for using our API service!',
        'voice': 'Cherry'
    }
)
print(response.status_code)
print(response.content[:20])

Response Example (200)

text
<binary audio data returned directly, such as MP3 or WAV file content>

Note: The response typically returns audio content directly in the selected format.