Skip to content
NewRouters/Documentation
LLM API

gpt-6-luna · API guide

Integrate gpt-6-luna through openai. Request examples, parameters, authentication and result handling.

POST/v1/chat/completionsMODELgpt-6-luna
Official reference gpt-6-lunaChecked 2026-09-27Official docs
Code examples & responses
Request & responseExamples
POST/v1/chat/completions
Server-side request
curl "https://newrouters.com/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  --data '{
  "model": "gpt-6-luna",
  "messages": [
    {
      "role": "user",
      "content": "Explain how an HTTP request works in three concise steps."
    }
  ],
  "max_completion_tokens": 1024,
  "stream": false
}'

The API origin is filled in. Set API_KEY before running. Examples never submit automatically.

ResponseSelected fields · illustrative values
200Successful result
JSON
{
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "..."
      },
      "finish_reason": "stop"
    }
  ]
}
Integration flowOpenAI · Native protocol
  1. Prepare a request01
    API key + model ID

    Use the model’s native protocol and authentication.

    SDK / HTTP
  2. Call the native API02
    POST /v1/chat/completions

    Submit the request structure documented on this page.

    OpenAI
  3. Read the response03
    choices[].message

    Read model output from the native response.

    JSON

Use the exact API model ID gpt-6-luna. This guide describes the platform contract; check the live catalog before calling the model.

The platform origin is filled in at build time. Set API_KEY to your server-side key before running.

Terminal window
curl "https://newrouters.com/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
--data '{
"model": "gpt-6-luna",
"messages": [
{
"role": "user",
"content": "Explain how an HTTP request works in three concise steps."
}
],
"max_completion_tokens": 1024,
"stream": false
}'

This model uses the openai protocol. Read its native response and usage fields; do not wrap the request in the media task input envelope.

Supported endpoint templates:

  • POST /v1/chat/completions
  • POST /v1/responses
LimitCatalog value
Context tokens128000
Maximum output tokens16384

For streaming, use the native protocol streaming option and parse its events; check supported capabilities in the live catalog.

Checked: 2026-09-27 · Platform model: gpt-6-luna · Official reference: gpt-6-luna

Check current availability, contract and account pricing before integration. Keep request IDs and usage receipts when diagnosing errors. Complete API reference