Most APIs accept images, and some accept documents directly. The mechanics are straightforward and the cost and quality considerations are where people are caught out.
How are images sent?
Either encoded into the request directly or referenced by address, depending on provider. Encoding is more common and means the image travels in the request body along with your text.
What do they cost?
More than people expect. Images are converted into tokens based on dimensions, and a high-resolution photograph can cost more than several pages of text, which matters at volume.
What should you do about that?
Resize before sending. Most tasks do not need full resolution, and reducing dimensions cuts the cost proportionally with no effect on whether the model can read a form or identify a diagram.
What works well?
- Reading text. Including reasonable handwriting.
- Describing content. What is in the picture.
- Charts and diagrams. Interpreting what they show.
- Screenshots. Which are increasingly common inputs.
What works badly?
Precise spatial questions, counting many objects, and anything requiring exact measurement. Those produce confident answers that are frequently wrong, in every model.
What about content you cannot send?
A constraint worth establishing before designing anything. Confidential documents, regulated material and personal data about third parties all raise questions that are easier to answer at the start than after something is built.
Redaction before sending covers many cases, and extracting the relevant portion covers others. Where nothing can leave your systems, a locally hosted model is the honest alternative rather than a workaround.
What about documents?
Some providers accept them directly and extract text for you. Where they do not, extracting text yourself before sending is the route, and the quality of that extraction determines everything downstream.
What about images the model refuses?
Worth expecting in any application accepting user uploads. Providers decline to process certain images, and the response is a refusal rather than an error, which code checking only for failures will miss.
Handling that path explicitly gives the user something useful. A clear message that the image could not be processed is better than an empty result or a confusing generic failure.
Why do PDFs vary so much?
Because one may contain extractable text and another may be a picture of a page. The second requires recognition, and two apparently similar documents can produce completely different results.
What about multiple images?
Supported within limits, and the cost multiplies accordingly. Sending ten images in one request is ten images worth of tokens, which adds up faster than the text alongside them.
What about screenshots specifically?
An increasingly common input and worth optimising for. Screenshots are usually large, mostly whitespace, and contain text that matters, which makes them expensive relative to their information content.
Cropping to the relevant region before sending cuts cost substantially and frequently improves accuracy, since the model is not searching a full desktop for the part you meant. That is a small preprocessing step with a disproportionate effect.
What about video and audio?
Supported unevenly and worth checking per provider. Audio transcription is widely available, frequently through a separate endpoint, and video understanding is newer and more limited.
Costs for both are structured differently from text, usually by duration. That makes estimating straightforward and means an application processing recordings should measure a real example before committing to a design.
What should you check?
Size limits and supported formats, which differ by provider and change. A request that works with one image can fail with a larger one for reasons unrelated to content.
What is the practical guidance?
Resize, convert to a common format, and measure what a typical request actually costs. Image-heavy applications are where naive cost estimates go most badly wrong.