Skip to main content
ARouter supports multimodal inputs and outputs — you can send images, PDFs, and audio alongside text messages, and receive images or spoken audio as output.

Supported Modalities

Use GET /v1/models with query parameters to discover models supporting specific modalities:

Images

Using an Image URL

Pass a publicly accessible image URL in the image_url content part:

Using Base64-Encoded Images

For private images or when you don’t have a public URL, encode the image as base64:

Image Detail Level

Use the detail parameter to control resolution. Higher detail costs more tokens:

Full Example — Vision

PDFs

Some models can process PDF documents directly. PDFs are passed as base64-encoded content.

Anthropic Claude — PDF Support

Google Gemini — PDF Support

Model Compatibility

Use GET /v1/models to query the latest capability information.

Input Format Support

Image tokens count toward the prompt token limit. Large, high-resolution images with detail: "high" can consume significantly more tokens than text. Always check usage.prompt_tokens to monitor consumption.

Other Modalities

For dedicated audio and image generation documentation:
  • Audio — Speech-to-text, text-to-speech, and audio chat models
  • Image Generation — Generate images from text prompts using DALL-E, Flux, and more