Back to Firebase Js Sdk

AIModel class

docs-devsite/ai.aimodel.md

12.12.11.3 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

AIModel class

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.

<b>Signature:</b>

typescript
export declare abstract class AIModel 

Properties

PropertyModifiersTypeDescription
modelstringThe fully qualified model resource name to use for generating images (for example, <code>publishers/google/models/imagen-3.0-generate-002</code>).

AIModel.model

The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002<!-- -->).

<b>Signature:</b>

typescript
readonly model: string;