RequestOptions interface

Params passed togetGenerativeModel().

Signature:

exportinterfaceRequestOptions

Properties

PropertyTypeDescription
baseUrlstringBase url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is theFirebase AI Logic API (used regardless of your chosen Gemini API provider).
timeoutnumberRequest timeout in milliseconds. Defaults to 180 seconds (180000ms).

RequestOptions.baseUrl

Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com, which is theFirebase 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 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-08-28 UTC.