Skip to main content
POST
Convert images to text

Body

application/json

Request to generate textual descriptions/captions for images.

inputs
required

Image(s) to caption (URL, base64, or binary). Required.

max_new_tokens
integer
default:512

Maximum number of tokens to generate for each caption.

generate_kwargs
object | null

Optional extra generation arguments to control sampling/decoding.

timeout
number | null

Maximum time in seconds to wait for processing or fetching.

Response

200 - application/json

Generated text descriptions

generated_text
string