Overview
This endpoint provides chat mode functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
 
Request Body
model
string
default:"sora-2-pro"
required
The model to use for the request
 
Array of message objects for the conversation
 
Whether to stream the response
 
Request Example
curl -X POST "gptproto/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sora-2-pro",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "video of cow and horse dancing"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
          }
        }
      ]
    }
  ],
  "stream": true
}'
 
Response
Error Responses
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}