FirebaseAI Framework Reference

Backend

public struct Backend

Represents available backend APIs for the Firebase AI SDK.

  • Initializes a Backend configured for the Gemini API in Vertex AI.

    Declaration

    Swift

    public static func vertexAI(location: String = "us-central1") -> Backend

    Parameters

    location

    The region identifier, defaulting to us-central1; see Vertex AI locations for a list of supported locations.

  • Initializes a Backend configured for the Google Developer API.

    Declaration

    Swift

    public static func googleAI() -> Backend