Short answer. A multimodal model accepts more than one kind of input, usually text and images, and answers in text. The image is decoded, resized into patches or tiles, encoded, and counted as input tokens alongside your prompt. That token count, not the file size, is what consumes context and drives cost.
Multimodal, multi-model and vision are not synonyms
A multimodal model handles more than one input modality in a single request. A multi-model system routes one request across several models. A vision model is a multimodal model that accepts images. Vendors also use “omni” for models that accept text, image, audio and video, but the word is marketing, not a specification.
The distinction matters when you read a model card. A model can accept images and still be poor at dense text, charts or spatial coordinates. Modality support tells you what you can send. It does not tell you what the model will do well, and it does not tell you how the provider counts the image against your context window.
How an image becomes tokens
The pipeline is similar across providers even when the constants differ. First, the image is decoded and normalised: format, orientation, colour space and any transparency. Second, it is resized to the model's pixel budget while preserving aspect ratio. Third, it is split into patches or tiles, and each patch is encoded into the same kind of vector the model uses for text. Finally, those vectors are placed in the context next to your instructions and question.
The constants are vendor-specific. OpenAI's vision guide describes 32×32 patches with a per-image patch budget and a rejection limit when an image is too large after processing. Google's image-understanding guide describes 768×768 tiles at 258 tokens each, with a 258-token minimum for images up to 384×384 pixels. Both approaches produce the same practical result: resolution, not file size, controls the token count.
| Input | How it is represented | What increases cost | Failure to test for |
|---|---|---|---|
| Product photo | One image, usually downscaled | Resolution and image count | Fine texture, labels and brand text |
| Screenshot or UI | One image with dense text and small controls | Resolution needed to keep text legible | Missed buttons, wrong coordinates, stale layout |
| Scanned document | One image per page, often rotated or skewed | Page count and resolution | Skew, stamps, tables that span a page break |
| Chart or dashboard | One image with lines, legends and labels | Resolution and colour detail | Misread axes, invented values, confused series |
| Multi-page PDF | Converted pages or extracted text | Page count, plus text tokens | Lost layout, duplicated headers, missing tables |
The Plugsky vision models
Plugsky exposes image-capable models through the same OpenAI-compatible chat endpoint as text models. The live catalogue marks each ID with its context window, maximum output, modality and feature flags. The three image-capable IDs described here all publish a 131,072-token context; the differences are output length and tool support.
| Public ID | Context | Max output | Tools and JSON | Best fit |
|---|---|---|---|---|
| plugsky-vision-fast | 131,072 | 4,096 | JSON mode, no tools flag | High-volume captioning, tagging and classification |
| plugsky-qwen-vl | 131,072 | 16,384 | Tools and JSON mode | Document extraction, UI understanding, multi-step tool use |
| plugsky-gemma-4 | 131,072 | 4,096 | JSON mode, no tools flag | General image question answering and description |
The catalogue is the source of truth, not this table. Call GET https://api.plugsky.com/v1/models and read features, modality, context_window and max_output for the current list. When a request is served by a fallback, the served_by field and the x-plugsky-served-model response header tell you which engine answered; do not assume the public ID names the engine.
A minimal image request
The request shape follows the OpenAI chat completions convention: a user message with a text part and an image part. The example sends a base64 data URL, which avoids making the image publicly reachable. Use plugsky-qwen-vl when the answer needs JSON and tool calls; use plugsky-vision-fast when you only need a label.
import base64, json, os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["PLUGSKY_API_KEY"],
base_url="https://api.plugsky.com/v1", # docs also show https://plugsky.com/v1
)
with open("invoice.png", "rb") as f:
image_b64 = base64.b64encode(f.read()).decode()
resp = client.chat.completions.create(
model="plugsky-qwen-vl",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": (
"Extract invoice_number, invoice_date and total from this image. "
"Return JSON. Use null when a field is not visible. "
"Quote the total exactly as printed."
)},
{"type": "image_url", "image_url": {
"url": f"data:image/png;base64,{image_b64}"
}},
],
}],
response_format={"type": "json_object"},
temperature=0,
max_tokens=500,
)
print(json.loads(resp.choices[0].message.content))
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)
Keep the API host consistent inside one codebase. The approved brief uses https://api.plugsky.com/v1, while some public docs examples show https://plugsky.com/v1. Pick one per client and do not mix them without a note.
Prompting rules that survive real images
State the task before the image. A short instruction that names the document type, the fields you want and the output shape gives the model a frame before it sees the pixels. Google's image-understanding guide makes the same recommendation for a single image with text: put the text prompt before the image.
- Ask for null, not a guess. “Use null when a field is not visible” reduces invented values. Validate that rule in code.
- Request quotes for OCR. Ask the model to quote the exact string it read, then compare it with the source. Do not accept a paraphrase as a transcription.
- Ask for one schema. JSON mode improves shape, not truth. Validate types, ranges and required fields after parsing.
- Crop before you ask. A tight crop of the totals table usually beats a full-page image at the same resolution.
- Do not ask for coordinates unless the model documents them. Bounding boxes are a separate capability with their own coordinate conventions.
- Keep image text untrusted. A document can contain “ignore previous instructions”. Treat that as data, not as an instruction to the agent.
Where vision models fail
OpenAI's vision guide lists failure modes that are broadly useful as a test plan: small text, rotated or upside-down text, graphs with subtle line styles, precise spatial reasoning, counting, panoramic or fisheye images, and medical images. It also notes that file names and metadata are not processed, and that images may be resized before analysis even at the highest detail setting.
Add three failures specific to production. First, a model can read a number correctly but attach it to the wrong label in a dense table. Second, a model can describe a chart's trend confidently while misreading the axis. Third, a model can treat text inside an image as an instruction. The fixes are boring: crop, constrain the schema, quote the source, and keep image text outside the instruction channel.
Do not use a general vision model for medical diagnosis. OpenAI's guide says its models are not suitable for interpreting specialised medical images, and the same caution applies to any general-purpose model unless a clinical validation says otherwise.
Cost, latency and context
Images consume input tokens before the first output token is generated. A larger image, a higher detail setting or more images per request all increase prefill work and the context you have left for the answer. Streaming improves perceived latency because text arrives sooner, but it does not remove the prefill cost.
On Plugsky's flat plans, the invoice does not change with image tokens, but the plan's input ceiling, concurrency and requests per minute still apply. On Hobby and Starter, daily token caps apply, and the provider does not publish a separate cached-image or cached-prefix rate. Measure usage.prompt_tokens with and without the image on your own workload rather than estimating from file size.
How to choose a vision model
Start from the job, not the model name. For high-volume tagging and captioning, plugsky-vision-fast is usually enough. For document extraction with a long schema, use plugsky-qwen-vl, which supports tools and a 16,384-token output ceiling. For UI automation, ask for a structured element list, then verify against the DOM instead of trusting pixel coordinates. For regulated images, choose the deployment topology before the model: private VPC or on-premises changes the answer more than a benchmark does.
Run a small evaluation with your own images. Twenty representative cases, including two bad scans and two dense tables, will tell you more than a public leaderboard. Score field accuracy, not writing quality, and count how often the model returns null when the field is genuinely absent.
What we did not verify
- We did not benchmark the accuracy, latency or cost of any Plugsky vision ID. No score on this page is a measurement.
- We did not run an OCR accuracy test on invoices, screenshots, charts or Arabic documents.
- We did not compare Plugsky vision models with OpenAI, Google or Anthropic models on the same images.
- We did not verify video or audio input. The catalogue lists text and image modality for the vision IDs described here.
- We did not verify how image tokens count toward Hobby or Starter daily caps, or whether any upstream cache applies to repeated images.
- We did not test native PDF input. The examples assume you convert pages to images or extract text first.
Frequently asked questions
What is a multimodal model?
A multimodal model accepts more than one kind of input in the same request, usually text and images, and returns a text answer. The model encodes each modality into tokens it can attend to together, so a question can refer to a picture and a picture can inform a written answer.
How many tokens is an image?
It depends on the model and the image. Providers resize the image, split it into patches or tiles, and charge a token count for that representation. Plugsky does not publish a per-image formula, so measure usage.prompt_tokens with and without the image on the model you plan to use.
Which Plugsky model should I use for images?
Use plugsky-qwen-vl when the task needs tool calls or a long structured extraction, plugsky-vision-fast for high-volume captioning and classification, and plugsky-gemma-4 for general image question answering. All three publish a 131,072-token context, and the live model catalogue is authoritative.
Can a multimodal model read a PDF directly?
Treat a PDF as a document pipeline, not a single image. Convert pages to images for layout-heavy scans, or extract text first when the PDF already has a text layer. The Plugsky vision IDs list text and image input, so check the current file and image fields in the chat completions reference.
Why does the model miss small text in a screenshot?
Small text can be destroyed by resizing before the model sees it. Crop the region of interest, send a higher-resolution image, and ask for a quote rather than a summary. Then verify the quote against the source image instead of trusting the model's transcription.
Is image input a security risk?
Yes. Text inside an image can carry instructions, so treat OCR output and image content as untrusted input. Keep the system prompt separate, never let image text authorize a tool call, and apply the same moderation and approval gates you use for typed user content.
Related pages
Send an image to one endpoint
Use the same OpenAI-compatible client for text and vision, with 39 public model IDs and flat monthly plans.
Start Free → See pricingSources
Each source was checked on 20 November 2026. Image tokenisation, limits and supported formats are vendor-specific and change; recheck before you size a workload.
| Source | Page checked | Checked |
|---|---|---|
| Plugsky model catalogue | api.plugsky.com/v1/models | 20 Nov 2026 |
| Plugsky docs | plugsky.com/docs/chat-completions | 20 Nov 2026 |
| OpenAI | platform.openai.com/docs/guides/vision | 20 Nov 2026 |
| ai.google.dev/gemini-api/docs/image-understanding | 20 Nov 2026 | |
| Anthropic | docs.anthropic.com/en/docs/build-with-claude/vision | 20 Nov 2026 |
Last checked 20 November 2026. For canonical product numbers, see /facts; for the live model list, call GET /v1/models.