メインコンテンツへスキップ
POST
/
v2
/
{entity}
/
{project}
/
predictions
予測の作成
curl --request POST \
  --url https://api.example.com/v2/{entity}/{project}/predictions \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "inputs": {},
  "output": "<unknown>",
  "evaluation_run_id": "<string>"
}
'
{
  "prediction_id": "<string>"
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

パスパラメータ

entity
string
必須
project
string
必須

ボディ

application/json

REST API 経由で Prediction を作成する際のリクエストボディ。

RESTful エンドポイントでは project_id は URL パスから取得されるため、このモデルには含まれません。

model
string
必須

モデル参照(weave:// URI)

inputs
Inputs · object
必須

予測の入力

output
any
必須

予測の出力

evaluation_run_id
string | null

この予測を子呼び出しとして関連付けるための、任意の evaluation run ID

レスポンス

成功時のレスポンス

prediction_id
string
必須

予測 ID