GPT-4o-audio
Official Documentation: https://platform.openai.com/docs/api-reference/chat/create
Endpoint
POST http://v98store.com/v1/chat/completions cURL Command
curl -X POST 'http://v98store.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model": "gpt-4o-audio-preview", "modalities": [ "text", "audio" ], "audio": { "voice": "alloy", "format": "wav" }, "messages": [ { "role": "user", "content": "Is a golden retriever a good family dog?" } ] }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| Content-Type | header | Yes | |
| Authorization | header | Yes |
Request Body
Example
{
"model": "gpt-4o-audio-preview",
"modalities": [
"text",
"audio"
],
"audio": {
"voice": "alloy",
"format": "wav"
},
"messages": [
{
"role": "user",
"content": "Is a golden retriever a good family dog?"
}
]
} Responses
200 -
Example
undefined