Standard context
$2.00
- Input: $2.00 / 1M tokens · cached input: $0.20 / 1M tokens · output: $10.00 / 1M tokens.
- Applies when input context is 272,000 tokens or less.
GPT-6 Astra の API / 透明なトークン料金の長文脈チャット補完
PiAPI の OpenAI 互換チャット補完エンドポイントで GPT-6 Astra を使って開発できます。プレイグラウンドでメッセージを試し、すぐに返される応答を確認できます。
期間限定のプロモーション価格(OpenAI公式価格の20%)。すべての価格は100万トークンあたりです。
$2.00
$4.00
GPT-6 Astra で開発を始めませんか?
長文脈を扱うアプリケーションや開発ワークフロー向けの OpenAI 互換チャット API です。
標準の messages 配列を POST /v1/chat/completions に送信すると、完成した応答をすぐに受け取れます。
ワークフローに必要な速度と深さのバランスに応じて、推論の強度を low、medium、high から選べます。
標準・長文脈の両料金区分について、入力、キャッシュ入力、出力のトークン料金をまとめて表示します。
入力コンテキストが272,000トークンを超えると、リクエスト全体が長文脈料金に切り替わります。
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-6-astra",
"task_type": "chat-completion",
"input": {
"messages": [{"role":"user","content":"Explain what an API gateway does, in two sentences."}]
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"content": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run gpt-6-astra \ messages=[object Object] ✓ Task completed! https://img.theapi.app/ephemeral/…
標準リクエストは100万入力トークンあたり$2.00、キャッシュ入力トークンあたり$0.20、出力トークンあたり$10.00です。
入力コンテキストが272,000トークンを超えると、リクエスト全体に長文脈料金が適用されます。100万トークンあたり入力$4.00、キャッシュ入力$0.40、出力$15.00です。
OpenAI 互換の POST /v1/chat/completions エンドポイントに model の値と messages 配列を指定します。
More questions? See the API docs.
GPT-6 Astra API