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

# gemini-3.5-flash

> Generate a model response from the conversation. Gemini 3.5 Flash is Google's most capable Flash model, optimized for agent and coding tasks.



## OpenAPI

````yaml en/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: Use Google Gemini 3.5 Flash
  version: 1.0.0
servers:
  - url: https://ai.cubeuaeai.com
security: []
paths:
  /v1beta/models/gemini-3.5-flash:generateContent:
    post:
      summary: Text generation
      description: >-
        Generate a model response from the conversation. Gemini 3.5 Flash is
        Google's most capable Flash model, optimized for agent 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 including 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 agent 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 the output more
                        random. Not recommended for Gemini 3.5 Flash — use
                        thinking_level。
                    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, used to control reasoning depth
                  properties:
                    thinkingLevel:
                      type: string
                      enum:
                        - minimal
                        - low
                        - medium
                        - high
                      default: medium
                      description: >-
                        Controls reasoning depth. minimal favors speed, low
                        suits simple tasks, medium (default) suits most tasks,
                        high suits 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 agent execution allows multiple AI agents
                            to work at the same time...
                  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

````