Image-to-text JSON
POST {{ask-filerobot-server}}/images/image-to-text?length=standard
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
length | string | Controls the length of the generated response. |
Available values are:
- micro
- short
- standard
- extended |
Request Body
{"files_urls"=>[{"url"=>"http://sample.li/tesla.jpg", "prompt"=>"Is the car moving fast?"}, {"url"=>"http://sample.li/face.png", "prompt"=>"Describe the image"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Filerobot-Token | string | Filerobot project identifier, aka token | |
Filerobot-Key | string | Filerobot API key |
RESPONSES
status: Created
{"status":"success","version":"3.0.2","result":[{"source":"cache-file","sha1":"cc9a4427c90ba5881e5be8d3521724cfcfc9f5b8","image_to_text":"No, the car is not moving fast. It is parked in a grassy field.","file_downloaded":"it_tesla.jpeg","request_uuid":"5145e03f-78f0-4667-a867-72d955c2d4bd"},{"source":"cache-file","sha1":"b5d07a2d7648df181c94b2e2c8616ff7a91ca8c0","image_to_text":"The image features a beautiful young woman wearing a brown jacket, posing for a picture. She is standing in front of a wooden fence, which adds a rustic touch to the scene. The woman is looking at the camera, giving a sense of engagement and connection with the viewer. The image captures a moment of self-expression and confidence, as the woman showcases her style and personality.","file_downloaded_in":0.23,"request_uuid":"3c2b7484-66b1-4982-9cb9-dd8dc78a53d1"}]}