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 활용하기