The Vertex AI SDK provides programmatic access to Vertex AI services from Python, Java, and Node.js applications. In a practical deployment, it lets a Flask server send prediction requests to a Vertex AI endpoint instead of loading the model locally. section 10.5 section 10.5.1
The SDK supports several stages of a machine-learning workflow:
- Install the Python package to access Vertex AI APIs. section 10.5.1
- Invoke deployed models through Vertex AI endpoints. section 10.5
- Identify managed datasets and prepare training, validation, and test subsets in Cloud Storage. section 11.2.7
- Adapt training scripts for Vertex AI containers by reading Cloud Storage URIs, AIP environment variables, and the model output location. section 11.3.5
Install the Python SDK
A Python application can obtain the required API access by installing the package with `pip install google-cloud-aiplatform`, then using the SDK in the Flask deployment or pipeline workflow. section 10.5.1
pip install google-cloud-aiplatform
Use the installation listing as the starting point for configuring Python access to Vertex AI services. section 10.5.1
