Skip to main content
Vision models can analyze images alongside text prompts. Use them for image understanding, extraction, classification, visual question answering, and multimodal reasoning. Venice supports OpenAI-compatible multimodal chat messages. Put text and image blocks in the same user message, then send the request to a vision-capable model.

Basic Usage

Use Base64 Images

You can also pass a base64 data URL when the image is local or private:
Replace <BASE64_ENCODED_IMAGE> with the complete base64 encoding of the image file, for example base64.b64encode(open("photo.png", "rb").read()).decode() in Python.
Base64 images must start with the data:image/<type>;base64, prefix (for example data:image/jpeg;base64,). Raw base64 without the prefix is rejected. Images must be at least 64×64 pixels, and SVG is not supported. If an image is rejected, the error message states the reason.

Send Multiple Images

content is an array, so one user message can include several image_url blocks alongside text. Use this to compare images or ask a question that spans more than one image:
Not every vision model accepts more than one image per request. Check supportsMultipleImages and maxImages under model_spec.capabilities in the Models API response before sending several. Each image also consumes context tokens. If a request with several images returns TOO_MANY_TOKENS (HTTP 400), send fewer images, shorten your instructions, or switch to a model with a larger context window.

Choose a Vision Model

Use the Text Models page or the Models API to find models that support vision. Vision support is listed in model capabilities.
For document-like inputs, use File Inputs when you want Venice to extract text from a file. Use vision when the visual layout or image content itself matters.

Prompting Tips

  • Tell the model what to focus on: objects, text, layout, safety, defects, or differences.
  • Ask for structured output when your application needs fields you can parse.
  • Keep image URLs accessible to the API, or use base64 data URLs for private images.
  • Use a model with enough context if you combine images with long instructions.