GPT-6.2 Astra API
OpenAI's most capable model for the hardest projects, from start to finish.
gpt-6.2-astra获取 API 密钥价格 美元 / 每百万 token
| Token | 每 100 万 token | 提示词超过 272K |
|---|---|---|
| 输入 | $1.87 | $3.7266 |
| 缓存输入 | $0.094 | $0.1864 |
| 缓存写入(5 分钟) | $2.33 | $4.6583 |
| 缓存写入(1 小时) | $3.73 | $7.4532 |
| 输出 | $9.32 | $13.9747 |
A request whose prompt is over 272K tokens is billed at $3.7266 input and $13.9747 output per million tokens. Reasoning tokens are billed as output. Each answer's usage carries cost_usd, the amount taken from your balance; a request with no answer costs $0.00.
请求
curl https://api.revana.si/v1/chat/completions \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6.2-astra","messages":[{"role":"user","content":"Write a haiku about routing."}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
model="gpt-6.2-astra",
messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)任意 OpenAI SDK 都可使用:把 base URL 设为 https://api.revana.si/v1。流式输出、工具调用等内容见 chat completions 文档。
详情
gpt-6.2-astraPOST /v1/chat/completions1 条线路
目前只有一条线路。没有得到回答的请求不会扣费。
About the GPT-6.2 Astra API
How much does the GPT-6.2 Astra API cost?
GPT-6.2 Astra costs $1.87 per million input tokens, $0.094 per million cached input tokens and $9.32 per million output tokens on Revana. A request whose prompt is over 272K tokens is billed at $3.7266 input and $13.9747 output per million tokens. You pay from prepaid credit for the tokens each request used, with no subscription or minimum.
How do I call GPT-6.2 Astra from code?
Use any OpenAI SDK with base URL https://api.revana.si/v1 and your Revana API key, and set model to "gpt-6.2-astra". POST /v1/chat/completions takes the OpenAI request body, streamed or not.
请求失败了会怎样?
没有得到回答的请求不产生任何费用。
Is GPT-6.2 Astra on Revana the same model?
是的。Revana 会把你的请求原样传给 OpenAI 的模型,并以 OpenAI 格式返回它的回答,以及它报告的用量和该请求的费用。
OpenAI 的更多模型
Every OpenAI model and its price
- GPT-4.1 $2.88 in / $11.52 out per 1M tokens
- GPT-4.1 mini $0.576 in / $2.304 out per 1M tokens
- GPT-4.1 nano $0.144 in / $0.576 out per 1M tokens
- GPT-4o $3.60 in / $14.40 out per 1M tokens
- GPT-4o mini $0.216 in / $0.864 out per 1M tokens
- GPT-5 $1.80 in / $14.40 out per 1M tokens
- GPT-5 mini $0.36 in / $2.88 out per 1M tokens
- GPT-5 nano $0.072 in / $0.576 out per 1M tokens