Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Optional. The base Vertex AI endpoint to use for the request. If not provided, the default regionalized endpoint (i.e. us-central1-aiplatform.googleapis.com) will be used.
generationConfig
generationConfig?:GenerationConfig;
Optional. The configuration to use for generation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Interface GetGenerativeModelParams (1.9.0)\n\nParams used to call the getGenerativeModel method. \n\nInheritance\n-----------\n\n[BaseModelParams](/vertex-ai/generative-ai/docs/reference/nodejs/latest/vertexai/basemodelparams) \\\u003e [ModelParams](/vertex-ai/generative-ai/docs/reference/nodejs/latest/vertexai/modelparams) \\\u003e GetGenerativeModelParams\n\nPackage\n-------\n\n[@google-cloud/vertexai](../overview.html)\n\nProperties\n----------\n\n### apiEndpoint\n\n apiEndpoint?: string;\n\nOptional. The base Vertex AI endpoint to use for the request. If not provided, the default regionalized endpoint (i.e. us-central1-aiplatform.googleapis.com) will be used.\n\n### generationConfig\n\n generationConfig?: GenerationConfig;\n\nOptional. The configuration to use for generation.\n\n### googleAuth\n\n googleAuth: GoogleAuth;\n\nGoogleAuth class instance that handles authentication. Details about GoogleAuth is referred to \u003chttps://github.com/googleapis/google-auth-library-nodejs/blob/main/src/auth/googleauth.ts\u003e\n\n### location\n\n location: string;\n\nThe Google Cloud project location to use for the request.\n\n### model\n\n model: string;\n\nThe name of the model to get.\n\n### project\n\n project: string;\n\nThe Google Cloud project to use for the request.\n\n### requestOptions\n\n requestOptions?: RequestOptions;\n\nOptional. The request options to use for generation.\n\n### safetySettings\n\n safetySettings?: SafetySetting[];\n\nOptional. The safety settings to use for generation.\n\n### systemInstruction\n\n systemInstruction?: string | Content;\n\nOptional. The user provided system instructions for the model. Note: only text should be used in parts of [Content](/vertex-ai/generative-ai/docs/reference/nodejs/latest/vertexai/content)\n\n### toolConfig\n\n toolConfig?: ToolConfig;\n\nOptional. This config is shared for all tools provided in the request.\n\n### tools\n\n tools?: Tool[];\n\nOptional. The tools to use for generation."]]