- what a parameter does
- what type it expects
- the typical range or accepted values
- whether it changes quality, cost, latency, or routing behavior
Unsupported parameters
If the provider serving a request does not support one of its sampling parameters, Phaseo drops that parameter. It is not sent upstream, and the request is not rejected, so clients that always send OpenAI defaults keep working. Support is decided per provider from Phaseo’s provider profiles and the route’s catalogue parameters. If a route declares no parameters, only the catalogue check is skipped: parameters the provider profile marks unsupported are still dropped, for exampletop_k on Cohere or stop on Reflection.
Only these parameters can be dropped: temperature, top_p, top_k, min_p, repetition_penalty, frequency_penalty, presence_penalty, logit_bias, logprobs, top_logprobs, seed, stop (stop_sequences on /v1/messages), parallel_tool_calls, max_tool_calls and image_config. Messages, tools, tool_choice, response_format, reasoning settings and output limits are never dropped.
Separately, a prompt-cache ttl of 12h is removed on routes that cannot take OpenAI’s 12-hour cache, and reported in the same places as prompt_cache_options.ttl or prompt_cache_breakpoint.ttl; see Prompt Caching.
On successful responses, Phaseo reports the dropped parameters that the request itself sent:
- in the
X-Phaseo-Dropped-Paramsresponse header, for exampleX-Phaseo-Dropped-Params: top_k, min_p - in
meta.routing.dropped_paramswhen the request setsmeta: true, for example[{"param": "top_k", "reason": "unsupported_by_provider"}]
Quick lookup
Endpoint notes
service_tier is supported on the main text request surfaces:
Use ultrafast, fast (or priority where supported), and flex only when the selected model and provider combination supports them. Ultrafast selects the highest-speed supported tier; fast and priority select the same Fast routing and pricing. standard is the default when service_tier is omitted.
Batch is not a service_tier value. Batch requests use the separate Batch API.
For Anthropic-compatible Messages requests, Anthropic’s native upstream values are auto and standard_only. Phaseo may normalize or map these values across providers while preserving Anthropic-compatible behavior on /v1/messages.
If you are using an official Anthropic SDK with a custom base URL pointed at Phaseo, prefer Anthropic-native values on /v1/messages. For normalized cross-provider tier controls such as ultrafast, priority, and flex, or OpenAI’s fast alias, prefer raw HTTP requests or the gateway-native / OpenAI-style text APIs.
Parameter reference
model
Selects the gateway model id for the request.
Use the canonical model id shown on each model page quickstart unless you intentionally want to rely on an accepted alias. Canonical ids are the safest choice for examples, automation, and long-lived integrations.
models
Lists optional fallback models, tried in order after model. model is required and is always the primary model. The next entry is tried only when an attempt fails with 429, 500, 502, 503, or 504.
Each attempt is validated, logged, and billed as its own request. The response
model field and routing trace show the model that served the request. Streaming requests fall back only before the first byte, and video and music jobs only at submission. Fallbacks on an attached dynamic route take precedence, presets are accepted as entries, and phaseo/auto cannot be combined with models. Batch, realtime, and council requests reject models with 400. Multipart endpoints accept repeated models fields, models[] fields, or one JSON array. Read Request-level model fallbacks for precedence, validation, streaming, and billing behavior.
stream
Returns output incrementally over Server-Sent Events instead of waiting for one final response body.
Turn this on for chat UIs, token-by-token rendering, or long responses where early output improves UX. Leave it off when you want one complete JSON response, simpler retries, or easier structured parsing.
Notes:
- Streaming support varies by endpoint.
- Streaming is usually a transport choice, not a quality control.
- Tool-calling or structured-output flows may still stream differently by provider.
temperature
Controls how random token selection can be.
Lower values make output more conservative and repeatable. Higher values increase variety, which can help for brainstorming or creative writing but can also reduce consistency and schema adherence.
Good fits:
- extraction
- classification
- JSON or schema output
- creative generation
- Start low for structured tasks.
- Change either
temperatureortop_pfirst, not both. - High temperature plus aggressive quantization can magnify instability.
top_p
Applies nucleus sampling by limiting candidates to the smallest token set whose cumulative probability mass reaches top_p.
Lower values make the model choose from a narrower probability mass, which usually produces safer and more focused output. Higher values let the model consider a broader set of tokens.
Notes:
- Tune
top_pwhen you want a narrower or broader search space without directly changing temperature. - For most applications, moderate
temperatureand near-1.0top_pis a reasonable baseline.
top_k
Restricts sampling to the top-k candidate tokens at each step on providers that expose it.
Lower
top_k values tighten the model’s choices and can make output more predictable. Higher values widen the candidate pool.
Notes:
top_kis not available on every provider.- Treat it as a more explicit token-pool limiter than
top_p.
max_tokens
Caps output length on endpoints and providers that still use the max_tokens field name.
Use it to control cost, latency, and truncation risk. If this value is too small, the output can appear incomplete even when the model behaved correctly.
max_output_tokens
Caps output length on routes that use max_output_tokens instead of max_tokens.
This is semantically the same kind of control as
max_tokens, but you should send the field name expected by the selected endpoint or SDK surface.
max_completion_tokens
Caps output length on newer OpenAI-style text APIs that use max_completion_tokens.
This is another output-token budget field. Use the endpoint’s expected name rather than mixing output-length aliases in one request shape.
frequency_penalty
Discourages repeated tokens in proportion to how often they have already appeared.
Raise this when the model loops, repeats phrases, or overuses the same wording.
presence_penalty
Discourages reusing tokens once they have appeared at all, which can help the model explore new topics or wording.
Compared with
frequency_penalty, this is usually a broader novelty control rather than a repeat-count control.
repetition_penalty
Applies provider-specific anti-repetition behavior outside the classic OpenAI-style penalty fields.
The intent is similar to
frequency_penalty and presence_penalty, but the semantics vary more by provider. Treat it as provider-native behavior rather than a universally identical control.
seed
Requests deterministic sampling when the upstream provider supports seeded generation.
Use this for debugging, regression testing, and reproducing behavior as closely as the upstream platform allows. Seeded generation improves reproducibility, but exact determinism is not guaranteed across all providers or infrastructure changes.
stop
Defines one or more sequences that terminate generation early.
This is useful when you need hard output boundaries, such as stopping before a footer, tool delimiter, or next synthetic section.
logprobs
Requests token-level probability metadata where available.
This is mainly useful for analysis, evaluation, ranking, debugging, and confidence-style workflows. It is not usually needed for standard product responses.
top_logprobs
Requests the top alternative candidate tokens for each output position alongside their log probabilities.
Use this when you need to inspect alternative token branches rather than only the chosen output token.
tools
Declares callable tools or functions for tool-using model workflows.
Use the OpenAI-style tool schema unless the endpoint docs say otherwise. Tool declarations describe what the model may call, not whether it must call one.
tool_choice
Controls whether the model may call tools automatically, must not call tools, or must use a specific tool.
Use
none when you want content only, auto when the model may decide, and stricter values when downstream orchestration requires a tool call.
parallel_tool_calls
Allows or disallows concurrent tool calls on compatible tool-calling APIs.
Disable this when downstream systems require strictly sequential execution, ordered side effects, or simpler agent traces.
response_format
Requests a particular output format such as plain text, JSON, or schema-constrained responses.
Exact accepted shapes depend on the endpoint and provider adapter. Use this when you want more than free-form text, especially for JSON responses and structured extraction flows.
structured_outputs
Signals support for reliably structured or schema-constrained responses on the selected route and provider set.
In quickstart tables, this helps you understand whether the selected endpoint and active providers can reliably support structured-output workflows. It is best interpreted as support metadata.
json_schema
Supplies the JSON schema used for structured output enforcement on compatible models and endpoints.
Use this when your application needs guaranteed fields, typed extraction, or a strict response contract. Keep schemas narrow and task-specific for better adherence.
reasoning
Contains provider-specific reasoning configuration for reasoning-capable APIs.
Depending on the route, this may include enablement, effort, token budget, verbosity, or whether reasoning content is returned.
reasoning_effort
Requests a lower or higher reasoning budget when the endpoint and model expose that control.
Higher effort can improve difficult reasoning tasks at the cost of latency and token usage. Lower effort is often a better fit for faster, cheaper requests.
reasoning_tokens
Represents a reasoning-specific token field where supported.
Depending on the route, this may be a request knob, a limit, or a response accounting field rather than a universally supported request parameter.
include_reasoning
Accepted on Chat Completions for compatibility. Reasoning content and summaries are returned whenever the model produces them, whatever this is set to.
Reasoning payloads can be large and are not available on every model. To reduce reasoning, lower
reasoning.effort or set reasoning.enabled to false.
service_tier
Selects a supported routing or pricing tier on compatible text APIs.
Use
ultrafast, fast (or priority where supported), and flex only when the chosen model and provider combination supports them. Ultrafast selects the highest-speed supported tier; fast and priority select the same Fast routing and pricing. Omit the field to stay on the default standard tier.
Phaseo maps these gateway-normalized tier values to provider-native controls internally, so callers can use the same service_tier values across supported text surfaces.
Notes:
Batchis a separate API flow, not a service-tier value.- Support varies by endpoint and provider.
- OpenAI’s values are also accepted:
auto(ornull) asks for no particular tier and is treated like omitting the field, andscaleis treated asdefault, the standard tier.
prompt_cache_key
Provides a stable cache affinity key for prompt-cache-aware routing.
Use this when a series of requests share stable prompt prefixes, such as the steps of an agent loop. Phaseo pins the key to the provider and route (deployment or region) that served the first successful request, and keeps later requests with the same key there until that provider fails, Phaseo’s managed quota on it runs out, or your routing policy no longer allows it. Pins are kept per workspace, and their lifetime follows the provider’s cache retention. See Provider affinity.
Chat Completions, Responses, and Anthropic Messages all accept it. Phaseo sends a hash of your workspace ID and key upstream, never the raw key, so workspaces that choose the same key do not share a provider cache. Responses echo the key you sent. Providers whose API rejects the field don’t receive it, and sending it never excludes a provider from routing. Phaseo can also derive affinity from request context, but an explicit key is better for long-running conversations, agent sessions, and repeated workflows.
prompt_cache_options
Passes prompt-cache controls to OpenAI and Azure OpenAI GPT-5.6 and later, including GPT-6 Astra, to DeepInfra, and to Moonshot AI.
Use
{"mode":"explicit","ttl":"30m"} when you want OpenAI to cache only the breakpoints you place. OpenAI accepts a ttl of 30m (the default) or 12h, and Azure OpenAI only 30m; see 12-hour cache on OpenAI. DeepInfra accepts 5m or 1h and needs prompt_cache_key on every request in the session. Moonshot AI accepts mode: "implicit" and a ttl of 5m or, on Kimi K3, 1h.
Phaseo sends the object to those routes. A lifetime the route cannot take, such as 12h on Azure OpenAI or 1h on a Moonshot AI model without a 1-hour price, is removed and reported in the X-Phaseo-Dropped-Params header. Phaseo removes the object for every other provider and for OpenAI models before GPT-5.6, which use prompt_cache_retention instead. provider_options.openai.prompt_cache_options is also accepted; the top-level value wins.
cache_control
Sets a default prompt cache policy for Claude, or marks a cache breakpoint on a content block.
Top-level
cache_control is accepted on Chat Completions, Responses, and Anthropic Messages requests. It applies to Claude on Anthropic, Claude on AWS, Amazon Bedrock, and Google Vertex AI: Phaseo places up to four breakpoints according to scope (all_text, last_user_message, agent, or none). Other providers ignore it. provider_options.anthropic.cache_control is the same setting and wins when both are sent.
On a content block, tool definition, or tool result, cache_control marks a cache breakpoint. Phaseo sends it to Claude routes, Alibaba Model Studio, and Venice, converts it to prompt_cache_breakpoint for OpenAI and Azure OpenAI GPT-5.6 and later, and removes it for other providers. OpenAI’s own prompt_cache_breakpoint: {"mode": "explicit"} is accepted on the same blocks and wins when a block has both.
Use type: "ephemeral" with a ttl of 5m (the default) or 1h. Anthropic accepts at most four breakpoints per request; when your marks exceed that, Phaseo keeps the first and the latest three. See Prompt Caching for the scopes and what each provider receives.
prompt_cache_retention
Sets the prompt cache retention policy on OpenAI and Azure OpenAI models before GPT-5.6.
Phaseo sends this field only to OpenAI and Azure OpenAI models before GPT-5.6, and only the models OpenAI lists accept
24h. GPT-5.6 and later use prompt_cache_options.ttl instead, and other providers don’t receive the field. The provider-specific alias provider_options.openai.prompt_cache_retention remains accepted. When both are present, the top-level prompt_cache_retention value takes precedence.
provider
Contains routing constraints and provider preferences.
Use this when you want to influence which upstream providers may execute the request, how they should be ranked, or what compliance requirements must be satisfied.
Common fields include:
quantizations follows the OpenRouter-compatible provider-routing vocabulary and is accepted under either provider or routing. Matching is case-insensitive and ignores spaces, hyphens, and underscores; unambiguous names such as float8/FP8 and bfloat16/BF16 are aliases. Offers without quantization metadata are excluded whenever this filter is present. If no eligible offer matches, the Gateway returns an error with the requested and currently available quantizations instead of silently routing to a different variant.
provider_options
Contains provider-specific passthrough settings that should not be normalized into the shared gateway request shape.
Examples include:
openai.context_managementopenai.prompt_cache_retentionanthropic.cache_controlgoogle.cached_contentxai.conversation_id
cache_control for Claude cache policies and, for OpenAI retention, top-level prompt_cache_options on GPT-5.6 and later or top-level prompt_cache_retention on earlier models.
google.cached_content names an explicit Gemini cache. It works only with your own credential: a Google API key on Google AI Studio, or a Vertex AI credential on Vertex AI. On Vertex AI, Phaseo sends the request to the project and location in the cache’s full name (projects/{project}/locations/{location}/cachedContents/{id}); a short name uses the project_id and region in your service-account JSON. With Phaseo’s credentials the request returns 400. google.cache_control and google.cache_ttl are accepted but not sent to Google.
For provider prompt caching examples across Chat Completions, Responses, and Anthropic Messages, see Prompt Caching.
meta
Requests extra response metadata where supported.
Use this when you want additional non-core response metadata for debugging, analytics, or downstream inspection.
usage
Requests usage accounting details where supported.
This is useful when you want explicit token or usage accounting in the response body rather than only relying on headers or dashboards.
debug
Enables controlled request and routing diagnostics.
Supported debug fields include:
Debug payloads can contain sensitive request context. Use them only in development or tightly controlled environments.
Example request
Detailed explanations
If you want the deeper “how should I tune this?” guidance rather than the raw field reference, use these next:- Inference Parameters for practical advice on temperature, top_p, top_k, max token limits, stop sequences, and tuning workflow
- Sampling and Decoding for how randomness, penalties, and decoding controls change model behavior