AIModel class
Stay organized with collections
Save and categorize content based on your preferences.
Base class for Firebase AI model APIs.
Instances of this class are associated with a specific Firebase AI Backend and provide methods for interacting with the configured generative model.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the AIModel
class.
Signature:
export declare abstract class AIModel
Properties
Property |
Modifiers |
Type |
Description |
model |
|
string |
The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002 ). |
AIModel.model
The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002
).
Signature:
readonly model: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Base class for Firebase AI model APIs.\n\nInstances of this class are associated with a specific Firebase AI [Backend](./ai.backend.md#backend_class) and provide methods for interacting with the configured generative model.\n\nThe constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `AIModel` class.\n\n**Signature:** \n\n export declare abstract class AIModel \n\nProperties\n\nAIModel.model\n\nThe fully qualified model resource name to use for generating images (for example, `publishers/google/models/imagen-3.0-generate-002`).\n\n**Signature:** \n\n readonly model: string;"]]