The Google Cloud Prediction API has been deprecated and will be shut down on April 30, 2018.


Hostedmodels contains publicly available trained models. These models can be free, but most have a usage fee associated with them, as described in their documentation. See a list of hosted models in the hosted model gallery.

Using hosted models is convenient when you don't have the time, resources, or expertise to build a model for a specific topic. If you have a model that you'd like to make public, follow the submission links in the hosted model gallery.

Sending a prediction request against a hosted model is nearly the same as sending a prediction against any other model; the only difference is the request URL.

For a list of methods for this resource, see the end of this page.

Resource representations

There is no persistent resource data associated with this API.  Data is returned in response to predict.


Submit input and request an output against a hosted model.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Prediction API Documentation