Stay organized with collectionsSave and categorize content based on your preferences.
This page shows you how to create and manage AML AI models.
Create a model to start AML AI's ML training pipeline. You can use a
model to run predictions or backtest across various datasets.
You only need to create the model and export the associated metadata at this
point.The other model methods are provided for completeness.
Before you begin
To get the permissions that
you need to create and manage engine models,
ask your administrator to grant you the
Financial Services Admin (financialservices.admin)
IAM role on your project.
For more information about granting roles, seeManage access to projects, folders, and organizations.
Some API methods return along-running operation(LRO).
These methods are asynchronous and return an Operation object; for details, seeREST Reference. The
operation might not be completed when the method returns a response. For these methods, send the
request and then check for the result. In general, all POST, PUT, UPDATE, and DELETE operations are
long-running.
To perform this task, you must have been granted the following permissions:
Permissions
financialservices.v1models.create
Before using any of the request data,
make the following replacements:
PROJECT_ID: your Google Cloud project ID listed in
theIAM Settings
LOCATION: the location of the instance;
use one of thesupported regions
Show locations
us-central1
us-east1
asia-south1
europe-west1
europe-west2
europe-west4
northamerica-northeast1
southamerica-east1
australia-southeast1
INSTANCE_ID: the user-defined identifier for the instance
MODEL_ID: a user-defined identifier for the model
ENGINE_CONFIG_ID: a user-defined identifier for the engine config
DATASET_ID: the user-defined identifier for the
primary dataset used for training this model
TRAINING_END_DATE: The latest time from which
data is used to generate features for training. This date should be the same or earlier than the
end time of the primary dataset. Use RFC3339 UTC "Zulu" format (for example,2014-10-02T15:01:23Z).
To send your request, choose one of these options:
curl
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
Use theprojects.locations.operations.getmethod to check if the model has been created. If the response contains"done": false, repeat the command until the response contains"done": true.
These operations can take a few minutes to several hours to complete.
Permissions required for this task
To perform this task, you must have been granted the following permissions:
Permissions
financialservices.operations.get
Before using any of the request data,
make the following replacements:
PROJECT_ID: your Google Cloud project ID listed
in theIAM Settings
LOCATION: the location of the instance;
use one of thesupported regions
Show locations
us-central1
us-east1
asia-south1
europe-west1
europe-west2
europe-west4
northamerica-northeast1
southamerica-east1
australia-southeast1
OPERATION_ID: the identifier for the operation
To send your request, choose one of these options:
To send your request, choose one of these options:
curl
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
Only the label field in a model can be updated. The following example updates these
key-value pairuser labelsassociated with the model.
Permissions required for this task
To perform this task, you must have been granted the following permissions:
Permissions
financialservices.v1models.update
Before using any of the request data,
make the following replacements:
PROJECT_ID: your Google Cloud project ID listed
in theIAM Settings
LOCATION: the location of the instance;
use one of thesupported regions
Show locations
us-central1
us-east1
asia-south1
europe-west1
europe-west2
europe-west4
northamerica-northeast1
southamerica-east1
australia-southeast1
INSTANCE_ID: the user-defined identifier for the instance
MODEL_ID: a user-defined identifier for the model
KEY: The key in a key-value pair used to organize
models. Seelabelsfor more information.
VALUE: The value in a key-value pair used to organize
models. Seelabelsfor more information.
Request JSON body:
{
"labels": {
"KEY": "VALUE"
}
}
To send your request, choose one of these options:
curl
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
Save the request body in a file namedrequest.json.
Run the following command in the terminal to create or overwrite
this file in the current directory:
[[["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-04 UTC."],[[["\u003cp\u003eThis guide outlines how to create and manage AML AI models, which are used to initiate the ML training pipeline for running predictions or backtesting.\u003c/p\u003e\n"],["\u003cp\u003eTo begin, you must create a model and export its associated metadata, and you will also need the Financial Services Admin IAM role to get the correct permissions.\u003c/p\u003e\n"],["\u003cp\u003eCreating a model requires using the \u003ccode\u003eprojects.locations.instances.models.create\u003c/code\u003e method, specifying parameters like \u003ccode\u003ePROJECT_ID\u003c/code\u003e, \u003ccode\u003eLOCATION\u003c/code\u003e, and identifiers for the instance, model, engine config, and dataset.\u003c/p\u003e\n"],["\u003cp\u003eThe process includes sending a request, checking for the result of long-running operations (LROs), and exporting metadata to a BigQuery dataset using the \u003ccode\u003eprojects.locations.instances.models.exportMetadata\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eOther operations include retrieving, updating, listing, and deleting models, each requiring specific permissions and using their respective methods, such as \u003ccode\u003eprojects.locations.instances.models.get\u003c/code\u003e for retrieval and \u003ccode\u003eprojects.locations.instances.models.delete\u003c/code\u003e for deletion.\u003c/p\u003e\n"]]],[],null,[]]