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

# Grok Schnittstelle für alle Modelle - Schnellstart Responses

> - Aufruf von xAI-Grok-Textmodellen im OpenAI-Responses-API-Format (Modellauswahl über den Parameter `model`)
- Reasoning- und Tool-Modelle; `grok-4.5` bietet ein Kontextfenster von 500K Token
- Dieser Endpunkt stellt die serverseitigen xAI-Tools bereit: Websuche, X-Suche, Codeausführung, Anhangsuche und Sammlungssuche (Abrechnung pro erfolgreichem Aufruf)
- 💡 Tools und alle Parameter benötigt? Siehe die [vollständige Parameterdokumentation](./responses-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/grok/responses/responses-quickstart.json POST /v1/responses
openapi: 3.1.0
info:
  title: Grok Schnittstelle für alle Modelle - Schnellstart Responses
  description: >-
    Schnelleinstiegsbeispiel für den Aufruf von xAI-Grok-Textmodellen über die
    OpenAI-kompatible Responses-API, einschließlich serverseitiger Tools.
  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: Responses
    description: OpenAI Responses API mit serverseitigen xAI-Tools
paths:
  /v1/responses:
    post:
      tags:
        - Responses
      summary: Grok Schnellantwort (alle Modelle)
      description: >-
        - Aufruf von xAI-Grok-Textmodellen im OpenAI-Responses-API-Format
        (Modellauswahl über den Parameter `model`)

        - Reasoning- und Tool-Modelle; `grok-4.5` bietet ein Kontextfenster von
        500K Token

        - Dieser Endpunkt stellt die serverseitigen xAI-Tools bereit: Websuche,
        X-Suche, Codeausführung, Anhangsuche und Sammlungssuche (Abrechnung pro
        erfolgreichem Aufruf)

        - 💡 Tools und alle Parameter benötigt? Siehe die [vollständige
        Parameterdokumentation](./responses-reference)
      operationId: grokResponsesQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesQuickRequest'
      responses:
        '200':
          description: Antwortgenerierung erfolgreich
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesResponse'
        '400':
          description: Ungültige Anfrageparameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: Invalid request parameters
                  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: Insufficient quota
                  type: insufficient_quota_error
                  fallback_suggestion: https://evolink.ai/dashboard/billing
        '429':
          description: Ratenlimit überschritten
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Rate limit exceeded
                  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: Internal server error
                  type: internal_server_error
                  fallback_suggestion: try again later
        '503':
          description: Dienst vorübergehend nicht verfügbar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Service temporarily unavailable
                  type: service_unavailable_error
                  fallback_suggestion: retry after 30 seconds
components:
  schemas:
    ResponsesQuickRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: >-
            Aufzurufendes Modell:


            | Modell-ID | Positionierung |

            |---|---|

            | `grok-4.5` | xAI-Modell für Reasoning und Tool-Aufrufe,
            Kontextfenster von 500K |
          enum:
            - grok-4.5
          example: grok-4.5
        input:
          type: string
          description: Eingabetext für das Modell
          example: Explain what makes Grok 4.5 different in two sentences.
    ResponsesResponse:
      type: object
      properties:
        id:
          type: string
          description: Eindeutiger Bezeichner der Antwort
          example: 55d44212-8d5e-90cc-975f-36d341ce21f5
        object:
          type: string
          enum:
            - response
          description: Antworttyp
          example: response
        status:
          type: string
          description: Antwortstatus
          enum:
            - completed
            - incomplete
            - failed
          example: completed
        model:
          type: string
          description: Tatsächlich verwendeter Modellname
          example: grok-4.5
        created_at:
          type: integer
          description: Erstellungszeitstempel
          example: 1786538000
        output:
          type: array
          description: >-
            Ausgabeelemente. Grok-Reasoning-Modelle liefern in der Regel zuerst
            `reasoning`-Elemente (zusammengefasster Denkprozess) und
            abschließend ein `message`-Element mit der endgültigen Antwort.
          items:
            $ref: '#/components/schemas/OutputItem'
        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
    OutputItem:
      type: object
      properties:
        id:
          type: string
          description: Bezeichner des Ausgabeelements
        type:
          type: string
          description: Typ des Ausgabeelements
          enum:
            - reasoning
            - message
          example: message
        status:
          type: string
          description: Status des Ausgabeelements
          example: completed
        content:
          type: array
          description: >-
            Inhaltsteile der Nachricht (`output_text`), vorhanden bei
            `message`-Elementen
          items:
            type: object
    Usage:
      type: object
      description: >-
        Statistik zur Token-Nutzung. Ab 200K Token im Prompt werden alle
        Token-Typen zum doppelten Preis abgerechnet.
      properties:
        input_tokens:
          type: integer
          description: Anzahl der Eingabe-Token
          example: 1692
        output_tokens:
          type: integer
          description: Anzahl der Ausgabe-Token (einschließlich Reasoning-Token)
          example: 54
        total_tokens:
          type: integer
          description: Gesamtanzahl der Tokens
          example: 1746
        input_tokens_details:
          type: object
          description: Detaillierte Eingabe-Token-Informationen
          properties:
            cached_tokens:
              type: integer
              description: >-
                Anzahl der Prompt-Token aus dem Cache (Abrechnung zum
                günstigeren Cache-Eingabepreis)
              example: 512
        output_tokens_details:
          type: object
          description: Detaillierte Ausgabe-Token-Informationen
          properties:
            reasoning_tokens:
              type: integer
              description: Anzahl der Reasoning-Tokens
              example: 35
  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

        ```

````