API reference · OpenAI

openai/gpt-5.6-luna-pro

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

LLMSynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/chat/completions
Model IDopenai/gpt-5.6-luna-pro
01

Input Schema

8 parameters · 1 required · 7 optional

ParameterTypeRequiredDescription
messagesobject[]Required—
seedintegerOptional—
toolsarrayOptional—
streambooleanOptionalDefault: false
max_tokensintegerOptionalMax: 128000
temperaturenumberOptionalMin: 0 · Max: 2 · Default: 1
tool_choicestringOptional—
response_formatobjectOptional—
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the completion
objectstringObject type, e.g. "chat.completion"
modelstringModel used for the completion
choicesarrayList of completion choices
choices[].message.contentstringGenerated text content
choices[].finish_reasonstringReason the generation stopped
usage.prompt_tokensintegerNumber of tokens in the prompt
usage.completion_tokensintegerNumber of tokens in the completion
usage.total_tokensintegerTotal tokens used
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "openai/gpt-5.6-luna-pro",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ],
    "max_tokens": 2048
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());