---
title: "Predict"
method: POST
path: "/v1/models/{model_id}/predict"
tags: ["inference"]
---

# Predict

`POST /v1/models/{model_id}/predict`

Batch predictions from a trained model.

## Path parameters

- `model_id` string, uuid, required

## Request body

- PredictRequest
  - `dataframe` WorkspaceQuery, required — A SQL query resolved against the server-owned implicit workspace.
    - `version` 1
    - `sql` string, required

## Response `200`

Successful Response

- JobSubmissionResponse
  - `job_id` union, required
    - string, uuid
    - string
  - `status` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled', required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/outerproduct/apis/outerproduct-api.md) · [All operations](https://skmtc.net/outerproduct/apis/outerproduct-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outerproduct/outerproduct-api/revisions/6c6e81fb3282/schema)
