Getting screenshots and photos into a text-only pipeline

APIDeepSeekFreeKey · Updated 2026-11-22 · 8 min read

Typewriter beside a face-down photograph
A text-only model works with words, never with the picture itself.

A small notice in an editor or agent tool often causes big disappointment: the selected model does not support image input. Developers who rely on pasting a screenshot of an error, a design mock-up or a chart into their assistant find that the cheap model they prefer is text only, at least through that tool, and they ask for the feature to be added. Meanwhile, plugin authors go the other way and bolt local image, speech and audio tools onto text-only agents.

This article is for developers whose model or API cannot see images but whose users keep sending them. It explains what 'multimodal' actually requires, then walks through realistic workarounds, from running OCR in the browser to chaining a separate vision step, and is honest about when a natively multimodal commercial model is simply the better tool.

The keyless API on this site is text only: free-ai, an independent open-weight model of about 35B parameters, accepts and returns text. This site is not affiliated with DeepSeek; for whether DeepSeek's own API or a specific tool supports images for a given model, check their current documentation, since support differs by model and by integration.

Frequently asked questions

What does multimodal mean for a language model?

A multimodal model accepts more than one kind of input, typically text plus images, and sometimes audio or video. Image understanding is trained into the model; it cannot be added by the client or by a prompt.

Why does a tool say image input is unsupported when the provider offers vision?

Support can differ by model and by integration. A provider may offer vision on one model or endpoint while a tool's integration for another model sends text only. Check both the provider's model list and the tool's documentation.

How does OCR differ from vision understanding?

OCR extracts the characters visible in an image. Vision understanding can also describe layout, objects, charts and relationships. For screenshots of errors or documents OCR is often enough; for diagrams and photos it is not.

Can I send an image as base64 text to a text-only model?

You can send the characters, but the model will not see a picture. It will treat the base64 string as meaningless text, waste a huge number of tokens and may invent a description. Do not do this.

Which is better for screenshots of code errors: OCR or a vision model?

OCR in most cases, because the useful content is the text of the error. Better still, ask users to paste the text itself, which is exact and costs a fraction of the tokens.

Does the free-ai endpoint accept images?

No. It is text only. You can still use it as the reasoning step after another tool has turned an image into text.

When should I just use a multimodal model?

When the image content is visual rather than textual, such as UI layout feedback, chart interpretation, photos or handwriting, a native multimodal model will clearly outperform any text-only workaround.

Why a prompt cannot add vision

It is tempting to think a clever prompt or client could make a text model 'see'. It cannot. Vision models include an image encoder trained together with the language model, so images become internal representations the model understands. A text-only model has no such component; to it, anything you send is a sequence of text tokens.

So every workaround follows the same shape: something else converts the image into text first, and the text model works with that text. The quality of the result is capped by the quality of the conversion.

What goes wrong with raw image data

A base64-encoded screenshot of modest size can run to hundreds of thousands of characters, far beyond the 32,000-token context here, and meaningless to the model even if it fitted.

The conversion step

OCR, a separate vision model, a structured parser or simply the user's own description. Pick the cheapest one that preserves what your task needs.

First ask: does the image contain text you need?

A surprising share of images people send to coding assistants are screenshots of text: stack traces, terminal output, configuration panels, log viewers, error dialogs. For these, the picture adds nothing the text does not already contain. The best fix is often not technical at all: make it easy to paste text and explain why it gives better answers.

Where users insist on screenshots, OCR recovers the text with high accuracy for clean digital screenshots. Photos of screens and handwriting are much harder.

It also helps to look at why people send images in the first place. Often it is habit, or because copying text from a particular app is awkward, such as an error dialog that does not allow selection. Small affordances, like a 'copy details' button in your own app's error screens, remove the need for screenshots at the source and make every later step simpler.

Nudge users toward text

A hint next to the upload button such as 'paste the error text for a more accurate answer' changes behaviour more than you might expect.

  • Stack traces and error messages: ask for the text, fall back to OCR
  • Configuration screens: OCR, then ask the model to interpret the settings
  • Tables in documents: OCR with layout, or export the source file instead
  • Charts and diagrams: OCR loses the meaning, use a vision model
  • Photos of real objects: only a vision model helps
Magnifying glass over a printed page
OCR recovers the text when text is what matters.

OCR in the browser with no server

For web apps, the open-source Tesseract engine has a WebAssembly build that runs entirely in the browser. The image never leaves the user's device; only the extracted text is sent to the model. That keeps the whole pipeline keyless and serverless, which pairs well with an endpoint that accepts calls from any origin.

The example loads the library from a CDN, recognises an image the user selects, and sends the text with a question to free-ai.

Tell the model it is OCR output

