Skip to main content
POST
Create Response

Authorizations

Authorization
string
header
required

Enter your MeshAPI key (rsk_...) — sent as Authorization: Bearer <key>.

Headers

X-Mesh-Version
enum<string>
default:2026-08

Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.

Available options:
2026-08

Body

application/json
input
required
model
string | null
template
string | null
variables
Variables · object | null
session_id
string | null
stream
boolean
default:false
max_output_tokens
integer | null
Required range: x >= 1
temperature
number | null
Required range: 0 <= x <= 2
top_p
number | null
Required range: 0 <= x <= 1
seed
integer | null
reasoning
Reasoning · object | null
tools
(ResponsesFunctionTool · object | BuiltinTool · object)[] | null

Custom function tool in the Responses API flat format.

The Responses API uses a flat structure (name/description/parameters at top level) unlike Chat Completions which nests them under a "function" key:

Responses API: {"type": "function", "name": "add", "parameters": {...}} Chat Completions: {"type": "function", "function": {"name": "add", ...}}

tool_choice
response_format
Response Format · object | null
plugins
any[] | null
user
string | null
Maximum string length: 256
previous_response_id
string | null
instructions
string | null
thinking
Thinking · object | null
caching
Caching · object | null
store
boolean | null
background
boolean
default:false
include
any[] | null
expire_at
integer | null
max_tool_calls
integer | null
Required range: 1 <= x <= 10
context_management
Context Management · object | null
text
Text · object | null
timeout
number | null
Required range: x > 0

Response

Completed response (JSON), a queued background job when background=true, or an SSE stream when stream=true