GPT-4o-audio
概览
- 方法: POST
- 地址: https://api.winfull.cloud-ip.cc/v1/chat/completions
- 简介: 官方文档:https://platform.openai.com/docs/api-reference/chat/create
认证
- Header: Authorization: Bearer
<token>
请求参数
- Header: Authorization: Bearer
<token> - Body 类型: application/json
{
"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?"
}
]
}请求示例
curl --location --request POST 'https://api.winfull.cloud-ip.cc/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"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?"
}
]
}'返回示例
🟢200成功 示例
{}最后更新:2025-08-26 14:56:34
