跳转到主要内容
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>"
}

授权

Authorization
string
header
必填

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

请求体

multipart/form-data
image
file
必填

Uploaded image to transform with the pipeline.

prompt
string
默认值:""

Text prompt(s) to guide transformation.

model_id
string
默认值:""

Hugging Face model ID used for transformation.

响应

Successful Response

Response model for text generation.

text
string
必填

The generated text.

Last modified on March 1, 2026