Stating that the text came from OCR and may contain errors helps the model tolerate misread characters, such as a zero read as the letter O, instead of treating them as the bug.

Trim before sending

OCR of a busy screen produces menus, tabs and status bars. Cropping the image or cutting the text to the relevant region improves answers and saves tokens.

<input type="file" id="img" accept="image/*">
<pre id="out"></pre>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tesseract.min.js"></script>
<script>
document.getElementById("img").addEventListener("change", async (e) => {
  const out = document.getElementById("out");
  out.textContent = "Reading text from image...";
  const { data } = await Tesseract.recognize(e.target.files[0], "eng");
  const text = data.text.trim().slice(0, 12000);
  out.textContent = "Asking the model...";
  const res = await fetch("https://api.apideepseekfreekey.com/v1/chat/completions", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      model: "free-ai",
      max_tokens: 800,
      messages: [
        { role: "system", content: "The user message is OCR output from a screenshot and may contain recognition errors. Explain the problem it shows and suggest a fix." },
        { role: "user", content: text }
      ]
    })
  });
  const json = await res.json();
  out.textContent = json.choices[0].message.content;
});
</script>

Chaining a separate vision step

When the image's meaning is visual, you need a vision-capable model somewhere. A common architecture uses that model only to describe the image in detail, then passes the description to the cheaper text model for the actual task. The vision call is short and focused; the text model does the long reasoning or writing.

This split can make sense on cost, because the expensive multimodal call produces a compact description once, while follow-up conversation runs on the cheaper model. It also lets you run the vision step locally with a small open vision model if images are private.

Ask for a structured description

Request a description with fixed sections, such as visible text, layout, notable elements and anything unusual. Structured descriptions carry more useful detail into the text step.

Know what is lost

A description is a summary. If the user's follow-up asks about a detail the description skipped, the text model cannot recover it and may guess. Be ready to re-query the vision step.

Camera next to an open notebook and pen
A vision step describes; the text model reasons over the description.

Structured extraction instead of pictures

Many images in business apps are really data: receipts, invoices, forms, tables. For those, the goal is not understanding the picture but getting fields out. Dedicated extraction tools or a vision model prompted to return JSON give you structured data, and from then on a text model can validate, summarise or answer questions about it.

Once the data is structured, the text model's job becomes easy and reliable, and you can check its work with ordinary code.

Extraction also simplifies storage and auditing. A row of fields is easy to keep, search and correct, while a pile of images needs to be reprocessed every time someone asks a new question about them.

Validate the fields

Check totals add up, dates parse and required fields exist before passing extracted data on. OCR and vision models both make plausible-looking mistakes in numbers.

The reverse problem: generating media

A related request is for agents to produce images, speech or sound, not just read them. Text models cannot do that either, but they are good at orchestrating tools that can. Plugin and tool-server projects give text-only agents access to local image generators, speech synthesis and transcription, with the language model deciding what to create and writing the prompts.

The same principle applies: the text model handles language and planning, specialised models handle pixels and audio. Keep each in its lane and connect them with clear, structured hand-offs.

Transcription as input

Speech is easier than images: a local speech-to-text model turns voice notes into text that any text-only model, including free-ai, can then process.

Receipts next to a filing tray
Many images are really data waiting to be extracted.

When to switch to a multimodal model

Workarounds have a ceiling. For feedback on a user interface design, reading a chart, comparing two photos, interpreting a whiteboard sketch or understanding handwriting, a native multimodal model is in a different league from OCR plus a text model. Commercial multimodal assistants are clearly better at this, and pretending otherwise would waste your users' time.

If images are central to your product, choose a model with vision support for that feature and keep the text-only model for the rest. Route by input type, the same way you route by difficulty, as covered in routing between cheap and strong models.

Mixing models this way is normal. Few products need vision on every request, so paying for it only where images arrive keeps costs down without compromising the features that depend on seeing.

Test with real uploads

Collect twenty real images your users sent and compare the workaround pipeline with a multimodal model. The difference, or lack of it, settles the question.

Privacy of images

Screenshots leak more than people realise: email addresses in a sidebar, customer names in a table, tokens in a URL bar. Running OCR in the browser and sending only the cropped, relevant text keeps most of that on the user's device.

Whatever you send to a hosted model is processed by that provider. On this site each request leaves a technical log, including time, IP, User-Agent, country, endpoint, status, latency, sizes and tokens, while conversations are not kept as state. For sensitive images, prefer local OCR or a local vision model, discussed in local versus hosted models.

Let users review the text

Showing the extracted text before sending lets users remove anything private and fix obvious OCR errors, which improves both privacy and answer quality.

Easel with a half-finished landscape painting
For truly visual work, a multimodal model is the right tool.
Try the free API

Open the home page and send a request to the keyless endpoint straight from your browser, no account or key needed.

Read also