andreasjansson/blip-2

Answers questions about images

  • Public
  • 17.8M runs

Run blip-2 with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image to query or caption
caption
boolean
False
Select if you want to generate image captions instead of asking questions
question
string
What is this a picture of?
Question to ask about this image. Leave blank for captioning
context
string
Optional - previous questions and answers to be used as context for answering current question
use_nucleus_sampling
boolean
False
Toggles the model using nucleus sampling to generate responses
temperature
number
1

Min: 0.5

Max: 1

Temperature for use with nucleus sampling

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'title': 'Output', 'type': 'string'}