curl --location -g --request POST '{{base_url}}/v1/chat/completions' \
--header 'Authorization: {{you-apikey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-audio-2025-08-28",
"modalities": ["text", "audio"],
"audio": {
"voice": "alloy",
"format": "wav"
},
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this recording?"
},
{
"type": "input_audio",
"input_audio": {
"data": "YOUR_BASE64_ENCODED_STRING_HERE",
"format": "wav"
}
}
]
}
]
}'