llmboxDocumentationSign in
API · Request parameters

Request parameters

Which parameters the gateway forwards to the model on each endpoint, which it strips and which it rejects.

The gateway forwards to the model only the parameters on its endpoint's list. Anything outside the list is not passed to the model, and the request runs without it. So a parameter you are used to in one format may have no effect in another: for example, among the text endpoints only /v1/chat/completions accepts seed, and max_tokens is called max_output_tokens on /v1/responses.

An output ceiling (max_tokens, max_completion_tokens, max_output_tokens) above 131 072 is replaced with 131 072; the balance reserve is based on that value plus the reasoning headroom (see Limits).

Forwarded to the model

Apart from the exceptions below, the gateway does not validate parameter values — the model's provider does. If it rejects a value, the response is a 400 with the unsupported_value or invalid_value code (see Errors).

/v1/chat/completions

model, messages, stream, temperature, top_p, max_tokens, max_completion_tokens, stop, seed, n (clamped to 1–8), presence_penalty, frequency_penalty, logit_bias, logprobs, top_logprobs, response_format, tools, tool_choice, parallel_tool_calls, functions, function_call, prediction, reasoning_effort, verbosity, prompt_cache_retention, top_k, min_p, repetition_penalty, thinking, enable_thinking, thinking_budget, reasoning

/v1/responses

model, input, instructions, stream, temperature, top_p, top_logprobs, max_output_tokens, tools, tool_choice, parallel_tool_calls, reasoning, text, truncation, include, prompt_cache_retention

/v1/embeddings

model, input, encoding_format, dimensions

/v1/images/generations

model, prompt, n (clamped to 1–10), size, aspect_ratio, resolution, quality, background, image, images, output_format, output_compression, response_format, image_size, negative_prompt, seed

/v1/videos

model, prompt, seconds, duration, duration_seconds, aspect_ratio, resolution, mode, generate_audio, image, images, video, input_reference, negative_prompt, seed

resolution (or mode), generate_audio and the length are the video's conditions, and the price is computed from them. The length is set by one field — seconds or one of the aliases duration, duration_seconds (two fields at once return 400 invalid_request), and size is not accepted. Details — Video.

Special cases

  • stream_options is stripped, but "include_usage": true on /v1/chat/completions is honored: usage arrives in the last stream chunk.
  • user, safety_identifier, prompt_cache_key and metadata are not passed to the provider — the gateway sets its own identifiers. Different prompt_cache_key values still map to different cache partitions.
  • On /v1/responses store is always false: conversations are not stored at the provider.
  • Parameters that change the provider's pricing tier or routing are not passed to the model: service_tier, inference_geo, speed, models, provider, route, transforms, plugins, as well as code execution and web search outside /v1/responses (web_search_options, mcp_servers, container and the like).
  • On /v1/responses max_tool_calls is not supported and is stripped.

Effort level

For some text models the price depends on the effort level. The level is set with the parameter of the endpoint's own format:

EndpointParameter
/v1/chat/completionsreasoning_effort (reasoning.effort is also accepted)
/v1/responsesreasoning.effort

The value is a string from none, minimal, low, medium, high, xhigh, max; the ones available are listed in the model catalog. If the parameter is omitted (or null), the model's default level applies. Errors: 400 invalid_effort, 400 unsupported_effort, 503 effort_options_unavailable — see Errors.

Tools

Only tools that your code executes, or that cost nothing but tokens, stay in tools. The provider's built-in tools (code execution, file search, MCP) are removed from the list. The exception is web search on /v1/responses for GPT models, see below.

EndpointKept in tools
/v1/chat/completionsfunction, custom
/v1/responsesfunction, custom, namespace, apply_patch, local_shell, computer, tool_search with "execution": "client" (otherwise 400), shell with a local environment; web_search on GPT models

If the list ends up empty, tools, tool_choice and parallel_tool_calls are removed and the model answers without tools. But if tool_choice requires a tool that is no longer there (required, a specific tool, any), the request is rejected — see below.

On /v1/responses GPT models search the web with the built-in web_search tool:

json
{
  "model": "openai/gpt-5.6-sol",
  "input": [{"role": "user", "content": [{"type": "input_text", "text": "What is the weather in Moscow today?"}]}],
  "tools": [{"type": "web_search"}]
}
  • Each search arrives in output as a web_search_call item, followed by the model's message.
  • There is no separate per-search fee: the model reads the pages it finds as input tokens, and they are counted in usage.input_tokens at the model's input price. That is usually 3–5K tokens per search; a multi-part question can trigger several searches in one response.
  • max_tool_calls is stripped, so only the request itself limits the number of searches. To force a search, use "tool_choice": {"type": "web_search"}.
  • A response with several searches takes tens of seconds — "stream": true is more convenient for such requests.
  • web_search_preview and web_search_options on /v1/chat/completions are not supported. On other models web_search is removed from tools.

Rejected with a 400

These parameters change the shape of the response or refer to data stored at the provider, so a request with them is rejected:

EndpointWhat is rejected
/v1/chat/completionsaudio, modalities containing "audio", "deferred": true; message parts input_audio and file with a file_id
/v1/responses"background": true, previous_response_id, conversation, prompt; input items of type item_reference, input_file and input_image parts with a file_id; the tool_search tool without "execution": "client"
all text endpointstools that is not an array; a tool_choice that requires a tool not on the list

The response carries the unsupported_parameter code and, in the param field, the parameter name or the path to the message part, e.g. messages[3].content[1]. Send the full conversation history with every request: the gateway keeps no provider-side state.