curl --request POST \
--url https://trylimitless.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{
"content": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
],
"function_call": {},
"model_id": "<string>"
}
]
}
'import requests
url = "https://trylimitless.ai/v1/chat/completions"
payload = {
"model": "<string>",
"messages": [
{
"content": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [{}],
"function_call": {},
"model_id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
messages: [
{
content: '<string>',
reasoning: '<string>',
reasoning_content: '<string>',
name: '<string>',
tool_call_id: '<string>',
tool_calls: [{}],
function_call: {},
model_id: '<string>'
}
]
})
};
fetch('https://trylimitless.ai/v1/chat/completions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"refusal": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
],
"function_call": {},
"annotations": [
{
"url_citation": {
"url": "<string>",
"title": "<string>",
"start_index": 1,
"end_index": 1
},
"type": "url_citation"
}
]
},
"logprobs": null,
"finish_reason": "<string>"
}
],
"object": "chat.completion",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {},
"completion_tokens_details": {}
},
"system_fingerprint": "<string>",
"service_tier": "<string>",
"prompt_logprobs": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}Create chat completion
Generate a JSON response or SSE stream from chat messages. Requires inference:write. Supports functions, web_search_options, model-specific reasoning and structured outputs. n accepts 1–128; reservations account for every completion.
curl --request POST \
--url https://trylimitless.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{
"content": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
],
"function_call": {},
"model_id": "<string>"
}
]
}
'import requests
url = "https://trylimitless.ai/v1/chat/completions"
payload = {
"model": "<string>",
"messages": [
{
"content": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [{}],
"function_call": {},
"model_id": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
messages: [
{
content: '<string>',
reasoning: '<string>',
reasoning_content: '<string>',
name: '<string>',
tool_call_id: '<string>',
tool_calls: [{}],
function_call: {},
model_id: '<string>'
}
]
})
};
fetch('https://trylimitless.ai/v1/chat/completions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"refusal": "<string>",
"reasoning": "<string>",
"reasoning_content": "<string>",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
],
"function_call": {},
"annotations": [
{
"url_citation": {
"url": "<string>",
"title": "<string>",
"start_index": 1,
"end_index": 1
},
"type": "url_citation"
}
]
},
"logprobs": null,
"finish_reason": "<string>"
}
],
"object": "chat.completion",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {},
"completion_tokens_details": {}
},
"system_fingerprint": "<string>",
"service_tier": "<string>",
"prompt_logprobs": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>",
"param": "<string>",
"request_id": "<string>",
"doc_url": "<string>"
}
}Authorizations
Project customer key. Requires the permission for the requested endpoint.
Headers
Optional cache-affinity hint, isolated to this organization and project. X-Abliteration-Session-ID is accepted for compatibility.
1 - 512Body
Model-dependent request fields. Read the compatibility guide for supported combinations and limits.
1 - 2001Show child attributes
Show child attributes
Published Limitless policy IDs. These add to automatically attached policies; provider IDs are not accepted.
10001 - 120Positive output bound; limited by the model’s configured maximum. Chat/Responses default to 1,024 when omitted. Send exactly one output-bound field.
1 <= x <= 999990Positive output bound; limited by the model’s configured maximum. Chat/Responses default to 1,024 when omitted. Send exactly one output-bound field.
1 <= x <= 999990-2 <= x <= 2-2 <= x <= 2Show child attributes
Show child attributes
1 <= x <= 128Show child attributes
Show child attributes
Show child attributes
Show child attributes
none, minimal, low, medium, high, xhigh, max, ultracode 64512Chat: 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.
none, auto, required none, auto - Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
low, medium, high Responses are stateless; true is rejected.
Optional stable cache-affinity key, isolated to this organization and project.
512in_memory, 24h Response
Successful response.
Show child attributes
Show child attributes
"chat.completion"Show child attributes
Show child attributes