# GPT-5.6 Luna API

> GPT-5.6 Luna by OpenAI, through an OpenAI-compatible chat completions API. By OpenAI, on Revana at $0.20 in / $1.20 out per 1M tokens.

- Model id: `gpt-5.6-luna`
- Kind: text (chat completions)
- Maker: OpenAI
- Endpoint: `POST https://api.revana.si/v1/chat/completions` (OpenAI-compatible, streaming supported)
- Context window: 922K tokens
- Max output: 128K tokens
- Routes: 1
- Page: https://revana.si/llm/gpt-5.6-luna

## Price (USD per million tokens)

| Tokens | Price | Prompt over 272K |
|---|---|---|
| Input | $0.20 | $0.40 |
| Cached input | $0.02 | $0.04 |
| Cache write (5 min) | $0.25 | $0.50 |
| Cache write (1 hour) | $0.50 | $1.00 |
| Output | $1.20 | $1.80 |

A request whose prompt is over 272K tokens is billed at $0.40 input and $1.80 output per million tokens.
Reasoning tokens are billed as output. Each answer's `usage.cost_usd` is the amount taken from your balance; a request with no answer costs nothing.

## Request

```bash
curl https://api.revana.si/v1/chat/completions \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"Write a haiku about routing."}]}'
```

Or any OpenAI SDK with `base_url="https://api.revana.si/v1"`. Docs: https://revana.si/chat

