curl --request POST \
--url https://llm.modellix.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5.6-luna', input: 'Introduce yourself in one sentence'})
};
fetch('https://llm.modellix.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://llm.modellix.ai/v1/responses"
payload = {
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://llm.modellix.ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://llm.modellix.ai/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}")
.asString();const url = 'https://llm.modellix.ai/v1/responses';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5.6-luna', input: 'Introduce yourself in one sentence'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm.modellix.ai/v1/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'openai/gpt-5.6-luna',
'input' => 'Introduce yourself in one sentence'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://llm.modellix.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://llm.modellix.ai/v1/responses")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://llm.modellix.ai/v1/responses' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}'{
"id": "1375b9a3-8ef5-42b3-9cff-47da694d15b4",
"object": "response",
"created_at": 1794968412,
"status": "completed",
"model": "openai/gpt-5.6-luna",
"output": [
{
"id": "769f38fd-d8ce-4215-8a93-393f443e56eb",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "I'm a language model you can use to write, code, and work through questions.",
"annotations": [],
"logprobs": []
}
]
}
],
"usage": {
"input_tokens": 14,
"input_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0
},
"output_tokens": 17,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 31
}
}Responses
OpenAI Responses–compatible endpoint on the Modellix LLM gateway. Accepts a synchronous request with model (provider/name format) and input (string or content array); returns a Responses JSON object by default, or SSE (text/event-stream) when stream=true. Use max_output_tokens for output limits. Prefer this path when the client targets the OpenAI Responses API rather than classic Chat Completions. Do not send Chat Completions-style messages/max_tokens or Anthropic Messages shapes on this endpoint—use /chat/completions or /messages instead. Optional fields follow OpenAI Responses; support depends on the selected model.
curl --request POST \
--url https://llm.modellix.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5.6-luna', input: 'Introduce yourself in one sentence'})
};
fetch('https://llm.modellix.ai/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://llm.modellix.ai/v1/responses"
payload = {
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://llm.modellix.ai/v1/responses"
payload := strings.NewReader("{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://llm.modellix.ai/v1/responses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}")
.asString();const url = 'https://llm.modellix.ai/v1/responses';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'openai/gpt-5.6-luna', input: 'Introduce yourself in one sentence'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm.modellix.ai/v1/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'openai/gpt-5.6-luna',
'input' => 'Introduce yourself in one sentence'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://llm.modellix.ai/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"openai/gpt-5.6-luna\",\n \"input\": \"Introduce yourself in one sentence\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://llm.modellix.ai/v1/responses")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://llm.modellix.ai/v1/responses' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"model": "openai/gpt-5.6-luna",
"input": "Introduce yourself in one sentence"
}'{
"id": "1375b9a3-8ef5-42b3-9cff-47da694d15b4",
"object": "response",
"created_at": 1794968412,
"status": "completed",
"model": "openai/gpt-5.6-luna",
"output": [
{
"id": "769f38fd-d8ce-4215-8a93-393f443e56eb",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "I'm a language model you can use to write, code, and work through questions.",
"annotations": [],
"logprobs": []
}
]
}
],
"usage": {
"input_tokens": 14,
"input_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0
},
"output_tokens": 17,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 31
}
}Authorizations
Headers
Body
OpenAI Responses request body. Requires model and input; optional stream, max_output_tokens, temperature, reasoning, and text. Do not send Chat Completions messages.
Core fields below; other fields follow OpenAI Responses.
Optional text output config. Follows OpenAI Responses. The output format is text.format. Support depends on the model.
Show child attributes
Show child attributes
Response
Success. Non-streaming returns JSON; streaming returns SSE.
Shape follows OpenAI response