---
title: "Prediction Create"
method: POST
path: "/v2/{entity}/{project}/predictions"
tags: ["Predictions"]
---

# Prediction Create

`POST /v2/{entity}/{project}/predictions`

Create a prediction.

## Path parameters

- `entity` string, required
- `project` string, required

## Request body

- PredictionCreateBody — Request body for creating a Prediction via REST API. This model excludes project_id since it comes from the URL path in RESTful endpoints.
  - `model` string, required — The model reference (weave:// URI)
  - `inputs` object, required — The inputs to the prediction
  - `output` unknown, required
  - `evaluation_run_id` string, nullable — Optional evaluation run ID to link this prediction as a child call
  - `genai_span_ref` GenAISpanRef[], nullable — Optional GenAI span reference(s) produced by this prediction.
    - `trace_id` string, required
    - `span_id` string, required

## Response `200`

Successful Response

- PredictionCreateRes
  - `prediction_id` string, required — The prediction ID

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/wandb/apis/serverless-training.md) · [All operations](https://skmtc.net/wandb/apis/serverless-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/serverless-training/versions/8d8d96fc0fd3/schema)
