Skip to main content
Some models expose more than one entrypoint for visual understanding. One set of weights can read a page as Markdown, return a layout, or segment an object from a prompt. A chat API has no field to choose between them, so the Gateway adds one: method. It is a request kwarg that gives you direct access to each entrypoint.
  • Default: omit method and the model’s default_method applies, so a plain call still works.
  • Pick the entrypoint, not the model: to change the output, change method. Keep the model.
  • Output shape: the method fixes the payload type, for example doc.ocr.lines or img.detect.bboxes. See content object tags.
  • All kwargs: the full list of Gateway request fields is on Extra Kwargs.
  • Discovery: each model lists its methods on GET /v1/openai/models and on its catalog card.
response_format is independent. It selects how the result is serialized, and any method combines with any format.

The method field

Pass method (and optional method_params) at the top level of the request body, or via extra_body in the OpenAI Python SDK. Omit method and the model’s default_method applies, on an image and on every page of a document_url. Each model card lists its methods, its default, and what each one returns.
Live methods, default_method, and extra_body_help are on GET /v1/openai/models. A method a model does not advertise is a 400.

Method Parameters

method_params sits beside method, or in extra_body. An unknown key is a 400. Keys are on the catalog card.
video_fps is the cadence for a native video_url. facebook/sam3.1 track reads sampling from method_params.

Response Formats

JSON mode for programmatic use, text mode for agents and MCP.

Models

Models grouped by task, with their methods.

Visual Intelligence

Detection, segmentation, pose, and OCR samples.

Document OCR

End-to-end recipe from model selection to response parsing.