curl --request POST \ --url https://api.bytez.com/models/v2/Salesforce/blip-image-captioning-base \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg", "base64": "data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"}'
Copy
{ "error": "<string>", "output": "A blind man walking a dog"}
Image Models
image-to-text
Generate textual descriptions from images for tasks like image captioning, content generation, and accessibility features
POST
/
models
/
v2
/
Salesforce
/
blip-image-captioning-base
image-to-text
Copy
curl --request POST \ --url https://api.bytez.com/models/v2/Salesforce/blip-image-captioning-base \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg", "base64": "data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"}'
Copy
{ "error": "<string>", "output": "A blind man walking a dog"}