Skip to main content

Overview

The Concentrate AI API supports multi-modal inputs, allowing you to send images alongside text to vision-capable models. Images can be provided as base64 data URIs or public URLs, and the API normalizes the format across all providers automatically.

Supported Models

The following models support image inputs:
Use the Get Model endpoint to check if a specific model supports image inputs by looking for the image_processing field in the provider configuration.

Sending Images

Images are sent as content blocks within the input array. Use the input_image content type alongside input_text blocks.

Image Input Format

Properties:
  • type (required): "input_image"
  • image_url (required): Base64 data URI or public HTTPS URL
  • detail (optional): "low", "high", or "auto" (default: "auto")
    • low: Faster processing, lower token cost, suitable for simple images
    • high: Full resolution analysis, higher token cost, better for detailed images
    • auto: Let the model decide based on the image

detail Parameter Support

The detail parameter controls image resolution for token estimation, but provider support varies depending on the underlying API format: For providers marked N/A, their native APIs have no equivalent concept — the provider determines image processing resolution automatically.

Examples

Base64 Image

URL Image

You can also pass a publicly accessible image URL:
Image URLs must be publicly accessible. Private URLs and URLs requiring authentication may be blocked.

Multiple Images

Send multiple images in a single request:

With Streaming

Multi-modal requests work with streaming:

Supported Formats

Some providers only support a subset of these image types. You can check the specific model info for specific information on supported model types.

Limits

Image limits vary by provider and model. Exceeding these limits will return a 400 error.

Resolution limits

Some models also enforce per-image resolution limits, exposed on the image_processing capability object returned by Get Model and List Models:
  • max_pixels — Maximum total pixels (width × height) allowed for a single image.
  • max_dimension — Maximum allowed value for either the width or the height of a single image, in pixels.
If a field is omitted for a given provider, that limit is not enforced. Images that exceed either limit are rejected with a 400 error before being sent to the upstream provider — resize or downscale before uploading.
Image tokens are calculated based on per provider algorithms. Higher resolution images consume more tokens. For providers that support it, consider setting detail to “low” to reduce costs.

Error Handling

Common errors when using image inputs:

Request Parameters

Complete parameter reference

Streaming

Use multi-modal with streaming

Create Response

Main endpoint documentation

List Models

Check model capabilities