Skip to main content

llm models

API สำหรับ GPT-6 Astra / แชตบริบทยาวพร้อมราคาโทเคนที่โปร่งใส

พัฒนาด้วย GPT-6 Astra ผ่านปลายทางแชตที่เข้ากันได้กับ OpenAI ของ PiAPI ใช้พื้นที่ทดลองเพื่อทดสอบข้อความและตรวจสอบคำตอบที่ส่งกลับทันที

เริ่มต้นเลย!

ราคาโทเคน GPT-6 Astra

ราคาโปรโมชั่นแบบจำกัดเวลา (20% ของราคาอย่างเป็นทางการของ OpenAI) ราคาทั้งหมดต่อ 1 ล้านโทเคน

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

API แชตที่เข้ากันได้กับ OpenAI สำหรับแอปพลิเคชันบริบทยาวและขั้นตอนการพัฒนา

แชตที่เข้ากันได้กับ OpenAI

ส่งอาร์เรย์ messages มาตรฐานไปยัง POST /v1/chat/completions แล้วรับคำตอบที่สมบูรณ์ทันที

การปรับการให้เหตุผล

เลือกระดับการให้เหตุผล low, medium หรือ high ตามสมดุลระหว่างความเร็วและความลึกที่ขั้นตอนการทำงานของคุณต้องการ

การคิดค่าโทเคนที่ชัดเจน

แสดงราคาโทเคนอินพุต อินพุตที่แคชไว้ และเอาต์พุตร่วมกันสำหรับบริบททั้งสองระดับ

เกณฑ์บริบท 272,000 โทเคน

เมื่อบริบทอินพุตเกิน 272,000 โทเคน คำขอทั้งหมดจะเปลี่ยนไปใช้อัตราบริบทยาว

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 คิดค่าบริการอย่างไร?

คำขอมาตรฐานมีราคา $2.00 ต่อโทเคนอินพุต 1 ล้านรายการ, $0.20 ต่อโทเคนอินพุตแคช 1 ล้านรายการ และ $10.00 ต่อโทเคนเอาต์พุต 1 ล้านรายการ

จะเกิดอะไรขึ้นเมื่ออินพุตเกิน 272,000 โทเคน?

เมื่อบริบทอินพุตเกิน 272,000 โทเคน คำขอทั้งหมดจะคิดตามอัตราบริบทยาว: อินพุต $4.00, อินพุตแคช $0.40 และเอาต์พุต $15.00 ต่อ 1 ล้านโทเคน

GPT-6 Astra ใช้ปลายทางใด?

ใช้ปลายทาง POST /v1/chat/completions ที่เข้ากันได้กับ OpenAI โดยระบุค่า model และอาร์เรย์ messages

More questions? See the API docs.

Our blog

GPT-6 Astra API