Method: projects.models.versions.create

Creates a new version of a model from a trained TensorFlow model.

If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



Required. The name of the model.

Authorization requires the following Google IAM permission on the specified resource parent:

  • ml.versions.create

Request body

The request body contains an instance of Version.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Auth Guide.


Cloud Machine Learning Engine (Cloud ML Engine)