Skip to main content
Parameter support varies by endpoint and model. Use this page as a quick reference, then confirm details on each endpoint page.

Common request parameters

ParameterTypeTypical usage
modelstringRequired model id (for example openai/gpt-5-nano).
streambooleanEnable SSE token streaming on text endpoints.
temperaturenumberControl output randomness when supported.
top_pnumberNucleus sampling control where supported.
max_tokens / max_output_tokensintegerCap output length and cost.
stopstring or string[]Define explicit stop sequences.
tools, tool_choiceobject / stringTool-calling controls on compatible endpoints.
response_formatstring or objectAsk for plain text, JSON, or schema-constrained responses.
meta, usagebooleanInclude extra metadata and usage details in responses.

Provider routing parameters

The provider object lets you influence routing behavior:
FieldTypePurpose
orderstring[]Preferred provider order.
onlystring[]Restrict routing to specific providers.
ignorestring[]Exclude specific providers.
include_alphabooleanAllow alpha providers in routing decisions.

Provider-specific options

Use provider_options when you need provider-native configuration (for example cache controls). Keep these isolated so you can preserve portability between providers.

Debug parameters

Use debug for controlled troubleshooting:
FieldTypePurpose
enabledbooleanEnable debug mode for the request.
return_upstream_requestbooleanInclude transformed upstream request payload.
return_upstream_responsebooleanInclude upstream response payload where available.
tracebooleanReturn routing/debug traces.
trace_levelsummary or fullControl trace verbosity.
debug data may contain sensitive request context. Use only in development or controlled environments.

Example

{
  "model": "openai/gpt-5-nano",
  "input": "Summarize this changelog.",
  "stream": false,
  "temperature": 0.3,
  "max_output_tokens": 300,
  "provider": {
    "order": ["openai", "anthropic"],
    "ignore": ["some-provider"]
  },
  "debug": {
    "enabled": true,
    "trace": true,
    "trace_level": "summary"
  }
}
Last modified on April 21, 2026