메인 콘텐츠로 건너뛰기
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을 생성할 때 사용하는 요청 본문입니다.

이 모델에는 project_id 필드가 포함되지 않습니다. RESTful 엔드포인트에서 URL 경로를 통해 project_id를 가져오기 때문입니다.

model
string
필수

모델 참조(weave:// URI)

inputs
Inputs · object
필수

예측 입력값

output
any
필수

예측 출력값

evaluation_run_id
string | null

이 예측을 하위 호출로 연결하는 데 사용하는 선택적 평가 실행 ID

응답

성공적인 응답

prediction_id
string
필수

예측 ID