Skip to main content
POST
/
v1
/
chat
/
completions
doubao-1-5-vision-pro-32k-250115 (image analysis)
curl --request POST \
  --url https://api.example.com/v1/chat/completions
BytePlus’s openai format for the image analysis API.
curl -X POST "https://gptproto.com/v1/chat/completions" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-1-5-vision-pro-32k-250115",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "stream": false
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yesdoubao-1-5-vision-pro-32k-250115The model to use for the request. doubao-1-5-vision-pro-32k-250115
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
textstring✅ Yes-* type:text,The positive prompt for the generation.
streamboolean❌ NotrueWhether to stream the response