Saltar al contenido principal
POST
/
image-to-text
Image To Text
curl --request POST \
  --url https://dream-gateway.livepeer.cloud/image-to-text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file' \
  --form prompt= \
  --form model_id=
{
  "text": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cuerpo

multipart/form-data
image
file
requerido

Uploaded image to transform with the pipeline.

prompt
string
predeterminado:""

Text prompt(s) to guide transformation.

model_id
string
predeterminado:""

Hugging Face model ID used for transformation.

Respuesta

Successful Response

Response model for text generation.

text
string
requerido

The generated text.

Last modified on March 1, 2026