Skip to main content

Image Captioning

Image Captioning is the task of describing the content of an image in words.

Path Parameters
image_captioning_api_id integer — REQUIRED

The API ID.

Header Parameters
Authorization string — REQUIRED

Bearer Auth

Example: Bearer #your_token
Request Body
session_id string

Unique identifier used to maintain user session state. If not provided, a new session_id will be generated and returned in the response.

model string

Name of the model to use.

file binary — REQUIRED

The image file.

Responses
200

OK

Schema — OPTIONAL
code integer

Error code. 0 when success.

msg string

Error message. Please use "code" instead of "msg" to determine errors.

data object — OPTIONAL

Business data.

session_id string

Unique identifier used to maintain user session state.

text string

Description for the given image.

400

Invalid input

401

Unauthorized

404

Record not found