Skip to main content
The Gateway speaks OpenAI’s own request and response shapes under /v1/openai, so an existing client keeps working. There is no mapping layer and no request rewriting: the same chat.completions.create call you already send reaches a vision model here.

Pointing the SDK at the Gateway

Two values, no code changes:
Authentication is optional at the moment; send Bearer vlmrun for anonymous access. See Authentication for tiers and quotas.

Compatibility matrix

The request extensions go at the top level of the body, or through extra_body in the OpenAI SDKs. Chat Completions has the full list with defaults.

Model names

Model ids are <org>/<slug>, for example paddleocr/pp-ocrv6. Most models also accept a short form (pp-ocrv6) and their Hugging Face repo id. There is no gpt-* model here, so a client carrying an OpenAI default model name has to be pointed at a Gateway id. GET /v1/openai/models is the live list. See Models for the catalog with capabilities and use-case guidance.

Things worth knowing

  • Sampling fields are accepted, not honoured: OCR and detection models are not free-form text generators, so temperature and friends usually change nothing. A model’s supported_parameters on Get Model is authoritative, and it is often empty. The chat VLMs are the exception.
  • method decides what a model computes: the same model can OCR, detect, or parse a layout. Omitting it applies the model’s default_method. A method a model does not publish is a 400. See Methods.
  • A document is one request, not one per page: pass a document_url part and the Gateway rasterizes and fans out per page for you. See Document OCR.
  • JSON mode is never streamed: response_format: {"type":"json_object"} is always served whole, because a single valid JSON object cannot be assembled from SSE deltas. Text mode streams normally.
  • Every response carries x-request-id, which is worth logging: it is what support needs to trace a call.

Check the connection

Quickstart

First VQA and document OCR requests, end to end.

Chat Completions

Full request reference, including every Gateway extension.

Methods

What method and response_format change about a reply.

TypeSafe SDK Compatibility

The other surface: typed, calibrated decisions.