RequestOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
Params passed to getGenerativeModel().
Signature:
export interface RequestOptions
Properties
Property |
Type |
Description |
baseUrl |
string |
Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the Firebase AI Logic API (used regardless of your chosen Gemini API provider). |
timeout |
number |
Request timeout in milliseconds. Defaults to 180 seconds (180000ms). |
RequestOptions.baseUrl
Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the Firebase AI Logic API (used regardless of your chosen Gemini API provider).
Signature:
baseUrl?: string;
RequestOptions.timeout
Request timeout in milliseconds. Defaults to 180 seconds (180000ms).
Signature:
timeout?: number;
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-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a).\n\n**Signature:** \n\n export interface RequestOptions \n\nProperties\n\n| Property | Type | Description |\n|---------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [baseUrl](./ai.requestoptions.md#requestoptionsbaseurl) | string | Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the [Firebase AI Logic API](https://console.cloud.google.com/apis/library/firebasevertexai.googleapis.com?project=_) (used regardless of your chosen Gemini API provider). |\n| [timeout](./ai.requestoptions.md#requestoptionstimeout) | number | Request timeout in milliseconds. Defaults to 180 seconds (180000ms). |\n\nRequestOptions.baseUrl\n\nBase url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is the [Firebase AI Logic API](https://console.cloud.google.com/apis/library/firebasevertexai.googleapis.com?project=_) (used regardless of your chosen Gemini API provider).\n\n**Signature:** \n\n baseUrl?: string;\n\nRequestOptions.timeout\n\nRequest timeout in milliseconds. Defaults to 180 seconds (180000ms).\n\n**Signature:** \n\n timeout?: number;"]]