Skip to main content
The Gateway adds request fields on top of the OpenAI chat completions schema. They select a model entrypoint, control how inputs are prepared, and tune the output. An unknown key inside method_params is a 400. A model that does not support a field returns 400 capability_violation. See Error Codes.

Standard OpenAI fields

These keep their OpenAI meaning. Pass them as normal arguments.

Gateway kwargs

Method and output

Documents

Images

image_url.detail (auto, low, high) is part of the OpenAI content part. It is accepted for SDK compatibility.

Video

Video kwargs apply to a video_url part on a video-capable model. See Video inputs.

method_params by model

Keys sit inside method_params. Values below are examples from GET /v1/openai/models (extra_body_help), not defaults. For usyd-community/vitpose-plus-large, video_fps sets the detector cadence on a video. Models not listed take no method_params.

Example

Methods

Why method exists and how to pick one.

Response Formats

JSON mode for code, text mode for agents.

Supported Inputs

Content parts and per-modality limits.

Chat Completions

Full request and response schema.