method. It is a request kwarg that gives you direct access to each entrypoint.
- Default: omit
methodand the model’sdefault_methodapplies, 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.linesorimg.detect.bboxes. See content object tags. - All kwargs: the full list of Gateway request fields is on Extra Kwargs.
- Discovery: each model lists its
methodsonGET /v1/openai/modelsand 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.
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.
Related
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.