Skip to main content

GPT Audio 1.5

A text-to-speech model (OPENAI/GPT-AUDIO-1.5) available through the ImageGPT Audio (Text to Speech) API.

PropertyValue
Model IDOPENAI/GPT-AUDIO-1.5
PlaygroundAudio
Pricing50 credits per request

Headers​

Send your API key in the x-api-key header on every request. See Authentication for details.

HeaderRequiredValue
x-api-keyYesYOUR_API_KEY
Content-TypeYesapplication/json

A missing or invalid key returns 401 Unauthorized.

Parameters​

Request body fields for /generate/text-speech:

ParameterTypeRequiredDefaultDescription
promptstringYes—The text you want to convert to speech.
modelstringYes—Model ID to use. E.g. QWEN3/TTS-FLASH, ELEVENLABS/TTS, OPENAI/GPT-AUDIO-MINI.
outputTypestringNo"binary"Use "binary" to receive raw audio bytes, or "url" to get a hosted audio URL in JSON.
voicestringNo"alloy"Voice name (applies to OpenAI and ElevenLabs models only). E.g. alloy, nova, rachel, josh.
outputFormatstringNo"mp3"Audio format for the output (applies to OpenAI and ElevenLabs models only). Currently mp3.

Request examples​

curl -X POST https://api.imagegpt.online/generate/text-speech \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"prompt":"ImageGPT is an AI platform to generate images, videos, audio, code, and chat responses using multiple advanced models in one place.","model":"OPENAI/GPT-AUDIO-1.5","outputType":"binary","voice":"alloy","outputFormat":"mp3"}'

Response example​

binary

Raw audio bytes (mp3 stream). Save directly to a file or create a Blob URL.

url

{
"success": true,
"url": "https://ai.imagegpt.online/imagegpt-pro-audio/1780682139387-amsq4xznzvi.wav",
"taskId": "imagegpt_qwen3/tts-flash-cu0zjaz1xlc1780682133698",
"duration": 1,
"creditsDeducted": 10
}

Pricing​

50 credits per request.

Playground​

Try this model live. Your key is used only in your browser to call the API directly and is never stored.

note

The browser playground calls https://api.imagegpt.online directly, so it only works if the API allows cross-origin requests from this site. If it is blocked, use the cURL, JavaScript, or Python samples above from your own server.