Firebase ML API (firebaseml:v2beta)

2026-09-01

3 new methods | New API

Additions

    Methods
  • firebaseml.projects.locations.publishers.models.generateContent

      Path : v2beta/{+model}:generateContent

      Parameter Order : model

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v2beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:generateContent

      Description : Generate content with multimodal inputs.

      Parameters :

        model

          Pattern : ^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$

          Required : Yes

          Description : Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`

          Type : string

          Location : path

      HTTP Method : POST

  • firebaseml.projects.locations.publishers.models.countTokens

      Parameter Order : endpoint

      Description : Perform a token counting.

      Flat Path : v2beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:countTokens

      Parameters :

        endpoint

          Description : Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`

          Required : Yes

          Location : path

          Pattern : ^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$

          Type : string

      Scopes : https://www.googleapis.com/auth/cloud-platform

      HTTP Method : POST

      Path : v2beta/{+endpoint}:countTokens

  • firebaseml.projects.locations.publishers.models.streamGenerateContent

      Path : v2beta/{+model}:streamGenerateContent

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Parameter Order : model

      Description : Generate content with multimodal inputs with streaming support.

      Flat Path : v2beta/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent

      Parameters :

        model

          Location : path

          Pattern : ^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$

          Type : string

          Description : Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`

          Required : Yes

      HTTP Method : POST