English
cURL
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 model_id= \ --form prompt=
{ "text": "<string>" }
Transform image files to text.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Uploaded image to transform with the pipeline.
Hugging Face model ID used for transformation.
Text prompt(s) to guide transformation.
Successful Response
Response model for text generation.
The generated text.
Was this page helpful?