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

# gemini-3.5-flash

> Generate model response based on conversation content. Gemini 3.5 Flash is Google's most intelligent Flash model, optimized for agentic and coding tasks.



## OpenAPI

````yaml api-reference/model-api/google/openapi/gemini-3.5-flash/openapi.yaml POST /v1beta/models/gemini-3.5-flash:generateContent
openapi: 3.1.0
info:
  title: Gemini 3.5 Flash
  description: Google Gemini 3.5 Flash via AnyFast proxy
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security: []
paths:
  /v1beta/models/gemini-3.5-flash:generateContent:
    post:
      summary: Text Generation
      description: >-
        Generate model response based on conversation content. Gemini 3.5 Flash
        is Google's most intelligent Flash model, optimized for agentic and
        coding tasks.
      operationId: Gemini35FlashGenerateContent
      parameters:
        - name: key
          in: query
          description: API Key
          required: true
          schema:
            type: string
          example: YOUR_API_KEY
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - contents
              properties:
                contents:
                  type: array
                  description: Array of conversation contents with user and model messages.
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                          - user
                          - model
                        example: user
                      parts:
                        type: array
                        items:
                          type: object
                          properties:
                            text:
                              type: string
                              description: Text content
                  example:
                    - role: user
                      parts:
                        - text: Explain how parallel agentic execution works.
                systemInstruction:
                  type: object
                  description: System instruction
                  properties:
                    parts:
                      type: array
                      items:
                        type: object
                        properties:
                          text:
                            type: string
                  example:
                    parts:
                      - text: You are a helpful assistant.
                generationConfig:
                  type: object
                  properties:
                    temperature:
                      type: number
                      minimum: 0
                      maximum: 2
                      default: 1
                      description: >-
                        Sampling temperature. Higher values make output more
                        random. Not recommended for Gemini 3.5 Flash — use
                        thinking_level instead.
                    topP:
                      type: number
                      minimum: 0
                      maximum: 1
                      default: 1
                      description: >-
                        Nucleus sampling threshold. Not recommended for Gemini
                        3.5 Flash.
                thinkingConfig:
                  type: object
                  description: Thinking configuration for controlling reasoning depth
                  properties:
                    thinkingLevel:
                      type: string
                      enum:
                        - minimal
                        - low
                        - medium
                        - high
                      default: medium
                      description: >-
                        Controls model reasoning depth. minimal for speed, low
                        for simpler tasks, medium (default) for most tasks, high
                        for complex reasoning.
      responses:
        '200':
          description: Response generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateContentResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GenerateContentResponse:
      type: object
      properties:
        candidates:
          type: array
          items:
            type: object
            properties:
              content:
                type: object
                properties:
                  parts:
                    type: array
                    items:
                      type: object
                      properties:
                        text:
                          type: string
                          example: >-
                            Parallel agentic execution enables multiple AI
                            agents to work simultaneously...
                  role:
                    type: string
                    example: model
              finishReason:
                type: string
                example: STOP
        usageMetadata:
          type: object
          properties:
            promptTokenCount:
              type: integer
            candidatesTokenCount:
              type: integer
            totalTokenCount:
              type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string

````