# Fingerprint

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/chat/completions:
    post:
      summary: Fingerprint
      deprecated: false
      description: >-
        For each request to the xAI API, the response body will include a unique
        `system_fingerprint` value. This fingerprint serves as an identifier for
        the current state of the backend system's configuration.


        ## Usage of fingerprint


        - **Monitoring System Changes:** The system fingerprint acts as a
        version control for the backend configuration. If any part of the
        backend system—such as model parameters, server settings, or even the
        underlying infrastructure—changes, the fingerprint will also change.
        This allows developers to track when and how the system has evolved over
        time. This is crucial for debugging, performance optimization, and
        ensuring consistency in API responses.

        - **Security and Integrity:** The fingerprint can be used to ensure the
        integrity of the response. If a response's fingerprint matches the
        expected one based on a recent system configuration, it helps in
        verifying that the data hasn't been tampered with during transmission or
        that the service hasn't been compromised. **The fingerprint will change
        over time and it is expected.**

        - **Compliance and Auditing:** For regulated environments, this
        fingerprint can serve as part of an audit trail, showing when specific
        configurations were in use for compliance purposes.
      tags:
        - Guides
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{XAI_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                      content:
                        type: string
                    required:
                      - role
                      - content
                model:
                  type: string
                stream:
                  type: boolean
                temperature:
                  type: integer
              required:
                - messages
                - model
                - stream
                - temperature
            example:
              messages:
                - role: system
                  content: >-
                    You are Grok, a chatbot inspired by the Hitchhikers Guide to
                    the Galaxy.
                - role: user
                  content: What is the meaning of life, the universe, and everything?
              model: grok-3-latest
              stream: false
              temperature: 0
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Guides
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/875787/apis/api-15799866-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.x.ai/v1/
    description: Prod Env
security: []

```
