Create a chat completion
Generate chat-based completions using the OpenAI-compatible chat endpoint.
Server tools
/v1/chat/completions supports regular function tools and these gateway-managed server tools:
gateway:datetimephaseo:web_searchphaseo:web_fetchphaseo:advisorphaseo:image_generation
Datetime example
phaseo:web_search adds server_tool_use.web_search_requests, server_tool_use.web_search_results, and server_tool_use.web_search_extra_results. phaseo:web_fetch adds server_tool_use.web_fetch_requests.
Streaming note
stream: true is also supported. For gateway-managed server tools, Phaseo may materialize the upstream tool-call turn and re-emit a synthetic stream after continuing the loop.Authorizations
Bearer token authentication
Body
1OpenAI-compatible alias for reasoning.effort.
none, minimal, low, medium, high, xhigh, max -2 <= x <= 2x >= 1x >= 1Unique identifier for grouping related requests (for example, a conversation or agent workflow) for observability.
256-2 <= x <= 2-9223372036854776000 <= x <= 92233720368547760000 <= x <= 2Tool definitions for model function calls and gateway server tools. Built-in server tools include datetime, web search, web fetch, Advisor, Subagent, Fusion, model search, image generation, and patch creation.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
x >= 1Tool selection strategy. Phaseo server-tool types are accepted and rewritten into upstream function/tool targets.
auto, none, required, phaseo:datetime, phaseo:web_search, phaseo:web_fetch, phaseo:subagent, phaseo:fusion, phaseo:search_models, gateway:datetime, gateway:web_search, gateway:web_fetch 0 <= x <= 200 <= x <= 1text, image, audio Provider selector. Use a string for a single provider, or routing options such as { "only": ["groq"] }.
openai, anthropic, google-ai-studio, gemini, mistral, x-ai, xai, groq, together Optional provider-specific options.
standard, fast, priority, flex, batch Gateway debug controls. These flags are never forwarded upstream.