GPT-6 Luna API
Use model: "gpt-6-luna" to call GPT-6 Luna. The examples below send a synchronous request using OpenAI Chat Completions.
These are integration examples, not recorded model outputs. Keep the key in your server environment as BEATAPI_API_KEY; replace <BEATAPI_API_KEY> in the cURL example with your own key. Do not put the key in browser code.
Send a request
POST https://api.beatapi.io/v1/chat/completions
Install openai in your server project.
cURL
Read and validate the result
Read the answer from choices[0].message.content, then inspect the actual finish_reason and usage. The example accepts stop; a truncated answer or a tool request needs separate application handling. Validate the returned label against your allowed labels before using it to route a ticket.
An HTTP 200 alone does not prove that the answer satisfies your task. Validate the content in your application. These text requests return directly; do not poll /v1/tasks for them.
Check GET /v1/models for the model IDs available to your account. This minimal example does not claim support for additional reasoning, sampling, cache-control or hosted-tool settings.

