LiteLLM Ocr API

The Ocr API from LiteLLM — 1 operation(s) for ocr.

OpenAPI Specification

litellm-ocr-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: LiteLLM Proxy Assistants Ocr API
  description: Minimal OpenAPI 3.1 specification for the LiteLLM proxy server, covering chat completions, completions, embeddings, audio, images, moderations, fine-tuning, batches, assistants, vector stores, messages, OCR, rerank, and RAG endpoints.
  version: 1.0.0
servers:
- url: http://localhost:4000
  description: LiteLLM proxy server
tags:
- name: Ocr
paths:
  /ocr:
    post:
      operationId: createOcr
      summary: Run OCR on an image
      responses:
        '200':
          description: OCR result
        default:
          description: Error response
      tags:
      - Ocr
x-generated-from: https://docs.litellm.ai/docs/completion
x-generated-by: claude-crawl-2026-05-08