/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: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
temperatureand friends usually change nothing. A model’ssupported_parameterson Get Model is authoritative, and it is often empty. The chat VLMs are the exception. methoddecides what a model computes: the same model can OCR, detect, or parse a layout. Omitting it applies the model’sdefault_method. A method a model does not publish is a400. See Methods.- A document is one request, not one per page: pass a
document_urlpart 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
Related
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.