v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

visual-question-answering

Answer questions based on image content for applications like interactive learning, accessibility features, and content analysis

post/models/v2/Salesforce/blip-vqa-base

Request body

questionstring required
urlstring
base64string

Example request

{
  "question": "What animal is this?",
  "url": "https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9"
}

Response

Successful visual-question-answering response.

errorstring nullable required

Null on success; otherwise an error message.

Example response

{
  "output": [
    {
      "answer": "octopus"
    }
  ]
}