> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-5.6 Luna

> OpenAI's cheapest 5.6 tier. 1.05M context, vision, file input; the rate doubles above 272K prompt tokens.

## Overview

OpenAI's cheapest 5.6 tier. 1.05M context, vision, file input; the rate doubles above 272K prompt tokens.

## Specs

| Field | Value |
| - | - |
| Model ID | `gpt-5.6-luna` |
| Best for | High-volume chat and classification at long context |
| Context window | 1.05M |
| Max output tokens | 128K |
| Input modalities | Text, Image, File |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | Yes |
| Vision | Yes |
| Reasoning | Yes |
| Speed | Fast |
| Cost band | Balanced |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$0.3127 |
| Output | \$1.877 |

Above a long prompt this model costs more per token, because the infrastructure
serving it charges more there. The threshold is on the **prompt**, so you know which
rate applies before you send.

| Prompt length | Input | Output |
| - | :-: | :-: |
| Standard | \$0.3127 | \$1.877 |
| Above 272,000 tokens | \$0.54 | \$2.43 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="gpt-5.6-luna",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=strong"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.