| 入力 / 1M tokens | $1.25 |
|---|---|
| 出力 / 1M tokens | $10.00 |
| キャッシュ読み取り / 1M | $0.125 |
| 通貨 | USD |
入力 1.6M × $1.25/M + 出力 400K × $10/M
プロンプトキャッシュは入力トークンの半分がキャッシュから $0.13/M で読み込まれると仮定しています。
表示価格に基づく概算
| シナリオ | 入力 / 出力トークン | 1 リクエスト | 1,000 リクエスト |
|---|---|---|---|
| チャット返信 | 200 / 300 | $0.0032 | $3.25 |
| 長文書の要約 | 30K / 1K | $0.048 | $47.50 |
| コードレビュー | 8K / 2K | $0.030 | $30.00 |
見積もりのみ — 実際のトークン数はプロバイダーのトークナイザーに依存します。
OpenAI 互換の SDK を使うか、HTTP リクエストを直接送信します。 API キーを取得
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_tokens で打ち切られたことを示します。usage — この呼び出しで課金される入力・出力トークン数。HTTP 200 かつ finish_reason が "stop" なら呼び出しは成功です。
| パラメータ | 説明 |
|---|---|
max_tokens | モデルが生成するトークン数の上限。 |
tools | モデルが呼び出せる関数(JSON Schema で記述)。 |
response_format | JSON 出力を強制します。JSON Schema の指定も可能です。 |
max_completion_tokens | 推論トークンを含む生成トークンの上限。 |
tool_choice | ツール呼び出しを必須・任意・禁止のいずれにするか。 |
structured_outputs | response_format で指定した厳密な JSON Schema に従えます。 |
reasoning | モデルの推論を設定します(強度・トークン予算・オフ)。 |
include_reasoning | 回答と一緒にモデルの推論テキストを返します。 |
seed | 同じ入力に対して再現可能なサンプリングを求めます。 |
stream | 生成しながら Server-Sent Events で回答を送ります。 |
人の好みと実務タスク
このバッジを埋め込む
@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