Skip to main content
POST
/
v1
/
chat
/
completions
chat mode
curl --request POST \
  --url https://gptproto.com/v1/chat/completions \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "stream": true,
  "model": "<string>",
  "messages": [
    {}
  ]
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

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

stream
boolean
default:"true"
Whether to stream the response
model
string
default:"gpt-4o-image-vip"
required
The model to use for the request
messages
array
required
Array of message objects for the conversation

Request Example

curl -X POST "https://gptproto.com/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "stream": true,
  "model": "gpt-4o-image-vip",
  "messages": [
    {
      "content": "Draw a horse",
      "role": "user"
    }
  ]
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}