GenerativeBackend

classGenerativeBackend


Represents a reference to a backend for generative AI.

Summary

Public companion functions

GenerativeBackend

References the Google Developer API backend.

GenerativeBackend
vertexAI(location: String)

References the VertexAI Gemini API backend.

Public companion functions

googleAI

fun googleAI(): GenerativeBackend

References the Google Developer API backend.

vertexAI

fun vertexAI(location: String = "us-central1"): GenerativeBackend

References the VertexAI Gemini API backend.

Parameters
location: String = "us-central1"

passes a valid cloud server location, defaults to "us-central1"

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-09 UTC.