Refract

Refract › Models › GPT-6.2 Astra

GPT-6.2 Astra API

Use GPT-6.2 Astra by OpenAI through Refract's OpenAI-compatible API for $1.40 per 1M input and $7.00 per 1M output tokens, 82% below the official $8 / $40. Pay per token, no subscription.

Model IDgpt-6.2-astra
ProviderOpenAI
Input, per 1M tokens$1.40 (official $8)
Output, per 1M tokens$7.00 (official $40)
Context window1,050,000 tokens

About this model

GPT-6.2 Astra is the newest GPT Astra model on Refract, and the highest-priced of the 7 OpenAI models here. It replaces GPT-6 Astra as the latest GPT Astra model. It reads up to 1M tokens of context and writes up to 128K tokens per reply. Repeated prompt prefixes are read from cache at $0.070 per 1M tokens, 95% less than fresh input, which is what makes long agent sessions cheap.

How it compares

What a request costs

A typical chat message (2,000 tokens in, 400 out) costs about $0.0056. A coding-agent step (60,000 tokens in, 54,000 of them from cache, 800 out) costs about $0.018.

Chat with GPT-6.2 Astra · Get an API key

Use it from code

curl https://refracthub.com/v1/chat/completions \
  -H "Authorization: Bearer $REFRACT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6.2-astra", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI

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

Questions

How much does GPT-6.2 Astra cost on Refract?

$1.40 per 1M input tokens and $7.00 per 1M output tokens, compared with $8 and $40 on OpenAI's official API. You pay only for the tokens you use, with no subscription.

GPT-6.2 Astra or GPT-6 Astra: which should I use?

GPT-6 Astra is cheaper. GPT-6.2 Astra is the newer release. Both work with the same key and the same API, so you can try one and switch by changing the model name from "gpt-6.2-astra" to "gpt-6-astra".

Does it work with the OpenAI SDK?

Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "gpt-6.2-astra". The Anthropic Messages format works too.

Can I use GPT-6.2 Astra without writing code?

Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.

Other OpenAI models

All 56 models