Create chat completion

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Creates a model response for the given chat conversation using the same interface as the OpenAI Create chat completion API. Supports non-streaming JSON and Server-Sent Events when stream=true.

Omit tools for a simple text completion. Send optional tools for function calling (client vs server tools — see overview above). Prefer Responses API for new integrations.

Request – Follows OpenAI Chat Completions: model, messages, optional tools, tool_choice, stream, temperature, max_tokens, etc.

Tools – Send tools as function definitions (name, description, parameters as JSON Schema). Client-tool results appear as choices[0].message.tool_calls (or delta.tool_calls when streaming). Server tools registered on the gateway run without returning tool_calls to the client.

Streamingtext/event-stream with data: lines; chunks include choices[0].delta with content and/or tool_calls. Stream ends with data: [DONE].

CapabilitiesTool calling and prompt caching are available based on provider and model support (e.g. OpenAI gpt-4o, Anthropic Claude). Providers without tool support ignore tools and return text only.

Multi-provider — The same endpoint routes to OpenAI, Anthropic, Google Gemini, xAI, and other providers. Use model in provider/model format (e.g. openai/gpt-4o-mini). The request schema documents the union of OpenAI Chat Completions parameters; supported fields and value ranges vary by provider, including tool calling and prompt caching where the upstream API supports them. See BOUNDARY LIMITS on each property. Parameters a provider does not support may be ignored, stripped, or rejected. Check the provider docs for your model prefix:

string
required
messages
array of objects
required
messages*
number
0 to 2
Defaults to 1
number
0 to 1
integer
≥ 1
number
-2 to 2
Defaults to 0
number
-2 to 2
Defaults to 0
integer
1 to 128
Defaults to 1
boolean
Defaults to false
tools
array of objects
tools
enum
Headers
string
enum
Defaults to application/json
Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/event-stream