> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Responses 응답 생성

> OpenAI Responses 호환 엔드포인트입니다. Responses 네이티브 input, reasoning 제어, web search 등 내장 도구, 그리고 stream=true일 때의 공식 Responses SSE를 지원합니다.



## OpenAPI

````yaml /ko/openapi.json post /v1/responses
openapi: 3.1.0
info:
  title: APIAny.AI 공개 API
  version: 1.0.0
  description: APIAny.AI의 모델 통합, 비동기 미디어 작업, 채팅 생성, 크레딧 조회 및 작업 조회를 위한 공개 API입니다.
servers:
  - url: https://apiany.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Models
    description: 공개 모델 카탈로그입니다.
  - name: Chat
    description: 텍스트 생성 및 채팅 호환 엔드포인트입니다.
  - name: Images
    description: 이미지 생성 및 이미지 편집 엔드포인트입니다.
  - name: Videos
    description: 동영상 생성 엔드포인트입니다.
  - name: Moderation
    description: Image safety and moderation endpoints.
  - name: Tasks
    description: 비동기 작업 조회입니다.
  - name: Account
    description: 계정 및 크레딧 조회입니다.
  - name: Free APIs
    description: Free utility APIs protected by API key rate limits.
paths:
  /v1/responses:
    post:
      tags:
        - Chat
      summary: Responses 응답 생성
      description: >-
        OpenAI Responses 호환 엔드포인트입니다. Responses 네이티브 input, reasoning 제어, web
        search 등 내장 도구, 그리고 stream=true일 때의 공식 Responses SSE를 지원합니다.
      operationId: createResponse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesRequest'
            examples:
              reasoning:
                value:
                  model: gpt-5.5
                  input: 이 API 설계를 검토하고 주요 위험 요소를 나열하세요.
                  reasoning:
                    effort: high
                    summary: auto
                  text:
                    verbosity: medium
              webSearch:
                value:
                  model: gpt-5.5
                  input: OpenAI Responses API 문서에서 최근에 무엇이 바뀌었나요?
                  tools:
                    - type: web_search_preview
      responses:
        '200':
          description: OpenAI 호환 Responses 응답입니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesResponse'
            text/event-stream:
              schema:
                type: string
                description: stream=true일 때 Responses SSE 이벤트 스트림을 반환합니다.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ResponsesRequest:
      type: object
      additionalProperties: true
      properties:
        model:
          type: string
          example: gpt-5.5
        input:
          description: Responses 입력입니다. 문자열일 수도 있고, message / tool-result 항목 배열일 수도 있습니다.
          oneOf:
            - type: string
            - type: array
              items:
                type: object
                additionalProperties: true
        instructions:
          type: string
          description: 시스템 또는 개발자 지침입니다.
        max_output_tokens:
          type: integer
          minimum: 1
          description: 최대 출력 토큰 수입니다.
        temperature:
          type: number
          minimum: 0
          maximum: 2
        top_p:
          type: number
          minimum: 0
          maximum: 1
        reasoning:
          type: object
          additionalProperties: true
          properties:
            effort:
              type: string
              enum:
                - none
                - minimal
                - low
                - medium
                - high
                - xhigh
              description: 지원 모델의 reasoning 강도입니다.
            summary:
              type: string
              enum:
                - auto
                - concise
                - detailed
        text:
          type: object
          additionalProperties: true
          properties:
            verbosity:
              type: string
              enum:
                - low
                - medium
                - high
            format:
              type: object
              additionalProperties: true
        tools:
          type: array
          description: Responses tools로, function tools와 web_search_preview 등 내장 도구를 포함합니다.
          items:
            type: object
            additionalProperties: true
        tool_choice:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
        stream:
          type: boolean
          description: true이면 OpenAI Responses SSE 이벤트를 반환합니다.
        metadata:
          type: object
          additionalProperties: true
      required:
        - model
        - input
    ResponsesResponse:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        object:
          type: string
          example: response
        created_at:
          type: integer
        status:
          type: string
        model:
          type: string
        output:
          type: array
          items:
            type: object
            additionalProperties: true
        output_text:
          type: string
        usage:
          $ref: '#/components/schemas/TokenUsage'
      required:
        - id
        - object
        - status
        - model
        - output
    TokenUsage:
      type: object
      properties:
        prompt_tokens:
          type: integer
        completion_tokens:
          type: integer
        total_tokens:
          type: integer
        input_tokens:
          type: integer
        output_tokens:
          type: integer
        cached_input_tokens:
          type: integer
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - auth_error
                - rate_limit
                - insufficient_quota
                - content_policy
                - timeout
                - network_error
                - service_error
                - billable_error
                - unknown
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            code:
              type:
                - string
                - 'null'
          required:
            - type
            - message
      required:
        - error
  responses:
    BadRequest:
      description: 요청 파라미터가 유효하지 않습니다.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: API 키가 없거나 API 키가 유효하지 않습니다.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: 요청이 속도 제한을 초과했습니다.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````