Prompt

How do I send a TIFF file to an OCR API?

Artificial Intelligence / Computer Vision1 observationLast seen Oct 11, 2026

Latest observation

Oct 11, 2026OpenAI APIWeb search: off

To send a TIFF file to an OCR API, you usually do one of these:

  1. Upload the file as binary/form-data
  2. Base64-encode the TIFF and send it in JSON
  3. Provide a public URL to the TIFF if the API supports remote fetch

The exact method depends on the OCR API, but multipart/form-data upload is the most common.

Example: curl with multipart upload

curl -X POST "https://api.example.com/ocr" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@document.tiff"

Example: Python requests

import requests

url = "https://api.example.com/ocr"
headers = {"Authorization": "Bearer YOUR_API_KEY"}

with open("document.tiff", "rb") as f:
    files = {"file": ("document.tiff", f, "image/tiff")}
    response = requests.post(url, headers=headers, files=files)

print(response.status_code)
print(response.text)

If the API expects base64 in JSON

import base64
import requests

with open("document.tiff", "rb") as f:
    encoded = base64.b64encode(f.read()).decode("utf-8")

payload = {
    "filename": "document.tiff",
    "mime_type": "image/tiff",
    "content_base64": encoded
}

response = requests.post(
    "https://api.example.com/ocr",
    json=payload,
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)
print(response.text)

Important TIFF notes

  • Some OCR APIs do not accept TIFF directly and require PDF, PNG, or JPEG.
  • TIFF can be multi-page; confirm whether the API supports:
    • single-page TIFF only
    • multi-page TIFF
    • one page at a time
  • Make sure the MIME type is set correctly:
    • image/tiff

If the API rejects TIFF

Convert it first:

ImageMagick

magick input.tiff output.png

Python (Pillow)

from PIL import Image

img = Image.open("document.tiff")
img.save("document.png")

If you tell me which OCR API you’re using, I can give you the exact request format.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.