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

# Gemini 3.5 Flash - OpenAI SDK - 빠른 시작

> - OpenAI SDK 형식을 사용하여 Gemini-3.5-flash 모델 호출
- 동기 처리 모드, 대화 내용을 실시간으로 반환
- 최소 매개변수로 빠른 시작
- 💡 더 많은 기능이 필요하신가요? [전체 API 레퍼런스](./openai-sdk-reference)를 확인하세요

<Note>
  **BaseURL**: 기본 BaseURL은 `https://direct.evolink.ai`이며, 텍스트 모델 지원이 더 우수하고 장시간 연결을 지원합니다. `https://api.evolink.ai`는 멀티모달 서비스의 주력 엔드포인트이며, 텍스트 모델에 대해서는 대체 주소로 사용됩니다.
</Note>


## OpenAPI

````yaml ko/api-manual/language-series/gemini-3.5-flash/openai-sdk/openai-sdk-quickstart.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: Gemini-3.5-flash 빠른 시작
  description: 5분 만에 Gemini-3.5-flash 채팅 API를 시작하여 첫 번째 AI 대화를 경험하세요
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 프로덕션 (권장)
  - url: https://api.evolink.ai
    description: 대체 URL
security:
  - bearerAuth: []
tags:
  - name: 채팅 완성
    description: AI 채팅 완성 관련 API
paths:
  /v1/chat/completions:
    post:
      tags:
        - 채팅 완성
      summary: Gemini-3.5-flash 빠른 채팅
      description: |-
        - OpenAI SDK 형식을 사용하여 Gemini-3.5-flash 모델 호출
        - 동기 처리 모드, 대화 내용을 실시간으로 반환
        - 최소 매개변수로 빠른 시작
        - 💡 더 많은 기능이 필요하신가요? [전체 API 레퍼런스](./openai-sdk-reference)를 확인하세요
      operationId: createChatCompletionQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionQuickRequest'
      responses:
        '200':
          description: 채팅 완성이 성공적으로 생성되었습니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
        '400':
          description: 잘못된 요청 매개변수
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: 잘못된 요청 매개변수
                  type: invalid_request_error
        '401':
          description: 인증되지 않음, 유효하지 않거나 만료된 토큰
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 할당량 부족, 충전 필요
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: 할당량 부족
                  type: insufficient_quota_error
                  fallback_suggestion: https://evolink.ai/dashboard/billing
        '403':
          description: 접근 거부
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Access denied for this model
                  type: permission_error
                  param: model
        '404':
          description: 리소스를 찾을 수 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Specified model not found
                  type: not_found_error
                  param: model
                  fallback_suggestion: gemini-3.5-flash
        '429':
          description: 랜덤 시드, 범위 `[0, 2147483647]`, 동일한 시드 값을 사용하면 생성 결과를 일관되게 유지할 수 있습니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: >-
                    랜덤 시드, 범위 `[0, 2147483647]`, 동일한 시드 값을 사용하면 생성 결과를 일관되게 유지할
                    수 있습니다
                  type: rate_limit_error
                  fallback_suggestion: retry after 60 seconds
        '500':
          description: 내부 서버 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: 내부 서버 오류
                  type: internal_server_error
                  fallback_suggestion: try again later
        '502':
          description: 업스트림 서비스 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Upstream AI service unavailable
                  type: upstream_error
                  fallback_suggestion: try different model
        '503':
          description: 서비스 일시적으로 사용 불가
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: 서비스 일시적으로 사용 불가
                  type: service_unavailable_error
                  fallback_suggestion: retry after 30 seconds
components:
  schemas:
    ChatCompletionQuickRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          description: 채팅 모델 이름
          enum:
            - gemini-3.5-flash
          default: gemini-3.5-flash
          example: gemini-3.5-flash
        messages:
          type: array
          description: 채팅 메시지 목록
          items:
            $ref: '#/components/schemas/MessageSimple'
          minItems: 1
          example:
            - role: user
              content: Hello, introduce yourself
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
          description: 채팅 완성의 고유 식별자
          example: chatcmpl-20251010015944503180122WJNB8Eid
        model:
          type: string
          description: 실제 사용된 모델 이름
          example: gemini-3.5-flash
        object:
          type: string
          enum:
            - chat.completion
          description: 응답 유형
          example: chat.completion
        created:
          type: integer
          description: 생성 타임스탬프
          example: 1760032810
        choices:
          type: array
          description: 채팅 완성 선택지 목록
          items:
            $ref: '#/components/schemas/Choice'
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP 상태 오류 코드
            message:
              type: string
              description: 오류 설명
            type:
              type: string
              description: 오류 유형
            param:
              type: string
              description: 관련 매개변수 이름
            fallback_suggestion:
              type: string
              description: 오류 발생 시 제안
    MessageSimple:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          description: 메시지 역할
          enum:
            - user
        content:
          type: string
          description: 메시지 내용 (일반 텍스트)
    Choice:
      type: object
      properties:
        index:
          type: integer
          description: 선택 인덱스
          example: 0
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          description: 종료 이유
          enum:
            - stop
            - length
            - content_filter
          example: stop
    Usage:
      type: object
      description: 토큰 사용 통계
      properties:
        prompt_tokens:
          type: integer
          description: 입력 콘텐츠의 토큰 수
          example: 13
        completion_tokens:
          type: integer
          description: 출력 콘텐츠의 토큰 수
          example: 1891
        total_tokens:
          type: integer
          description: 총 토큰 수
          example: 1904
        prompt_tokens_details:
          type: object
          description: 상세 입력 토큰 정보
          properties:
            cached_tokens:
              type: integer
              description: 캐시 적중 토큰 수
              example: 0
            text_tokens:
              type: integer
              description: 텍스트 토큰 수
              example: 13
            audio_tokens:
              type: integer
              description: 오디오 토큰 수
              example: 0
            image_tokens:
              type: integer
              description: 이미지 토큰 수
              example: 0
        completion_tokens_details:
          type: object
          description: 상세 출력 토큰 정보
          properties:
            text_tokens:
              type: integer
              description: 텍스트 토큰 수
              example: 0
            audio_tokens:
              type: integer
              description: 오디오 토큰 수
              example: 0
            reasoning_tokens:
              type: integer
              description: 추론 토큰 수
              example: 1480
        input_tokens:
          type: integer
          description: 입력 토큰 수 (호환성 필드)
          example: 0
        output_tokens:
          type: integer
          description: 출력 토큰 수 (호환성 필드)
          example: 0
        input_tokens_details:
          type: object
          nullable: true
          description: 상세 입력 토큰 정보 (호환성 필드)
          example: null
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          description: 메시지 발신자 역할
          enum:
            - assistant
          example: assistant
        content:
          type: string
          description: AI 응답 메시지 내용
          example: |-
            Note: This is sample code!

            Hello! I'm pleased to introduce myself.

            I'm a Large Language Model, trained and developed by Google...
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##모든 API는 Bearer Token 인증이 필요합니다##

        **API Key 받기:**

        [API Key 관리 페이지](https://evolink.ai/dashboard/keys)를 방문하여 API Key를 받으세요

        **요청 헤더에 추가:**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````