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": "<string>",
"object": "response",
"status": "<string>",
"model": "<string>",
"output": [
{}
],
"usage": {}
}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": "<string>",
"object": "response",
"status": "<string>",
"model": "<string>",
"output": [
{}
],
"usage": {}
}Authorizations
Authorization: Bearer (OpenAI SDK, Codex, OpenCode, etc.)
Headers
Optional session affinity header. Length 8–128; alphanumeric, -, and _ only.
8 - 128^[A-Za-z0-9_-]+$"my-conversation-001"
Optional end-user id for filtering request logs later. Length 8–128; ASCII letters, digits, -, and _ only. Invalid values return 400.
8 - 128^[A-Za-z0-9_-]+$"end_user_01"
Body
OpenAI Responses request body. Requires model and input; optional stream, max_output_tokens, temperature, and reasoning. Do not send Chat Completions messages.
Core fields below; other fields follow OpenAI Responses.
Model ID in provider/name form
"openai/gpt-5.5"
"openai/gpt-5.6-sol"
"anthropic/claude-sonnet-5"
"google/gemini-3.6-flash"
String or array of input items. Not a Chat Completions messages array. Image: input_image.image_url (string; HTTPS or data: URL). File: input_file.file_url for HTTPS, file_data for inline bytes. Content types are input_text, input_image, and input_file.
Default false. When true, returns an OpenAI Responses SSE event stream.
Optional maximum output tokens for the Responses API. Not max_tokens.
x >= 1Sampling temperature for the Responses API. Model-dependent.
Optional reasoning controls. Follows OpenAI Responses (effort, optional mode). Support and allowed values depend on the model.
Show child attributes
Show child attributes
Response
Success. Non-streaming returns JSON; streaming returns SSE.
Shape follows OpenAI response
Unique identifier for this Responses API result.
Object type. Typically response for the Responses API.
"response"
Status of the response (for example completed or failed).
Model ID that produced this Responses API result.
Array of response output items (OpenAI Responses shape).
Token usage object for the Responses API. Shape follows OpenAI Responses usage, not Chat Completions prompt_tokens fields.