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

# POST /v1beta/models/{model}:generateContent

> Available at the instance root or under a provider/namespace prefix. Shared paths select the wire dialect from client headers; without dialect evidence, the first listed route wins.



## OpenAPI

````yaml /generated/openapi.json post /v1beta/models/{model}:generateContent
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1beta/models/{model}:generateContent:
    post:
      tags:
        - Forwarding
      summary: POST /v1beta/models/{model}:generateContent
      description: >-
        Available at the instance root or under a provider/namespace prefix.
        Shared paths select the wire dialect from client headers; without
        dialect evidence, the first listed route wins.
      parameters:
        - in: path
          name: model
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_GenerateContentRequestBody3'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_GenerateContentResponseBody3'
          description: Successful protocol response
        default:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_Envelope'
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_ErrorDetail'
                    required:
                      - error
                    type: object
                  - allOf:
                      - $ref: '#/components/schemas/Output_ErrorEvent'
                      - properties:
                          type:
                            const: error
                        required:
                          - type
                        type: object
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_GenerateContentError'
                    required:
                      - error
                    type: object
            text/plain:
              schema:
                type: string
          description: Gateway or upstream error
components:
  schemas:
    Input_GenerateContentRequestBody3:
      additionalProperties: true
      properties:
        cachedContent:
          type:
            - string
            - 'null'
        contents:
          items:
            $ref: '#/components/schemas/Input_Content'
          type: array
        continuationToken:
          description: >-
            Opaque token from a previous hop; contents must match the original
            request.
          type:
            - string
            - 'null'
        generationConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_GenerationConfig'
            - type: 'null'
        labels:
          additionalProperties:
            type: string
          type:
            - object
            - 'null'
        safetySettings:
          items:
            $ref: '#/components/schemas/Input_SafetySetting'
          type:
            - array
            - 'null'
        serviceTier:
          anyOf:
            - $ref: '#/components/schemas/Input_ServiceTier'
            - type: 'null'
        store:
          type:
            - boolean
            - 'null'
        systemInstruction:
          anyOf:
            - $ref: '#/components/schemas/Input_Content'
            - type: 'null'
        toolConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolConfig'
            - type: 'null'
        tools:
          items:
            $ref: '#/components/schemas/Input_Tool3'
          type:
            - array
            - 'null'
      required:
        - contents
      type: object
    Output_GenerateContentResponseBody3:
      additionalProperties: true
      properties:
        candidates:
          items:
            $ref: '#/components/schemas/Output_Candidate'
          type:
            - array
            - 'null'
        error:
          anyOf:
            - $ref: '#/components/schemas/Output_GenerateContentError'
            - type: 'null'
          description: >-
            A Google API error can arrive as a record inside a successful HTTP
            stream.
        modelStatus:
          anyOf:
            - $ref: '#/components/schemas/Output_ModelStatus'
            - type: 'null'
        modelVersion:
          type:
            - string
            - 'null'
        promptFeedback:
          anyOf:
            - $ref: '#/components/schemas/Output_PromptFeedback'
            - type: 'null'
        responseId:
          type:
            - string
            - 'null'
        usageMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_UsageMetadata'
            - type: 'null'
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
      required:
        - message
      type: object
    Output_ErrorEvent:
      additionalProperties: true
      properties:
        error:
          $ref: '#/components/schemas/Output_StreamError'
        request_id:
          type:
            - string
            - 'null'
      required:
        - error
      type: object
    Output_GenerateContentError:
      additionalProperties: true
      properties:
        code:
          format: int64
          type: integer
        details:
          items: true
          type:
            - array
            - 'null'
        message:
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - code
        - message
      type: object
    Input_Content:
      additionalProperties: true
      properties:
        parts:
          items:
            $ref: '#/components/schemas/Input_Part'
          type:
            - array
            - 'null'
        role:
          type:
            - string
            - 'null'
      type: object
    Input_GenerationConfig:
      additionalProperties: true
      properties:
        _responseJsonSchema: true
        audioTranscriptionConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_AudioTranscriptionConfig'
            - type: 'null'
        candidateCount:
          format: int64
          type:
            - integer
            - 'null'
        enableAffectiveDialog:
          type:
            - boolean
            - 'null'
        enableEnhancedCivicAnswers:
          type:
            - boolean
            - 'null'
        frequencyPenalty:
          format: double
          type:
            - number
            - 'null'
        imageConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageConfig'
            - type: 'null'
        logprobs:
          format: int64
          type:
            - integer
            - 'null'
        maxOutputTokens:
          format: int64
          type:
            - integer
            - 'null'
        mediaResolution:
          anyOf:
            - $ref: '#/components/schemas/Input_GenerationMediaResolution'
            - type: 'null'
        presencePenalty:
          format: double
          type:
            - number
            - 'null'
        responseFormat:
          anyOf:
            - $ref: '#/components/schemas/Input_ResponseFormatConfig'
            - type: 'null'
        responseJsonSchema: true
        responseLogprobs:
          type:
            - boolean
            - 'null'
        responseMimeType:
          type:
            - string
            - 'null'
        responseModalities:
          items:
            $ref: '#/components/schemas/Input_Modality'
          type:
            - array
            - 'null'
        responseSchema:
          anyOf:
            - $ref: '#/components/schemas/Input_Schema'
            - type: 'null'
        seed:
          format: int64
          type:
            - integer
            - 'null'
        speechConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_SpeechConfig'
            - type: 'null'
        stopSequences:
          items:
            type: string
          type:
            - array
            - 'null'
        temperature:
          format: double
          type:
            - number
            - 'null'
        thinkingConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingConfig2'
            - type: 'null'
        topK:
          format: int64
          type:
            - integer
            - 'null'
        topP:
          format: double
          type:
            - number
            - 'null'
        translationConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_TranslationConfig'
            - type: 'null'
      type: object
    Input_SafetySetting:
      additionalProperties: true
      properties:
        category:
          $ref: '#/components/schemas/Input_HarmCategory'
        threshold:
          $ref: '#/components/schemas/Input_HarmBlockThreshold'
      required:
        - category
        - threshold
      type: object
    Input_ServiceTier:
      enum:
        - unspecified
        - standard
        - flex
        - priority
      type: string
    Input_ToolConfig:
      additionalProperties: true
      properties:
        functionCallingConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_FunctionCallingConfig'
            - type: 'null'
        includeServerSideToolInvocations:
          type:
            - boolean
            - 'null'
        retrievalConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_RetrievalConfig'
            - type: 'null'
      type: object
    Input_Tool3:
      additionalProperties: true
      properties:
        codeExecution:
          anyOf:
            - $ref: '#/components/schemas/Input_CodeExecution'
            - type: 'null'
        computerUse:
          anyOf:
            - $ref: '#/components/schemas/Input_ComputerUse'
            - type: 'null'
        fileSearch:
          anyOf:
            - $ref: '#/components/schemas/Input_FileSearch'
            - type: 'null'
        functionDeclarations:
          items:
            $ref: '#/components/schemas/Input_FunctionDeclaration'
          type:
            - array
            - 'null'
        googleMaps:
          anyOf:
            - $ref: '#/components/schemas/Input_GoogleMaps'
            - type: 'null'
        googleSearch:
          anyOf:
            - $ref: '#/components/schemas/Input_GoogleSearch'
            - type: 'null'
        googleSearchRetrieval:
          anyOf:
            - $ref: '#/components/schemas/Input_GoogleSearchRetrieval'
            - type: 'null'
        mcpServers:
          items:
            $ref: '#/components/schemas/Input_McpServer'
          type:
            - array
            - 'null'
        urlContext:
          anyOf:
            - $ref: '#/components/schemas/Input_UrlContext'
            - type: 'null'
      type: object
    Output_Candidate:
      additionalProperties: true
      properties:
        avgLogprobs:
          format: double
          type:
            - number
            - 'null'
        citationMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_CitationMetadata'
            - type: 'null'
        content:
          anyOf:
            - $ref: '#/components/schemas/Output_Content'
            - type: 'null'
        continuationToken:
          type:
            - string
            - 'null'
        finishMessage:
          type:
            - string
            - 'null'
        finishReason:
          anyOf:
            - $ref: '#/components/schemas/Output_FinishReason'
            - type: 'null'
        groundingAttributions:
          items:
            $ref: '#/components/schemas/Output_GroundingAttribution'
          type:
            - array
            - 'null'
        groundingMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_GroundingMetadata'
            - type: 'null'
        index:
          format: int64
          type:
            - integer
            - 'null'
        logprobsResult:
          anyOf:
            - $ref: '#/components/schemas/Output_LogprobsResult'
            - type: 'null'
        safetyRatings:
          items:
            $ref: '#/components/schemas/Output_SafetyRating'
          type:
            - array
            - 'null'
        tokenCount:
          format: int64
          type:
            - integer
            - 'null'
        urlContextMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_UrlContextMetadata'
            - type: 'null'
      type: object
    Output_ModelStatus:
      additionalProperties: true
      properties:
        message:
          type:
            - string
            - 'null'
        modelStage:
          anyOf:
            - $ref: '#/components/schemas/Output_ModelStage'
            - type: 'null'
        retirementTime:
          type:
            - string
            - 'null'
      type: object
    Output_PromptFeedback:
      additionalProperties: true
      properties:
        blockReason:
          anyOf:
            - $ref: '#/components/schemas/Output_BlockReason'
            - type: 'null'
        safetyRatings:
          items:
            $ref: '#/components/schemas/Output_SafetyRating'
          type:
            - array
            - 'null'
      type: object
    Output_UsageMetadata:
      additionalProperties: true
      properties:
        cacheTokensDetails:
          items:
            $ref: '#/components/schemas/Output_ModalityTokenCount'
          type:
            - array
            - 'null'
        cachedContentTokenCount:
          format: int64
          type:
            - integer
            - 'null'
        candidatesTokenCount:
          format: int64
          type:
            - integer
            - 'null'
        candidatesTokensDetails:
          items:
            $ref: '#/components/schemas/Output_ModalityTokenCount'
          type:
            - array
            - 'null'
        promptTokenCount:
          format: int64
          type:
            - integer
            - 'null'
        promptTokensDetails:
          items:
            $ref: '#/components/schemas/Output_ModalityTokenCount'
          type:
            - array
            - 'null'
        serviceTier:
          anyOf:
            - $ref: '#/components/schemas/Output_ServiceTier2'
            - type: 'null'
        thoughtsTokenCount:
          format: int64
          type:
            - integer
            - 'null'
        toolUsePromptTokenCount:
          format: int64
          type:
            - integer
            - 'null'
        toolUsePromptTokensDetails:
          items:
            $ref: '#/components/schemas/Output_ModalityTokenCount'
          type:
            - array
            - 'null'
        totalTokenCount:
          format: int64
          type:
            - integer
            - 'null'
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_StreamError:
      additionalProperties: true
      properties:
        message:
          type: string
        type:
          $ref: '#/components/schemas/Output_StreamErrorType'
      required:
        - type
        - message
      type: object
    Input_Part:
      additionalProperties: true
      properties:
        audioTranscription:
          anyOf:
            - $ref: '#/components/schemas/Input_AudioTranscription'
            - type: 'null'
        codeExecutionResult:
          anyOf:
            - $ref: '#/components/schemas/Input_CodeExecutionResult2'
            - type: 'null'
        executableCode:
          anyOf:
            - $ref: '#/components/schemas/Input_ExecutableCode'
            - type: 'null'
        fileData:
          anyOf:
            - $ref: '#/components/schemas/Input_FileData'
            - type: 'null'
        functionCall:
          anyOf:
            - $ref: '#/components/schemas/Input_FunctionCall2'
            - type: 'null'
        functionResponse:
          anyOf:
            - $ref: '#/components/schemas/Input_FunctionResponse'
            - type: 'null'
        inlineData:
          anyOf:
            - $ref: '#/components/schemas/Input_Blob'
            - type: 'null'
        mediaProcessing:
          anyOf:
            - $ref: '#/components/schemas/Input_MediaProcessing'
            - type: 'null'
        mediaResolution:
          anyOf:
            - $ref: '#/components/schemas/Input_MediaResolution'
            - type: 'null'
        partMetadata:
          additionalProperties: true
          type:
            - object
            - 'null'
        speechMetadata:
          anyOf:
            - $ref: '#/components/schemas/Input_SpeechMetadata'
            - type: 'null'
        text:
          type:
            - string
            - 'null'
        thought:
          type:
            - boolean
            - 'null'
        thoughtSignature:
          type:
            - string
            - 'null'
        toolCall:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolCall'
            - type: 'null'
        toolResponse:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolResponse'
            - type: 'null'
        videoMetadata:
          anyOf:
            - $ref: '#/components/schemas/Input_VideoMetadata'
            - type: 'null'
      type: object
    Input_AudioTranscriptionConfig:
      additionalProperties: true
      properties:
        adaptationPhrases:
          items:
            type: string
          type:
            - array
            - 'null'
        customVocabulary:
          items:
            type: string
          type:
            - array
            - 'null'
        diarization:
          type:
            - boolean
            - 'null'
        languageAuto:
          anyOf:
            - $ref: '#/components/schemas/Input_LanguageAuto'
            - type: 'null'
        languageCodes:
          items:
            type: string
          type:
            - array
            - 'null'
        languageHints:
          anyOf:
            - $ref: '#/components/schemas/Input_LanguageHints'
            - type: 'null'
        mode:
          anyOf:
            - $ref: '#/components/schemas/Input_AudioTranscriptionMode'
            - type: 'null'
        wordTimestamp:
          type:
            - boolean
            - 'null'
      type: object
    Input_ImageConfig:
      additionalProperties: true
      properties:
        aspectRatio:
          type:
            - string
            - 'null'
        imageSize:
          type:
            - string
            - 'null'
      type: object
    Input_GenerationMediaResolution:
      enum:
        - MEDIA_RESOLUTION_UNSPECIFIED
        - MEDIA_RESOLUTION_LOW
        - MEDIA_RESOLUTION_MEDIUM
        - MEDIA_RESOLUTION_HIGH
      type: string
    Input_ResponseFormatConfig:
      additionalProperties: true
      properties:
        audio:
          anyOf:
            - $ref: '#/components/schemas/Input_AudioResponseFormat'
            - type: 'null'
        image:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageResponseFormat'
            - type: 'null'
        text:
          anyOf:
            - $ref: '#/components/schemas/Input_TextResponseFormat'
            - type: 'null'
      type: object
    Input_Modality:
      enum:
        - MODALITY_UNSPECIFIED
        - TEXT
        - IMAGE
        - VIDEO
        - AUDIO
        - DOCUMENT
      type: string
    Input_Schema:
      additionalProperties: true
      properties:
        anyOf:
          items:
            $ref: '#/components/schemas/Input_Schema'
          type:
            - array
            - 'null'
        default: true
        description:
          type:
            - string
            - 'null'
        enum:
          items:
            type: string
          type:
            - array
            - 'null'
        example: true
        format:
          type:
            - string
            - 'null'
        items:
          anyOf:
            - $ref: '#/components/schemas/Input_Schema'
            - type: 'null'
        maxItems:
          type:
            - string
            - 'null'
        maxLength:
          type:
            - string
            - 'null'
        maxProperties:
          type:
            - string
            - 'null'
        maximum:
          format: double
          type:
            - number
            - 'null'
        minItems:
          type:
            - string
            - 'null'
        minLength:
          type:
            - string
            - 'null'
        minProperties:
          type:
            - string
            - 'null'
        minimum:
          format: double
          type:
            - number
            - 'null'
        nullable:
          type:
            - boolean
            - 'null'
        pattern:
          type:
            - string
            - 'null'
        properties:
          additionalProperties:
            $ref: '#/components/schemas/Input_Schema'
          type:
            - object
            - 'null'
        propertyOrdering:
          items:
            type: string
          type:
            - array
            - 'null'
        required:
          items:
            type: string
          type:
            - array
            - 'null'
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_SchemaType'
      required:
        - type
      type: object
    Input_SpeechConfig:
      additionalProperties: true
      properties:
        languageCode:
          type:
            - string
            - 'null'
        multiSpeakerVoiceConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_MultiSpeakerVoiceConfig'
            - type: 'null'
        voiceConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_VoiceConfig'
            - type: 'null'
      type: object
    Input_ThinkingConfig2:
      additionalProperties: true
      properties:
        includeThoughts:
          type:
            - boolean
            - 'null'
        thinkingBudget:
          format: int64
          type:
            - integer
            - 'null'
        thinkingLevel:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingLevel'
            - type: 'null'
      type: object
    Input_TranslationConfig:
      additionalProperties: true
      properties:
        echoTargetLanguage:
          type:
            - boolean
            - 'null'
        targetLanguageCode:
          type:
            - string
            - 'null'
      type: object
    Input_HarmCategory:
      enum:
        - HARM_CATEGORY_UNSPECIFIED
        - HARM_CATEGORY_HARASSMENT
        - HARM_CATEGORY_HATE_SPEECH
        - HARM_CATEGORY_SEXUALLY_EXPLICIT
        - HARM_CATEGORY_DANGEROUS_CONTENT
        - HARM_CATEGORY_CIVIC_INTEGRITY
        - HARM_CATEGORY_DEROGATORY
        - HARM_CATEGORY_TOXICITY
        - HARM_CATEGORY_VIOLENCE
        - HARM_CATEGORY_SEXUAL
        - HARM_CATEGORY_MEDICAL
        - HARM_CATEGORY_DANGEROUS
        - HARM_CATEGORY_JAILBREAK
      type: string
    Input_HarmBlockThreshold:
      enum:
        - HARM_BLOCK_THRESHOLD_UNSPECIFIED
        - BLOCK_LOW_AND_ABOVE
        - BLOCK_MEDIUM_AND_ABOVE
        - BLOCK_ONLY_HIGH
        - BLOCK_NONE
        - 'OFF'
      type: string
    Input_FunctionCallingConfig:
      additionalProperties: true
      properties:
        allowedFunctionNames:
          items:
            type: string
          type:
            - array
            - 'null'
        mode:
          anyOf:
            - $ref: '#/components/schemas/Input_FunctionCallingMode'
            - type: 'null'
      type: object
    Input_RetrievalConfig:
      additionalProperties: true
      properties:
        languageCode:
          type:
            - string
            - 'null'
        latLng:
          anyOf:
            - $ref: '#/components/schemas/Input_LatLng'
            - type: 'null'
      type: object
    Input_CodeExecution:
      additionalProperties: true
      type: object
    Input_ComputerUse:
      additionalProperties: true
      properties:
        disabledSafetyPolicies:
          items:
            $ref: '#/components/schemas/Input_ComputerUseSafetyPolicy'
          type:
            - array
            - 'null'
        enablePromptInjectionDetection:
          type:
            - boolean
            - 'null'
        environment:
          $ref: '#/components/schemas/Input_ComputerEnvironment2'
        excludedPredefinedFunctions:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - environment
      type: object
    Input_FileSearch:
      additionalProperties: true
      properties:
        fileSearchStoreNames:
          items:
            type: string
          type: array
        metadataFilter:
          type:
            - string
            - 'null'
        topK:
          format: int64
          type:
            - integer
            - 'null'
      required:
        - fileSearchStoreNames
      type: object
    Input_FunctionDeclaration:
      additionalProperties: true
      properties:
        behavior:
          anyOf:
            - $ref: '#/components/schemas/Input_Behavior'
            - type: 'null'
        description:
          type: string
        name:
          type: string
        parameters:
          anyOf:
            - $ref: '#/components/schemas/Input_Schema'
            - type: 'null'
        parametersJsonSchema: true
        response:
          anyOf:
            - $ref: '#/components/schemas/Input_Schema'
            - type: 'null'
        responseJsonSchema: true
      required:
        - name
        - description
      type: object
    Input_GoogleMaps:
      additionalProperties: true
      properties:
        enableWidget:
          type:
            - boolean
            - 'null'
      type: object
    Input_GoogleSearch:
      additionalProperties: true
      properties:
        searchTypes:
          anyOf:
            - $ref: '#/components/schemas/Input_SearchTypes'
            - type: 'null'
        timeRangeFilter:
          anyOf:
            - $ref: '#/components/schemas/Input_Interval'
            - type: 'null'
      type: object
    Input_GoogleSearchRetrieval:
      additionalProperties: true
      properties:
        dynamicRetrievalConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_DynamicRetrievalConfig'
            - type: 'null'
      type: object
    Input_McpServer:
      additionalProperties: true
      properties:
        name:
          type: string
        streamableHttpTransport:
          anyOf:
            - $ref: '#/components/schemas/Input_StreamableHttpTransport'
            - type: 'null'
      required:
        - name
      type: object
    Input_UrlContext:
      additionalProperties: true
      type: object
    Output_CitationMetadata:
      additionalProperties: true
      properties:
        citationSources:
          items:
            $ref: '#/components/schemas/Output_CitationSource'
          type:
            - array
            - 'null'
      type: object
    Output_Content:
      additionalProperties: true
      properties:
        parts:
          items:
            $ref: '#/components/schemas/Output_Part'
          type:
            - array
            - 'null'
        role:
          type:
            - string
            - 'null'
      type: object
    Output_FinishReason:
      oneOf:
        - enum:
            - FINISH_REASON_UNSPECIFIED
            - STOP
            - MAX_TOKENS
            - SAFETY
            - RECITATION
            - LANGUAGE
            - OTHER
            - BLOCKLIST
            - PROHIBITED_CONTENT
            - SPII
            - MALFORMED_FUNCTION_CALL
            - IMAGE_SAFETY
            - IMAGE_PROHIBITED_CONTENT
            - IMAGE_OTHER
            - NO_IMAGE
            - IMAGE_RECITATION
            - UNEXPECTED_TOOL_CALL
            - TOO_MANY_TOOL_CALLS
            - MISSING_THOUGHT_SIGNATURE
            - MALFORMED_RESPONSE
            - ESCALATION
            - PUP_LIMITED_DISABLED
          type: string
        - const: CONTINUATION
          description: >-
            This hop ended, but generation requires another request with its
            token.
          type: string
    Output_GroundingAttribution:
      additionalProperties: true
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/Output_Content'
            - type: 'null'
        sourceId:
          anyOf:
            - $ref: '#/components/schemas/Output_AttributionSourceId'
            - type: 'null'
      type: object
    Output_GroundingMetadata:
      additionalProperties: true
      properties:
        googleMapsWidgetContextToken:
          type:
            - string
            - 'null'
        groundingChunks:
          items:
            $ref: '#/components/schemas/Output_GroundingChunk'
          type:
            - array
            - 'null'
        groundingSupports:
          items:
            $ref: '#/components/schemas/Output_GroundingSupport'
          type:
            - array
            - 'null'
        imageSearchQueries:
          items:
            type: string
          type:
            - array
            - 'null'
        retrievalMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_RetrievalMetadata'
            - type: 'null'
        searchEntryPoint:
          anyOf:
            - $ref: '#/components/schemas/Output_SearchEntryPoint'
            - type: 'null'
        webSearchQueries:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Output_LogprobsResult:
      additionalProperties: true
      properties:
        chosenCandidates:
          items:
            $ref: '#/components/schemas/Output_LogprobCandidate'
          type:
            - array
            - 'null'
        logProbabilitySum:
          format: double
          type:
            - number
            - 'null'
        topCandidates:
          items:
            $ref: '#/components/schemas/Output_TopCandidates'
          type:
            - array
            - 'null'
      type: object
    Output_SafetyRating:
      additionalProperties: true
      properties:
        blocked:
          type:
            - boolean
            - 'null'
        category:
          $ref: '#/components/schemas/Output_HarmCategory'
        probability:
          $ref: '#/components/schemas/Output_HarmProbability'
      required:
        - category
        - probability
      type: object
    Output_UrlContextMetadata:
      additionalProperties: true
      properties:
        urlMetadata:
          items:
            $ref: '#/components/schemas/Output_UrlMetadata'
          type:
            - array
            - 'null'
      type: object
    Output_ModelStage:
      enum:
        - MODEL_STAGE_UNSPECIFIED
        - UNSTABLE_EXPERIMENTAL
        - EXPERIMENTAL
        - PREVIEW
        - STABLE
        - LEGACY
        - DEPRECATED
        - RETIRED
      type: string
    Output_BlockReason:
      enum:
        - BLOCK_REASON_UNSPECIFIED
        - SAFETY
        - OTHER
        - BLOCKLIST
        - PROHIBITED_CONTENT
        - IMAGE_SAFETY
      type: string
    Output_ModalityTokenCount:
      additionalProperties: true
      properties:
        modality:
          anyOf:
            - $ref: '#/components/schemas/Output_Modality'
            - type: 'null'
        tokenCount:
          format: int64
          type:
            - integer
            - 'null'
      type: object
    Output_ServiceTier2:
      enum:
        - unspecified
        - standard
        - flex
        - priority
      type: string
    Output_StreamErrorType:
      enum:
        - api_error
        - authentication_error
        - billing_error
        - invalid_request_error
        - not_found_error
        - overloaded_error
        - permission_error
        - rate_limit_error
        - timeout_error
        - conflict_error
        - request_too_large
      type: string
    Input_AudioTranscription:
      additionalProperties: true
      properties:
        speakerLabel:
          type:
            - string
            - 'null'
        text:
          type: string
        words:
          items:
            $ref: '#/components/schemas/Input_WordInfo'
          type:
            - array
            - 'null'
      required:
        - text
      type: object
    Input_CodeExecutionResult2:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        outcome:
          $ref: '#/components/schemas/Input_Outcome'
        output:
          type:
            - string
            - 'null'
      required:
        - outcome
      type: object
    Input_ExecutableCode:
      additionalProperties: true
      properties:
        code:
          type: string
        id:
          type:
            - string
            - 'null'
        language:
          $ref: '#/components/schemas/Input_Language'
      required:
        - language
        - code
      type: object
    Input_FileData:
      additionalProperties: true
      properties:
        displayName:
          type:
            - string
            - 'null'
        fileUri:
          type: string
        mimeType:
          type:
            - string
            - 'null'
      required:
        - fileUri
      type: object
    Input_FunctionCall2:
      additionalProperties: true
      properties:
        args:
          additionalProperties: true
          type:
            - object
            - 'null'
        id:
          type:
            - string
            - 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_FunctionResponse:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        name:
          type: string
        parts:
          items:
            $ref: '#/components/schemas/Input_FunctionResponsePart'
          type:
            - array
            - 'null'
        response:
          additionalProperties: true
          type: object
        scheduling:
          anyOf:
            - $ref: '#/components/schemas/Input_Scheduling'
            - type: 'null'
        willContinue:
          type:
            - boolean
            - 'null'
      required:
        - name
        - response
      type: object
    Input_Blob:
      additionalProperties: true
      properties:
        data:
          type: string
        displayName:
          type:
            - string
            - 'null'
        mimeType:
          type: string
      required:
        - mimeType
        - data
      type: object
    Input_MediaProcessing:
      enum:
        - MEDIA_PROCESSING_UNSPECIFIED
        - STATIC
        - AGENTIC
      type: string
    Input_MediaResolution:
      additionalProperties: true
      properties:
        level:
          anyOf:
            - $ref: '#/components/schemas/Input_MediaResolutionLevel'
            - type: 'null'
      type: object
    Input_SpeechMetadata:
      additionalProperties: true
      properties:
        speaker:
          type:
            - string
            - 'null'
        style:
          type:
            - string
            - 'null'
      type: object
    Input_ToolCall:
      additionalProperties: true
      properties:
        args:
          additionalProperties: true
          type:
            - object
            - 'null'
        id:
          type:
            - string
            - 'null'
        toolName:
          type:
            - string
            - 'null'
        toolType:
          $ref: '#/components/schemas/Input_ToolType2'
      required:
        - toolType
      type: object
    Input_ToolResponse:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        response:
          additionalProperties: true
          type:
            - object
            - 'null'
        toolType:
          $ref: '#/components/schemas/Input_ToolType2'
      required:
        - toolType
      type: object
    Input_VideoMetadata:
      additionalProperties: true
      properties:
        endOffset:
          type:
            - string
            - 'null'
        fps:
          format: double
          type:
            - number
            - 'null'
        startOffset:
          type:
            - string
            - 'null'
      type: object
    Input_LanguageAuto:
      additionalProperties: true
      type: object
    Input_LanguageHints:
      additionalProperties: true
      properties:
        languageCodes:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Input_AudioTranscriptionMode:
      enum:
        - MODE_UNSPECIFIED
        - VERBATIM
        - SMART
      type: string
    Input_AudioResponseFormat:
      additionalProperties: true
      properties:
        bitRate:
          format: int64
          type:
            - integer
            - 'null'
        delivery:
          anyOf:
            - $ref: '#/components/schemas/Input_Delivery'
            - type: 'null'
        mimeType:
          anyOf:
            - $ref: '#/components/schemas/Input_AudioMimeType'
            - type: 'null'
        sampleRate:
          format: int64
          type:
            - integer
            - 'null'
      type: object
    Input_ImageResponseFormat:
      additionalProperties: true
      properties:
        aspectRatio:
          anyOf:
            - $ref: '#/components/schemas/Input_AspectRatio'
            - type: 'null'
        delivery:
          anyOf:
            - $ref: '#/components/schemas/Input_Delivery'
            - type: 'null'
        imageSize:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageSize'
            - type: 'null'
        mimeType:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageMimeType'
            - type: 'null'
      type: object
    Input_TextResponseFormat:
      additionalProperties: true
      properties:
        mimeType:
          anyOf:
            - $ref: '#/components/schemas/Input_TextMimeType'
            - type: 'null'
        schema: true
      type: object
    Input_SchemaType:
      enum:
        - TYPE_UNSPECIFIED
        - STRING
        - NUMBER
        - INTEGER
        - BOOLEAN
        - ARRAY
        - OBJECT
        - 'NULL'
      type: string
    Input_MultiSpeakerVoiceConfig:
      additionalProperties: true
      properties:
        speakerVoiceConfigs:
          items:
            $ref: '#/components/schemas/Input_SpeakerVoiceConfig'
          type: array
      required:
        - speakerVoiceConfigs
      type: object
    Input_VoiceConfig:
      additionalProperties: true
      properties:
        prebuiltVoiceConfig:
          anyOf:
            - $ref: '#/components/schemas/Input_PrebuiltVoiceConfig'
            - type: 'null'
        voice:
          description: >-
            Prebuilt speaker name, stored `voice_...` ID, or client-managed
            `voicekey_...`.
          type:
            - string
            - 'null'
      type: object
    Input_ThinkingLevel:
      enum:
        - THINKING_LEVEL_UNSPECIFIED
        - MINIMAL
        - LOW
        - MEDIUM
        - HIGH
      type: string
    Input_FunctionCallingMode:
      enum:
        - MODE_UNSPECIFIED
        - AUTO
        - ANY
        - NONE
        - VALIDATED
      type: string
    Input_LatLng:
      additionalProperties: true
      properties:
        latitude:
          format: double
          type: number
        longitude:
          format: double
          type: number
      required:
        - latitude
        - longitude
      type: object
    Input_ComputerUseSafetyPolicy:
      enum:
        - SAFETY_POLICY_UNSPECIFIED
        - FINANCIAL_TRANSACTIONS
        - SENSITIVE_DATA_MODIFICATION
        - COMMUNICATION_TOOL
        - ACCOUNT_CREATION
        - DATA_MODIFICATION
        - USER_CONSENT_MANAGEMENT
        - LEGAL_TERMS_AND_AGREEMENTS
      type: string
    Input_ComputerEnvironment2:
      enum:
        - ENVIRONMENT_UNSPECIFIED
        - ENVIRONMENT_BROWSER
        - ENVIRONMENT_MOBILE
        - ENVIRONMENT_DESKTOP
      type: string
    Input_Behavior:
      enum:
        - UNSPECIFIED
        - BLOCKING
        - NON_BLOCKING
      type: string
    Input_SearchTypes:
      additionalProperties: true
      properties:
        imageSearch:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageSearch'
            - type: 'null'
        webSearch:
          anyOf:
            - $ref: '#/components/schemas/Input_WebSearch'
            - type: 'null'
      type: object
    Input_Interval:
      additionalProperties: true
      properties:
        endTime:
          type:
            - string
            - 'null'
        startTime:
          type:
            - string
            - 'null'
      type: object
    Input_DynamicRetrievalConfig:
      additionalProperties: true
      properties:
        dynamicThreshold:
          format: double
          type:
            - number
            - 'null'
        mode:
          anyOf:
            - $ref: '#/components/schemas/Input_RetrievalMode'
            - type: 'null'
      type: object
    Input_StreamableHttpTransport:
      additionalProperties: true
      properties:
        headers:
          additionalProperties:
            type: string
          type:
            - object
            - 'null'
        sseReadTimeout:
          type:
            - string
            - 'null'
        terminateOnClose:
          type:
            - boolean
            - 'null'
        timeout:
          type:
            - string
            - 'null'
        url:
          type: string
      required:
        - url
      type: object
    Output_CitationSource:
      additionalProperties: true
      properties:
        endIndex:
          format: int64
          type:
            - integer
            - 'null'
        license:
          type:
            - string
            - 'null'
        startIndex:
          format: int64
          type:
            - integer
            - 'null'
        uri:
          type:
            - string
            - 'null'
      type: object
    Output_Part:
      additionalProperties: true
      properties:
        audioTranscription:
          anyOf:
            - $ref: '#/components/schemas/Output_AudioTranscription'
            - type: 'null'
        codeExecutionResult:
          anyOf:
            - $ref: '#/components/schemas/Output_CodeExecutionResult2'
            - type: 'null'
        executableCode:
          anyOf:
            - $ref: '#/components/schemas/Output_ExecutableCode'
            - type: 'null'
        fileData:
          anyOf:
            - $ref: '#/components/schemas/Output_FileData'
            - type: 'null'
        functionCall:
          anyOf:
            - $ref: '#/components/schemas/Output_FunctionCall2'
            - type: 'null'
        functionResponse:
          anyOf:
            - $ref: '#/components/schemas/Output_FunctionResponse'
            - type: 'null'
        inlineData:
          anyOf:
            - $ref: '#/components/schemas/Output_Blob'
            - type: 'null'
        mediaProcessing:
          anyOf:
            - $ref: '#/components/schemas/Output_MediaProcessing'
            - type: 'null'
        mediaResolution:
          anyOf:
            - $ref: '#/components/schemas/Output_MediaResolution'
            - type: 'null'
        partMetadata:
          additionalProperties: true
          type:
            - object
            - 'null'
        speechMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_SpeechMetadata'
            - type: 'null'
        text:
          type:
            - string
            - 'null'
        thought:
          type:
            - boolean
            - 'null'
        thoughtSignature:
          type:
            - string
            - 'null'
        toolCall:
          anyOf:
            - $ref: '#/components/schemas/Output_ToolCall'
            - type: 'null'
        toolResponse:
          anyOf:
            - $ref: '#/components/schemas/Output_ToolResponse'
            - type: 'null'
        videoMetadata:
          anyOf:
            - $ref: '#/components/schemas/Output_VideoMetadata'
            - type: 'null'
      type: object
    Output_AttributionSourceId:
      additionalProperties: true
      properties:
        groundingPassage:
          anyOf:
            - $ref: '#/components/schemas/Output_GroundingPassageId'
            - type: 'null'
        semanticRetrieverChunk:
          anyOf:
            - $ref: '#/components/schemas/Output_SemanticRetrieverChunk'
            - type: 'null'
      type: object
    Output_GroundingChunk:
      additionalProperties: true
      properties:
        image:
          anyOf:
            - $ref: '#/components/schemas/Output_Image'
            - type: 'null'
        maps:
          anyOf:
            - $ref: '#/components/schemas/Output_Maps'
            - type: 'null'
        retrievedContext:
          anyOf:
            - $ref: '#/components/schemas/Output_RetrievedContext'
            - type: 'null'
        web:
          anyOf:
            - $ref: '#/components/schemas/Output_Web'
            - type: 'null'
      type: object
    Output_GroundingSupport:
      additionalProperties: true
      properties:
        confidenceScores:
          items:
            format: double
            type: number
          type:
            - array
            - 'null'
        groundingChunkIndices:
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        renderedParts:
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        segment:
          anyOf:
            - $ref: '#/components/schemas/Output_Segment'
            - type: 'null'
      type: object
    Output_RetrievalMetadata:
      additionalProperties: true
      properties:
        googleSearchDynamicRetrievalScore:
          format: double
          type:
            - number
            - 'null'
      type: object
    Output_SearchEntryPoint:
      additionalProperties: true
      properties:
        renderedContent:
          type:
            - string
            - 'null'
        sdkBlob:
          type:
            - string
            - 'null'
      type: object
    Output_LogprobCandidate:
      additionalProperties: true
      properties:
        logProbability:
          format: double
          type:
            - number
            - 'null'
        token:
          type:
            - string
            - 'null'
        tokenId:
          format: int64
          type:
            - integer
            - 'null'
      type: object
    Output_TopCandidates:
      additionalProperties: true
      properties:
        candidates:
          items:
            $ref: '#/components/schemas/Output_LogprobCandidate'
          type:
            - array
            - 'null'
      type: object
    Output_HarmCategory:
      enum:
        - HARM_CATEGORY_UNSPECIFIED
        - HARM_CATEGORY_HARASSMENT
        - HARM_CATEGORY_HATE_SPEECH
        - HARM_CATEGORY_SEXUALLY_EXPLICIT
        - HARM_CATEGORY_DANGEROUS_CONTENT
        - HARM_CATEGORY_CIVIC_INTEGRITY
        - HARM_CATEGORY_DEROGATORY
        - HARM_CATEGORY_TOXICITY
        - HARM_CATEGORY_VIOLENCE
        - HARM_CATEGORY_SEXUAL
        - HARM_CATEGORY_MEDICAL
        - HARM_CATEGORY_DANGEROUS
        - HARM_CATEGORY_JAILBREAK
      type: string
    Output_HarmProbability:
      enum:
        - HARM_PROBABILITY_UNSPECIFIED
        - NEGLIGIBLE
        - LOW
        - MEDIUM
        - HIGH
      type: string
    Output_UrlMetadata:
      additionalProperties: true
      properties:
        retrievedUrl:
          type:
            - string
            - 'null'
        urlRetrievalStatus:
          anyOf:
            - $ref: '#/components/schemas/Output_UrlRetrievalStatus'
            - type: 'null'
      type: object
    Output_Modality:
      enum:
        - MODALITY_UNSPECIFIED
        - TEXT
        - IMAGE
        - VIDEO
        - AUDIO
        - DOCUMENT
      type: string
    Input_WordInfo:
      additionalProperties: true
      properties:
        endOffset:
          type:
            - string
            - 'null'
        startOffset:
          type:
            - string
            - 'null'
        word:
          type: string
      required:
        - word
      type: object
    Input_Outcome:
      enum:
        - OUTCOME_UNSPECIFIED
        - OUTCOME_OK
        - OUTCOME_FAILED
        - OUTCOME_DEADLINE_EXCEEDED
      type: string
    Input_Language:
      enum:
        - LANGUAGE_UNSPECIFIED
        - PYTHON
      type: string
    Input_FunctionResponsePart:
      additionalProperties: true
      properties:
        inlineData:
          anyOf:
            - $ref: '#/components/schemas/Input_Blob'
            - type: 'null'
      type: object
    Input_Scheduling:
      enum:
        - SCHEDULING_UNSPECIFIED
        - SILENT
        - WHEN_IDLE
        - INTERRUPT
      type: string
    Input_MediaResolutionLevel:
      enum:
        - MEDIA_RESOLUTION_UNSPECIFIED
        - MEDIA_RESOLUTION_LOW
        - MEDIA_RESOLUTION_MEDIUM
        - MEDIA_RESOLUTION_HIGH
        - MEDIA_RESOLUTION_ULTRA_HIGH
      type: string
    Input_ToolType2:
      enum:
        - TOOL_TYPE_UNSPECIFIED
        - GOOGLE_SEARCH_WEB
        - GOOGLE_SEARCH_IMAGE
        - URL_CONTEXT
        - GOOGLE_MAPS
        - FILE_SEARCH
      type: string
    Input_Delivery:
      enum:
        - DELIVERY_UNSPECIFIED
        - INLINE
        - URI
      type: string
    Input_AudioMimeType:
      enum:
        - MIME_TYPE_UNSPECIFIED
        - AUDIO_MP3
        - AUDIO_OGG_OPUS
        - AUDIO_L16
        - AUDIO_WAV
        - AUDIO_ALAW
        - AUDIO_MULAW
      type: string
    Input_AspectRatio:
      enum:
        - ASPECT_RATIO_UNSPECIFIED
        - ASPECT_RATIO_ONE_BY_ONE
        - ASPECT_RATIO_TWO_BY_THREE
        - ASPECT_RATIO_THREE_BY_TWO
        - ASPECT_RATIO_THREE_BY_FOUR
        - ASPECT_RATIO_FOUR_BY_THREE
        - ASPECT_RATIO_FOUR_BY_FIVE
        - ASPECT_RATIO_FIVE_BY_FOUR
        - ASPECT_RATIO_NINE_BY_SIXTEEN
        - ASPECT_RATIO_SIXTEEN_BY_NINE
        - ASPECT_RATIO_TWENTY_ONE_BY_NINE
        - ASPECT_RATIO_ONE_BY_EIGHT
        - ASPECT_RATIO_EIGHT_BY_ONE
        - ASPECT_RATIO_ONE_BY_FOUR
        - ASPECT_RATIO_FOUR_BY_ONE
      type: string
    Input_ImageSize:
      enum:
        - IMAGE_SIZE_UNSPECIFIED
        - IMAGE_SIZE_FIVE_TWELVE
        - IMAGE_SIZE_ONE_K
        - IMAGE_SIZE_TWO_K
        - IMAGE_SIZE_FOUR_K
      type: string
    Input_ImageMimeType:
      enum:
        - MIME_TYPE_UNSPECIFIED
        - IMAGE_JPEG
      type: string
    Input_TextMimeType:
      enum:
        - MIME_TYPE_UNSPECIFIED
        - APPLICATION_JSON
        - TEXT_PLAIN
      type: string
    Input_SpeakerVoiceConfig:
      additionalProperties: true
      properties:
        speaker:
          type: string
        voiceConfig:
          $ref: '#/components/schemas/Input_VoiceConfig'
      required:
        - speaker
        - voiceConfig
      type: object
    Input_PrebuiltVoiceConfig:
      additionalProperties: true
      properties:
        voiceName:
          type:
            - string
            - 'null'
      type: object
    Input_ImageSearch:
      additionalProperties: true
      type: object
    Input_WebSearch:
      additionalProperties: true
      type: object
    Input_RetrievalMode:
      enum:
        - MODE_UNSPECIFIED
        - MODE_DYNAMIC
      type: string
    Output_AudioTranscription:
      additionalProperties: true
      properties:
        speakerLabel:
          type:
            - string
            - 'null'
        text:
          type: string
        words:
          items:
            $ref: '#/components/schemas/Output_WordInfo'
          type:
            - array
            - 'null'
      required:
        - text
      type: object
    Output_CodeExecutionResult2:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        outcome:
          $ref: '#/components/schemas/Output_Outcome'
        output:
          type:
            - string
            - 'null'
      required:
        - outcome
      type: object
    Output_ExecutableCode:
      additionalProperties: true
      properties:
        code:
          type: string
        id:
          type:
            - string
            - 'null'
        language:
          $ref: '#/components/schemas/Output_Language'
      required:
        - language
        - code
      type: object
    Output_FileData:
      additionalProperties: true
      properties:
        displayName:
          type:
            - string
            - 'null'
        fileUri:
          type: string
        mimeType:
          type:
            - string
            - 'null'
      required:
        - fileUri
      type: object
    Output_FunctionCall2:
      additionalProperties: true
      properties:
        args:
          additionalProperties: true
          type:
            - object
            - 'null'
        id:
          type:
            - string
            - 'null'
        name:
          type: string
      required:
        - name
      type: object
    Output_FunctionResponse:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        name:
          type: string
        parts:
          items:
            $ref: '#/components/schemas/Output_FunctionResponsePart'
          type:
            - array
            - 'null'
        response:
          additionalProperties: true
          type: object
        scheduling:
          anyOf:
            - $ref: '#/components/schemas/Output_Scheduling'
            - type: 'null'
        willContinue:
          type:
            - boolean
            - 'null'
      required:
        - name
        - response
      type: object
    Output_Blob:
      additionalProperties: true
      properties:
        data:
          type: string
        displayName:
          type:
            - string
            - 'null'
        mimeType:
          type: string
      required:
        - mimeType
        - data
      type: object
    Output_MediaProcessing:
      enum:
        - MEDIA_PROCESSING_UNSPECIFIED
        - STATIC
        - AGENTIC
      type: string
    Output_MediaResolution:
      additionalProperties: true
      properties:
        level:
          anyOf:
            - $ref: '#/components/schemas/Output_MediaResolutionLevel'
            - type: 'null'
      type: object
    Output_SpeechMetadata:
      additionalProperties: true
      properties:
        speaker:
          type:
            - string
            - 'null'
        style:
          type:
            - string
            - 'null'
      type: object
    Output_ToolCall:
      additionalProperties: true
      properties:
        args:
          additionalProperties: true
          type:
            - object
            - 'null'
        id:
          type:
            - string
            - 'null'
        toolName:
          type:
            - string
            - 'null'
        toolType:
          $ref: '#/components/schemas/Output_ToolType'
      required:
        - toolType
      type: object
    Output_ToolResponse:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        response:
          additionalProperties: true
          type:
            - object
            - 'null'
        toolType:
          $ref: '#/components/schemas/Output_ToolType'
      required:
        - toolType
      type: object
    Output_VideoMetadata:
      additionalProperties: true
      properties:
        endOffset:
          type:
            - string
            - 'null'
        fps:
          format: double
          type:
            - number
            - 'null'
        startOffset:
          type:
            - string
            - 'null'
      type: object
    Output_GroundingPassageId:
      additionalProperties: true
      properties:
        partIndex:
          format: int64
          type:
            - integer
            - 'null'
        passageId:
          type:
            - string
            - 'null'
      type: object
    Output_SemanticRetrieverChunk:
      additionalProperties: true
      properties:
        chunk:
          type:
            - string
            - 'null'
        source:
          type:
            - string
            - 'null'
      type: object
    Output_Image:
      additionalProperties: true
      properties:
        domain:
          type:
            - string
            - 'null'
        imageUri:
          type:
            - string
            - 'null'
        sourceUri:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
      type: object
    Output_Maps:
      additionalProperties: true
      properties:
        placeAnswerSources:
          anyOf:
            - $ref: '#/components/schemas/Output_PlaceAnswerSources'
            - type: 'null'
        placeId:
          type:
            - string
            - 'null'
        text:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        uri:
          type:
            - string
            - 'null'
      type: object
    Output_RetrievedContext:
      additionalProperties: true
      properties:
        customMetadata:
          items:
            $ref: '#/components/schemas/Output_CustomMetadata'
          type:
            - array
            - 'null'
        fileSearchStore:
          type:
            - string
            - 'null'
        mediaId:
          type:
            - string
            - 'null'
        pageNumber:
          format: int64
          type:
            - integer
            - 'null'
        text:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        uri:
          type:
            - string
            - 'null'
      type: object
    Output_Web:
      additionalProperties: true
      properties:
        title:
          type:
            - string
            - 'null'
        uri:
          type:
            - string
            - 'null'
      type: object
    Output_Segment:
      additionalProperties: true
      properties:
        endIndex:
          format: int64
          type:
            - integer
            - 'null'
        partIndex:
          format: int64
          type:
            - integer
            - 'null'
        startIndex:
          format: int64
          type:
            - integer
            - 'null'
        text:
          type:
            - string
            - 'null'
      type: object
    Output_UrlRetrievalStatus:
      enum:
        - URL_RETRIEVAL_STATUS_UNSPECIFIED
        - URL_RETRIEVAL_STATUS_SUCCESS
        - URL_RETRIEVAL_STATUS_ERROR
        - URL_RETRIEVAL_STATUS_PAYWALL
        - URL_RETRIEVAL_STATUS_UNSAFE
      type: string
    Output_WordInfo:
      additionalProperties: true
      properties:
        endOffset:
          type:
            - string
            - 'null'
        startOffset:
          type:
            - string
            - 'null'
        word:
          type: string
      required:
        - word
      type: object
    Output_Outcome:
      enum:
        - OUTCOME_UNSPECIFIED
        - OUTCOME_OK
        - OUTCOME_FAILED
        - OUTCOME_DEADLINE_EXCEEDED
      type: string
    Output_Language:
      enum:
        - LANGUAGE_UNSPECIFIED
        - PYTHON
      type: string
    Output_FunctionResponsePart:
      additionalProperties: true
      properties:
        inlineData:
          anyOf:
            - $ref: '#/components/schemas/Output_Blob'
            - type: 'null'
      type: object
    Output_Scheduling:
      enum:
        - SCHEDULING_UNSPECIFIED
        - SILENT
        - WHEN_IDLE
        - INTERRUPT
      type: string
    Output_MediaResolutionLevel:
      enum:
        - MEDIA_RESOLUTION_UNSPECIFIED
        - MEDIA_RESOLUTION_LOW
        - MEDIA_RESOLUTION_MEDIUM
        - MEDIA_RESOLUTION_HIGH
        - MEDIA_RESOLUTION_ULTRA_HIGH
      type: string
    Output_ToolType:
      enum:
        - TOOL_TYPE_UNSPECIFIED
        - GOOGLE_SEARCH_WEB
        - GOOGLE_SEARCH_IMAGE
        - URL_CONTEXT
        - GOOGLE_MAPS
        - FILE_SEARCH
      type: string
    Output_PlaceAnswerSources:
      additionalProperties: true
      properties:
        reviewSnippets:
          items:
            $ref: '#/components/schemas/Output_ReviewSnippet'
          type:
            - array
            - 'null'
      type: object
    Output_CustomMetadata:
      additionalProperties: true
      properties:
        key:
          type:
            - string
            - 'null'
        numericValue:
          format: double
          type:
            - number
            - 'null'
        stringListValue:
          anyOf:
            - $ref: '#/components/schemas/Output_StringList'
            - type: 'null'
        stringValue:
          type:
            - string
            - 'null'
      type: object
    Output_ReviewSnippet:
      additionalProperties: true
      properties:
        googleMapsUri:
          type:
            - string
            - 'null'
        reviewId:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
      type: object
    Output_StringList:
      additionalProperties: true
      properties:
        values:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1beta/models/{model}:streamGenerateContent](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1betamodels-:streamgeneratecontent.md)
- [POST /v1beta/models/{model}:countTokens](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1betamodels-:counttokens.md)
- [POST /v1beta/models/{model}:embedContent](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1betamodels-:embedcontent.md)
- [POST /v1beta/models/{model}:batchEmbedContents](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1betamodels-:batchembedcontents.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.