# GPT-6.2 Astra API

https://getmegabrain.com/models/openai/gpt-6.2-astra · prices from the live MegaBrain catalogue

> GPT-6.2 Astra is the flagship model in the GPT-6.2 series from OpenAI, built for the hardest projects. It is suited for real-world engineering, professional work and scientific research, with stronger...

| | |
|---|---|
| Model ID | `openai/gpt-6.2-astra` |
| Provider | OpenAI |
| Context window | 1,050,000 tokens |
| Input tokens | $2.88 per 1M tokens |
| Output tokens | $14 per 1M tokens |
| Official OpenAI API input | $8 per 1M tokens (MegaBrain is 64% less) |
| Official OpenAI API output | $40 per 1M tokens (MegaBrain is 65% less) |
| Cache read | $0.14 per 1M tokens |
| Cache write | $3.6 per 1M tokens |
| Accepts | Files, Images, Text, and pdf |
| Produces | Text |
| Max output tokens | 128,000 |

## Call it

```python
from openai import OpenAI

client = OpenAI(base_url="https://getmegabrain.com/api/gateway/v1", api_key="YOUR_MEGABRAIN_KEY")
reply = client.chat.completions.create(
    model="openai/gpt-6.2-astra",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
```

## FAQ

**How much does the GPT-6.2 Astra API cost?**

$2.88 per 1M input tokens and $14 per 1M output tokens, charged from a prepaid US-dollar balance for the tokens actually used. There is no subscription.

**Is the GPT-6.2 Astra API cheaper than the official OpenAI API?**

Yes: $2.88 per 1M input tokens instead of $8 (−64%) and $14 per 1M output tokens instead of $40 (−65%). It is the same model, called with one MegaBrain key and paid from prepaid credits, with no subscription.

**What is the context window of GPT-6.2 Astra?**

1,050,000 tokens (1.1M), with up to 128,000 tokens in one reply.

**How do I call GPT-6.2 Astra through the API?**

Send an OpenAI-compatible request to https://getmegabrain.com/api/gateway/v1/chat/completions with "model": "openai/gpt-6.2-astra" and your MegaBrain API key as a Bearer token. The official OpenAI SDKs, LangChain and any client with a base URL setting work; the same key also reaches image and video models.

**What input does GPT-6.2 Astra accept?**

It accepts Files, Images, Text, and pdf and produces Text.

**Can I try GPT-6.2 Astra before paying?**

Sign-up is free and open to everyone. Adding a card (nothing is charged) gives $1.00 of credit to try any model; after that every model is charged from a balance you top up by card.
