Chat with GPT Vision

POST /gpt/vision
multipart/form-data

Body Required

  • data string Required

    Default value is {"model":"gpt-4o-mini","messages":[{"role":"user","content":"Give me a description of this image"}]}.

  • image string(binary) Required

Responses

  • 200 application/json

    Default Response

    Hide response attributes Show response attributes object
    • status boolean

      Default value is true.

    • message string

      Default value is success.

    • result object

      Additional properties are allowed.

      Hide result attributes Show result attributes object
      • model string
      • message object

        Additional properties are allowed.

        Hide message attributes Show message attributes object
  • 400 application/json

    Invalid request error

    Hide response attributes Show response attributes object
  • 401 application/json

    Authorization error

    Hide response attributes Show response attributes object
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
POST /gpt/vision
curl \
 -X POST https://api.itsrose.rest/gpt/vision \
 -H "Content-Type: multipart/form-data" \
 -F "data={"model":"gpt-4o-mini","messages":[{"role":"user","content":"Give me a description of this image"}]}" \
 -F "image=@file"
Response examples (200)
{
  "status": true,
  "message": "success",
  "result": {
    "model": "string",
    "message": {
      "role": "assistant",
      "content": "string"
    }
  }
}
Response examples (400)
{
  "status": false,
  "message": "string",
  "result": {}
}
Response examples (401)
{
  "status": false,
  "message": "string",
  "result": {}
}
Response examples (500)
{
  "status": false,
  "message": "string",
  "result": {}
}