Passer au contenu 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>"
}

Autorisations

Authorization
string
header
requis

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

Corps

multipart/form-data
image
file
requis

Uploaded image to transform with the pipeline.

prompt
string
défaut:""

Text prompt(s) to guide transformation.

model_id
string
défaut:""

Hugging Face model ID used for transformation.

Réponse

Successful Response

Response model for text generation.

text
string
requis

The generated text.

Last modified on March 1, 2026