Skip to main content

llm models

GPT-6 Astra API 介面 / 透明 token 計價的長上下文聊天完成

透過 PiAPI 相容 OpenAI 的聊天完成端點,使用 GPT-6 Astra 建置應用程式。在試用區測試訊息並檢視即時回應。

立即開始!

GPT-6 Astra token 計價

限時促銷價(OpenAI 官方價格的 20%)。所有價格按每 100 萬 token 計算。

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.

Long context

$4.00

  • Input: $4.00 / 1M tokens · cached input: $0.40 / 1M tokens · output: $15.00 / 1M tokens.
  • Above 272,000 input tokens, the entire request is billed at this tier.

準備好使用 GPT-6 Astra 建置應用程式了嗎?

GPT-6 Astra 的能力

相容 OpenAI 的聊天 API,適用於長上下文應用程式與開發工作流程。

相容 OpenAI 的聊天介面

向 POST /v1/chat/completions 傳送標準 messages 陣列,即可立即收到完整回應。

推理強度控制

依工作流程對速度與深度的需求,選擇 low、medium 或 high 推理強度。

清楚的 token 計費

同時顯示標準與長上下文兩個級別的輸入、快取輸入及輸出 token 價格。

272,000 token 上下文門檻

當輸入上下文超過 272,000 token 時,整個請求轉入長上下文費率。

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

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" }

GPT-6 Astra API 常見問題

GPT-6 Astra 如何計費?

標準請求的價格為每 100 萬輸入 token $2.00、每 100 萬快取輸入 token $0.20、每 100 萬輸出 token $10.00。

輸入超過 272,000 token 會怎樣?

當輸入上下文超過 272,000 token 時,整個請求按長上下文級別計費:每 100 萬 token 的輸入 $4.00、快取輸入 $0.40、輸出 $15.00。

GPT-6 Astra 使用哪個端點?

使用相容 OpenAI 的 POST /v1/chat/completions 端點,並提供 model 值與 messages 陣列。

More questions? See the API docs.

Our blog

GPT-6 Astra API