Skip to main content
POST
/
v1
/
responses
OpenAI Multimodal
curl --request POST \
  --url https://apiif.com/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-5",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "What is in this image?"
        },
        {
          "type": "input_image",
          "image_url": "https://openai-documentation.vercel.app/images/cat_and_otter.png"
        }
      ]
    }
  ]
}
'
{
  "code": 200,
  "data": {
    "id": "resp-9876543210",
    "object": "response",
    "created": 1677652288,
    "model": "gpt-5",
    "choices": [
      {
        "index": 0,
        "message": {
          "role": "assistant",
          "content": "This image shows a cat and an otter. They appear to be interacting with each other in a very cute and heartwarming scene."
        },
        "finish_reason": "stop"
      }
    ],
    "usage": {
      "prompt_tokens": 156,
      "completion_tokens": 45,
      "total_tokens": 201
    }
  }
}

Authorizations

Authorization
string
header
required

All endpoints require Authorization: Bearer YOUR_API_KEY.

Body

application/json
model
string
required

Model name, e.g. gpt-5

input
object[]
required
Minimum array length: 1
temperature
number
max_tokens
integer
stream
boolean
top_p
number
tools
object[]

Response

Successful response following OpenAI Responses API format.

code
integer
data
object