- Create an API key01
API_KEYCreate a key in the console and keep it on your server.
- Choose a model02
Model ID + protocolCheck the model and input requirements in the live catalog.
- Make your first call03
Request → responseUse the model’s request example and read the result.
Use the exact API model ID gpt-6-luna. This guide describes the platform contract; check the live catalog before calling the model.
Request example
Section titled “Request example”The platform origin is filled in at build time. Set API_KEY to your server-side key before running.
curl "https://astralgames.ai/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}'Protocol and response
Section titled “Protocol and response”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/completionsPOST /v1/responses
| Limit | Catalog value |
|---|---|
| Context tokens | 128000 |
| Maximum output tokens | 16384 |
For streaming, use the native protocol streaming option and parse its events; check supported capabilities in the live catalog.
Official sources and identity
Section titled “Official sources and identity”Checked: 2026-09-27 · Platform model: gpt-6-luna · Official reference: gpt-6-luna
Pricing and troubleshooting
Section titled “Pricing and troubleshooting”Check current availability, contract and account pricing before integration. Keep request IDs and usage receipts when diagnosing errors. Complete API reference