> ## 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 - Schnellstart

> - Aufruf des Gemini-3.5-flash Modells im OpenAI SDK-Format
- Synchroner Verarbeitungsmodus, gibt Gesprächsinhalte in Echtzeit zurück
- Minimale Parameter für einen schnellen Einstieg
- 💡 Mehr Funktionen benötigt? Siehe [Vollständige API-Referenz](./openai-sdk-reference)

<Note>
  **BaseURL**: Die Standard-BaseURL ist `https://direct.evolink.ai` und bietet bessere Unterstützung für Textmodelle sowie persistente Verbindungen. `https://api.evolink.ai` ist der primäre Endpunkt für multimodale Dienste und dient bei Textmodellen als Ausweichadresse.
</Note>


## OpenAPI

````yaml de/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 Schnellstart
  description: >-
    Starten Sie in 5 Minuten mit der Gemini-3.5-flash Chat-API für Ihr erstes
    KI-Gespräch
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Produktion (empfohlen)
  - url: https://api.evolink.ai
    description: Alternative URL
security:
  - bearerAuth: []
tags:
  - name: Chat-Vervollständigung
    description: KI-Chat-Vervollständigung zugehörige APIs
paths:
  /v1/chat/completions:
    post:
      tags:
        - Chat-Vervollständigung
      summary: Gemini-3.5-flash Schnellchat
      description: >-
        - Aufruf des Gemini-3.5-flash Modells im OpenAI SDK-Format

        - Synchroner Verarbeitungsmodus, gibt Gesprächsinhalte in Echtzeit
        zurück

        - Minimale Parameter für einen schnellen Einstieg

        - 💡 Mehr Funktionen benötigt? Siehe [Vollständige
        API-Referenz](./openai-sdk-reference)
      operationId: createChatCompletionQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionQuickRequest'
      responses:
        '200':
          description: Chat-Vervollständigung erfolgreich generiert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
        '400':
          description: Ungültige Anfrageparameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: Ungültige Anfrageparameter
                  type: invalid_request_error
        '401':
          description: Nicht autorisiert, ungültiges oder abgelaufenes Token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Unzureichendes Kontingent, Aufladung erforderlich
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Unzureichendes Kontingent
                  type: insufficient_quota_error
                  fallback_suggestion: https://evolink.ai/dashboard/billing
        '403':
          description: Zugriff verweigert
          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: Ressource nicht gefunden
          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: Ratenlimit überschritten
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Ratenlimit überschritten
                  type: rate_limit_error
                  fallback_suggestion: retry after 60 seconds
        '500':
          description: Interner Serverfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: Interner Serverfehler
                  type: internal_server_error
                  fallback_suggestion: try again later
        '502':
          description: Upstream-Dienstfehler
          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: Dienst vorübergehend nicht verfügbar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Dienst vorübergehend nicht verfügbar
                  type: service_unavailable_error
                  fallback_suggestion: retry after 30 seconds
components:
  schemas:
    ChatCompletionQuickRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          description: Chat-Modellname
          enum:
            - gemini-3.5-flash
          default: gemini-3.5-flash
          example: gemini-3.5-flash
        messages:
          type: array
          description: Liste der Chat-Nachrichten
          items:
            $ref: '#/components/schemas/MessageSimple'
          minItems: 1
          example:
            - role: user
              content: Hello, introduce yourself
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
          description: Eindeutiger Bezeichner für die Chat-Vervollständigung
          example: chatcmpl-20251010015944503180122WJNB8Eid
        model:
          type: string
          description: Tatsächlich verwendeter Modellname
          example: gemini-3.5-flash
        object:
          type: string
          enum:
            - chat.completion
          description: Antworttyp
          example: chat.completion
        created:
          type: integer
          description: Erstellungszeitstempel
          example: 1760032810
        choices:
          type: array
          description: Liste der Chat-Vervollständigungsoptionen
          items:
            $ref: '#/components/schemas/Choice'
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP-Status-Fehlercode
            message:
              type: string
              description: Fehlerbeschreibung
            type:
              type: string
              description: Fehlertyp
            param:
              type: string
              description: Zugehöriger Parametername
            fallback_suggestion:
              type: string
              description: Vorschlag bei Fehlerauftreten
    MessageSimple:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          description: Nachrichtenrolle
          enum:
            - user
        content:
          type: string
          description: Nachrichteninhalt (Klartext)
    Choice:
      type: object
      properties:
        index:
          type: integer
          description: Auswahlindex
          example: 0
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          description: Abschlussgrund
          enum:
            - stop
            - length
            - content_filter
          example: stop
    Usage:
      type: object
      description: Token-Nutzungsstatistiken
      properties:
        prompt_tokens:
          type: integer
          description: Anzahl der Tokens im Eingabeinhalt
          example: 13
        completion_tokens:
          type: integer
          description: Anzahl der Tokens im Ausgabeinhalt
          example: 1891
        total_tokens:
          type: integer
          description: Gesamtanzahl der Tokens
          example: 1904
        prompt_tokens_details:
          type: object
          description: Detaillierte Eingabe-Token-Informationen
          properties:
            cached_tokens:
              type: integer
              description: Anzahl der getroffenen zwischengespeicherten Tokens
              example: 0
            text_tokens:
              type: integer
              description: Anzahl der Text-Tokens
              example: 13
            audio_tokens:
              type: integer
              description: Anzahl der Audio-Tokens
              example: 0
            image_tokens:
              type: integer
              description: Anzahl der Bild-Tokens
              example: 0
        completion_tokens_details:
          type: object
          description: Detaillierte Ausgabe-Token-Informationen
          properties:
            text_tokens:
              type: integer
              description: Anzahl der Text-Tokens
              example: 0
            audio_tokens:
              type: integer
              description: Anzahl der Audio-Tokens
              example: 0
            reasoning_tokens:
              type: integer
              description: Anzahl der Reasoning-Tokens
              example: 1480
        input_tokens:
          type: integer
          description: Anzahl der Eingabe-Tokens (Kompatibilitätsfeld)
          example: 0
        output_tokens:
          type: integer
          description: Anzahl der Ausgabe-Tokens (Kompatibilitätsfeld)
          example: 0
        input_tokens_details:
          type: object
          nullable: true
          description: Detaillierte Eingabe-Token-Informationen (Kompatibilitätsfeld)
          example: null
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          description: Rolle des Nachrichtenabsenders
          enum:
            - assistant
          example: assistant
        content:
          type: string
          description: Inhalt der KI-Antwortnachricht
          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: >-
        ##Alle APIs erfordern Bearer-Token-Authentifizierung##


        **API-Schlüssel erhalten:**


        Besuchen Sie die
        [API-Schlüsselverwaltungsseite](https://evolink.ai/dashboard/keys), um
        Ihren API-Schlüssel zu erhalten


        **Zum Anfrage-Header hinzufügen:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````