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. Requires inference:write. Both models support function tools, structured outputs and reasoning. DeepSeek Flash accepts text and images; GLM 5.3 accepts text. See the models and compatibility guides for current limits.
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
Headers
Body
Model-dependent request fields. Read the compatibility guide for supported combinations and limits.
Positive output bound; limited by the model’s configured maximum. Chat/Responses default to 1,024 when omitted. Send exactly one output-bound field. DeepSeek maximum 524,288 within the shared 1,048,576-token context; reasoning and answer share this bound.
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. DeepSeek maximum 524,288 within the shared 1,048,576-token context; reasoning and answer share this bound.
1 <= x <= 999990Response
Successful response.