Skip to main content

llm models

API untuk GPT-6 Astra / Chat konteks panjang dengan harga token transparan

Bangun dengan GPT-6 Astra melalui endpoint chat kompatibel OpenAI milik PiAPI. Gunakan area uji untuk mencoba pesan dan memeriksa respons langsung.

Mulai Sekarang!

Harga token GPT-6 Astra

Harga promosi terbatas (20% dari harga resmi OpenAI). Semua harga per 1 juta 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.

Siap membangun dengan GPT-6 Astra?

Kemampuan GPT-6 Astra

API chat kompatibel OpenAI untuk aplikasi berkonteks panjang dan alur kerja pengembang.

Chat kompatibel OpenAI

Kirim array messages standar ke POST /v1/chat/completions dan terima respons lengkap secara langsung.

Pengaturan penalaran

Pilih tingkat upaya penalaran low, medium, atau high sesuai keseimbangan kecepatan dan kedalaman yang dibutuhkan alur kerja Anda.

Penagihan token yang jelas

Harga token input, input cache, dan output ditampilkan bersama untuk kedua tingkat konteks.

Ambang konteks 272000 token

Saat konteks input melebihi 272000 token, seluruh permintaan beralih ke tarif konteks panjang.

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

FAQ API GPT-6 Astra

Bagaimana penagihan GPT-6 Astra?

Permintaan standar berharga $2.00 per 1 juta token input, $0.20 per 1 juta token input cache, dan $10.00 per 1 juta token output.

Apa yang terjadi di atas 272000 token input?

Saat konteks input melebihi 272000 token, seluruh permintaan ditagihkan dengan tarif konteks panjang: $4.00 input, $0.40 input cache, dan $15.00 output per 1 juta token.

Endpoint apa yang digunakan GPT-6 Astra?

Gunakan endpoint POST /v1/chat/completions yang kompatibel dengan OpenAI dengan nilai model dan array messages.

More questions? See the API docs.

Our blog

GPT-6 Astra API