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

# EvoLink Auto - Gemini Format

> Intelligent routing using Google Generative AI format

## Smart Model Routing

Call EvoLink Auto intelligent model routing using Google Generative AI format.

### Key Features

* **Gemini Native Format**: Fully compatible with Google Generative AI API
* **Intelligent Routing**: Automatically selects a suitable model
* **Transparent Response**: Response includes the actual model version used

<Note>
  Use `evolink/auto` in the path parameter and call the `/v1beta/models/evolink/auto:generateContent` endpoint.
</Note>

<Note>
  **BaseURL**: The default BaseURL is `https://direct.evolink.ai`, which has better support for text models and long-lived connections. `https://api.evolink.ai` is the primary endpoint for multimodal services and serves as a fallback address for text models.
</Note>


## OpenAPI

````yaml /en/api-manual/language-series/evolink-auto/evolink-auto-gemini.json POST /v1beta/models/{model}:generateContent
openapi: 3.1.0
info:
  title: EvoLink Auto - Gemini Format
  description: Intelligent model routing using Google Generative AI format
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Standard API
security:
  - bearerAuth: []
paths:
  /v1beta/models/{model}:generateContent:
    post:
      tags:
        - Intelligent Routing
      summary: Intelligent Model Routing (Gemini Format)
      description: Intelligent routing using Google Generative AI format
      operationId: generateContentAuto
      parameters:
        - name: model
          in: path
          required: true
          schema:
            type: string
            enum:
              - evolink/auto
            example: evolink/auto
          description: Model name, use evolink/auto to enable intelligent routing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeminiAutoRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeminiResponse'
components:
  schemas:
    GeminiAutoRequest:
      type: object
      required:
        - contents
      properties:
        contents:
          type: array
          description: Conversation content list
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                  - user
                  - model
              parts:
                type: array
                items:
                  type: object
                  properties:
                    text:
                      type: string
          example:
            - role: user
              parts:
                - text: Introduce the history of artificial intelligence
        generationConfig:
          type: object
          properties:
            temperature:
              type: number
              minimum: 0
              maximum: 2
              example: 0.7
            topP:
              type: number
              minimum: 0
              maximum: 1
              example: 0.9
            topK:
              type: integer
              minimum: 1
              example: 40
            maxOutputTokens:
              type: integer
              example: 1024
    GeminiResponse:
      type: object
      properties:
        candidates:
          type: array
          items:
            type: object
            properties:
              content:
                type: object
                properties:
                  parts:
                    type: array
                    items:
                      type: object
                      properties:
                        text:
                          type: string
                  role:
                    type: string
                    enum:
                      - model
              finishReason:
                type: string
        usageMetadata:
          type: object
          properties:
            promptTokenCount:
              type: integer
            candidatesTokenCount:
              type: integer
            totalTokenCount:
              type: integer
        modelVersion:
          type: string
          description: Actual model version used
          example: gemini-2.5-pro
      example:
        candidates:
          - content:
              parts:
                - text: >-
                    The history of artificial intelligence dates back to the
                    1950s...
              role: model
            finishReason: STOP
        usageMetadata:
          promptTokenCount: 15
          candidatesTokenCount: 156
          totalTokenCount: 171
        modelVersion: gpt-5.4
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ##All APIs require Bearer Token authentication##


        **Get API Key:**


        Visit [API Key Management](https://evolink.ai/dashboard/keys) to get
        your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```
      bearerFormat: sk-evo-xxxxxxxxxx

````