| อินพุต / 1M โทเค็น | $1.25 |
|---|---|
| เอาต์พุต / 1M โทเค็น | $10.00 |
| อ่านแคช / 1M | $0.125 |
| สกุลเงิน | USD |
อินพุต 1.6M × $1.25/M + เอาต์พุต 400K × $10/M
การแคชพรอมต์สมมติว่าโทเค็นอินพุตครึ่งหนึ่งอ่านจากแคชที่ $0.13/M
ประมาณการจากราคาตั้ง
| สถานการณ์ | โทเค็นอินพุต / เอาต์พุต | ต่อคำขอ | ต่อ 1,000 คำขอ |
|---|---|---|---|
| ตอบแชต | 200 / 300 | $0.0032 | $3.25 |
| สรุปเอกสารยาว | 30K / 1K | $0.048 | $47.50 |
| รีวิวโค้ด | 8K / 2K | $0.030 | $30.00 |
เป็นเพียงการประเมิน — จำนวน token จริงขึ้นอยู่กับ tokenizer ของผู้ให้บริการ
ใช้ SDK ที่เข้ากันได้กับ OpenAI หรือส่งคำขอ HTTP รับ API key
export ORCAROUTER_API_KEY=…https://api.orcarouter.ai/v1import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="openai/gpt-5-2025-08-07",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content){
"id": "chatcmpl-…",
"object": "chat.completion",
"created": 1763280000,
"model": "openai/gpt-5-2025-08-07",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 10,
"total_tokens": 19
}
}choices[0].message.content — คำตอบของโมเดลfinish_reason — "stop" หมายถึงคำตอบครบถ้วน ส่วน "length" หมายถึงถูกตัดที่ max_tokensusage — โทเค็นอินพุตและเอาต์พุตที่คิดเงินสำหรับการเรียกนี้HTTP 200 พร้อม finish_reason เป็น "stop" หมายถึงการเรียกสำเร็จ
| พารามิเตอร์ | หน้าที่ |
|---|---|
max_tokens | จำนวนโทเค็นสูงสุดที่โมเดลสร้าง |
tools | ฟังก์ชันที่โมเดลเรียกได้ อธิบายด้วย JSON Schema |
response_format | บังคับเอาต์พุตเป็น JSON และระบุ JSON Schema ได้ |
max_completion_tokens | จำนวนโทเค็นสูงสุดที่สร้าง รวมโทเค็นการให้เหตุผล |
tool_choice | กำหนดว่าโมเดลต้อง อาจ หรือห้ามเรียกเครื่องมือ |
structured_outputs | โมเดลทำตาม JSON Schema แบบเข้มงวดที่ระบุใน response_format ได้ |
reasoning | ตั้งค่าการให้เหตุผล: ระดับ งบโทเค็น หรือปิด |
include_reasoning | คืนข้อความการให้เหตุผลของโมเดลพร้อมคำตอบ |
seed | ขอให้สุ่มได้ผลซ้ำเดิมเมื่ออินพุตเหมือนกัน |
stream | ส่งคำตอบแบบ server-sent events ระหว่างที่สร้าง |
ความชอบของมนุษย์และงานจริง
ฝังป้ายนี้
ข้อมูลโมเดลแบบ data
GET /api/public/models/openai/gpt-5-2025-08-07เปิด @misc{orcarouter_gpt_5_2025_08_07,
title = {openai/gpt-5-2025-08-07 API},
author = {openai},
year = {n.d.},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/openai/gpt-5-2025-08-07}
}openai. (n.d.). openai/gpt-5-2025-08-07 API. OrcaRouter. https://www.orcarouter.ai/models/openai/gpt-5-2025-08-07