---
title: "Predict"
method: POST
path: "/api/predict"
tags: ["inference"]
---

# Predict

`POST /api/predict`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/api/predict`
- Auth: HTTP bearer

## Request body `multipart/form-data`

- BodyPredictApiPredictPost
  - `file` string, binary, required

## Response `200`

Successful Response

- PredictionResponse
  - `predictions` PredictionItem[], required
    - `index` integer, required
    - `label` string, required
    - `probability` number, required
  - `probabilities` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
