Overview
This endpoint provides sora-2-chat mode functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Your API key in the format: Bearer YOUR_API_KEY
Request Body
The model to use for the request
Array of message objects for the conversation
Whether to stream the response
Request Example
curl -X POST "https://gptproto.com/v1/chat/completions" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"messages": [
{
"role": "user",
"content": "video of cow and horse dancing 9:16"
}
],
"stream": true
}'
Response
Error Responses
{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error",
"code": "invalid_parameters"
}
}