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.
Optional. The Google Cloud project location. If not provided, SDK will firtly try to resolve it from runtime environment. If no location resolved from runtime environment, SDK will use default value us-central1.
project
project?:string;
Optional. The Google Cloud project ID. It is not the numeric project name. If not provided, SDK will try to resolve it from runtime environment. If still not cannot resovle project ID, SDK will throw exception.
[[["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-08-28 UTC."],[],[],null,["# Interface VertexInit (1.9.0)\n\nParams used to initialize the Vertex SDK.\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### googleAuthOptions\n\n googleAuthOptions?: GoogleAuthOptions;\n\nOptional. The Authentication options provided by google-auth-library. Complete list of authentication options is documented in the GoogleAuthOptions interface: \u003chttps://github.com/googleapis/google-auth-library-nodejs/blob/main/src/auth/googleauth.ts\u003e.\n\n### location\n\n location?: string;\n\nOptional. The Google Cloud project location. If not provided, SDK will firtly try to resolve it from runtime environment. If no location resolved from runtime environment, SDK will use default value `us-central1`.\n\n### project\n\n project?: string;\n\nOptional. The Google Cloud project ID. It is not the numeric project name. If not provided, SDK will try to resolve it from runtime environment. If still not cannot resovle project ID, SDK will throw exception."]]