OpenAI Responses API を使いこなす
James Chapman
AI Curriculum Manager, DataCamp
response = client.responses.create(
model="gpt-5.4-mini",
input="What is recursion?",
)
response = client.responses.create(
model="gpt-5.4-mini",
input="What is recursion?",
)
| モデル | 速度 | コスト | 適した用途 |
|---|---|---|---|
| gpt-5.4-mini | 高速 | 低 | 単純タスク・Q&A |
| gpt-5.5 | 中程度 | 高め | 複雑な推論 |
$$



response = client.responses.create( model="gpt-5.4-mini", input="Explain LLMs to a 6yr old.",reasoning={"effort": "none"})
response = client.responses.create(
model="gpt-5.4-mini",
input="Explain LLMs to a 6yr old.",
reasoning={"effort": "none"}
)
| エフォート | 適した用途 |
|---|---|
| none | 単純・機械的なタスク |
| low | 速度・コスト優先のシンプルなタスク |
| medium | 推論と効率のバランス(デフォルト) |
| high | 複雑・多段階・論理的なタスク |
| xhigh | 最難関タスク(限界に挑むケース) |
response = client.responses.create( model="gpt-5.4-mini", input="Explain LLMs to a 6yr old.", reasoning={ "effort": "medium","summary": "auto"} )
response = client.responses.create( model="gpt-5.4-mini", input="Explain LLMs to a 6yr old.", reasoning={"effort": "none"},max_output_tokens=500)
max_output_tokens には 推論トークン も含まれる
OpenAI Responses API を使いこなす