Skip to main content
POST
/
v1
/
chat
/
completions
gpt-4o-image (chat mode)
curl --request POST \
  --url https://api.example.com/v1/chat/completions
OpenAI’s official format for the chat mode API.
curl -X POST "https://gptproto.com/v1/chat/completions" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "stream": true,
  "model": "gpt-4o-image-vip",
  "messages": [
    {
      "content": "Draw a horse",
      "role": "user"
    }
  ]
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yesgpt-4o-image-vipThe model to use for the request. gpt-4o-image-vip
messagesarray✅ Yes-Array of message objects for the conversation * role:user,The role of the message. * role:assistant,The role of the message. * role:system,The role of the message.
contentarray✅ Yes-text , image_url
textstring✅ Yes-* type:text,The positive prompt for the generation. * type:image_url,Optional image reference that guides generation.
image_urlobject✅ Yes-* type:image_url,The URL of the image to use for the generation.
streamboolean❌ NofalseWhether to stream the response