메인 콘텐츠로 건너뛰기
POST
/
v1
/
responses
curl --request POST \
  --url https://apiany.ai/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-5.5",
  "input": "이 API 설계를 검토하고 주요 위험 요소를 나열하세요.",
  "reasoning": {
    "effort": "high",
    "summary": "auto"
  },
  "text": {
    "verbosity": "medium"
  }
}
'
{
  "id": "<string>",
  "object": "response",
  "status": "<string>",
  "model": "<string>",
  "output": [
    {}
  ],
  "created_at": 123,
  "output_text": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123,
    "input_tokens": 123,
    "output_tokens": 123,
    "cached_input_tokens": 123
  }
}

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

본문

application/json
model
string
필수
예시:

"gpt-5.5"

input
필수

Responses 입력입니다. 문자열일 수도 있고, message / tool-result 항목 배열일 수도 있습니다.

instructions
string

시스템 또는 개발자 지침입니다.

max_output_tokens
integer

최대 출력 토큰 수입니다.

필수 범위: x >= 1
temperature
number
필수 범위: 0 <= x <= 2
top_p
number
필수 범위: 0 <= x <= 1
reasoning
object
text
object
tools
object[]

Responses tools로, function tools와 web_search_preview 등 내장 도구를 포함합니다.

tool_choice
stream
boolean

true이면 OpenAI Responses SSE 이벤트를 반환합니다.

metadata
object

응답

OpenAI 호환 Responses 응답입니다.

id
string
필수
object
string
필수
예시:

"response"

status
string
필수
model
string
필수
output
object[]
필수
created_at
integer
output_text
string
usage
object