GenerativeBackend

public final classGenerativeBackend


Represents a reference to a backend for generative AI.

Summary

Nested types

public static classGenerativeBackend.Companion

Public methods

static final @NonNullGenerativeBackend

References the Google Developer API backend.

static final @NonNullGenerativeBackend

References the VertexAI Gemini API backend.

Public methods

googleAI

public static final @NonNullGenerativeBackend googleAI()

References the Google Developer API backend.

vertexAI

public static final @NonNullGenerativeBackend vertexAI(@NonNullString location)

References the VertexAI Gemini API backend.

Parameters
@NonNullString location

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.