Chat with GPT Vision
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": {}
}