Skip to main content
POST
Create response

Authorizations

Authorization
string
header
required

Project customer key. Requires the permission for the requested endpoint.

Headers

X-Limitless-Session-ID
string

Optional cache-affinity hint, isolated to this organization and project. X-Abliteration-Session-ID is accepted for compatibility.

Required string length: 1 - 512

Body

application/json

Model-dependent request fields. Read the compatibility guide for supported combinations and limits.

model
string
required
Required string length: 1 - 200
input
required
instructions
string | null
stream
boolean
default:false
store
boolean
default:false

Responses are stateless; true is rejected.

background
boolean
default:false
max_output_tokens
integer | null

Positive output bound; limited by the model’s configured maximum. Chat/Responses default to 1,024 when omitted. Send exactly one output-bound field.

Required range: 1 <= x <= 999990
max_tool_calls
integer | null
Required range: x >= 1
temperature
number | null
top_p
number | null
presence_penalty
number | null
Required range: -2 <= x <= 2
frequency_penalty
number | null
Required range: -2 <= x <= 2
tools
object[]

Chat: function tools. Responses: functions and supported web_search aliases. Messages: custom functions, web_search_2025_03_05 and web_fetch_2025_03_05. See the tools guide.

tool_choice
Available options:
none,
auto,
required
parallel_tool_calls
boolean | null
reasoning
object | null
include_reasoning
boolean | null
text
object | null
include
enum<string>[] | null
Available options:
message.input_image.image_url,
message.output_text.logprobs,
reasoning.encrypted_content,
code_interpreter_call.outputs,
computer_call_output.output.image_url,
file_search_call.results
truncation
enum<string> | null
Available options:
auto,
disabled
metadata
object | null
client_metadata
object | null
prompt_cache_key
string

Optional stable cache-affinity key, isolated to this organization and project.

Maximum string length: 512
service_tier
enum<string> | null
Available options:
auto,
default,
flex,
scale,
priority
user
string | null
Maximum string length: 512
safety_identifier
string | null
Maximum string length: 64
policy_ids
string[]

Published Limitless policy IDs. These add to automatically attached policies; provider IDs are not accepted.

Maximum array length: 1000
Required string length: 1 - 120

Response

Successful response.

id
string
required
Pattern: ^resp_
status
enum<string>
required
Available options:
completed,
failed,
in_progress,
incomplete,
queued
model
string
required
output
object[]
required
object
string
default:response
Allowed value: "response"
usage
object | null