经过训练的 ML 模型的 API 地址看起来如何?

How does the API address for trained ML model look?

在 projects.predict 文档中它说 api-url 是: POST https://ml.googleapis.com/v1/{name=projects/**}:预测

但我不明白这在现实中是什么样子?有例子吗?

您使用的 URI 是:

https://ml.googleapis.com/projects/my_project/models/my_model:predict

其中 my_project 当然是您的项目名称,my_model 是您创建模型时选择的名称。

您可能想要检查其中一个客户端库——尤其是用于身份验证的——这是示例所使用的。 This page from the official documentation contains a Python sample; this PR shows C#; and this PR 显示 JavaScript。更多精彩。