---
title: "POST /v1/extract/{model}"
method: POST
path: "/v1/extract/{model}"
tags: ["inference"]
---

# POST /v1/extract/{model}

`POST /v1/extract/{model}`

Mixed-success batches return 200 with only successful items; the response carries no per-item error envelope. For per-item error visibility, send single-item batches.

## Path parameters

- `model` string, required

## Headers

- `X-SIE-MACHINE-PROFILE` string, nullable
- `X-SIE-Pool` string, nullable
- `X-SIE-SDK-Version` string, nullable

## Request body

- ExtractRequest
  - `items` ItemInput[], required
    - `document` DocumentInput
      - `data` integer[], required
      - `format` string, nullable
    - `id` string, nullable
    - `images` ImageInput[], nullable
      - `data` integer[], required
      - `format` string, nullable
    - `metadata` unknown
    - `text` string, nullable
  - `params` ExtractParams
    - `instruction` string, nullable
    - `labels` string[], nullable
    - `options` unknown
    - `output_schema` unknown

## Response `200`

Extract response

- ExtractResponse
  - `items` ExtractResult[], required
    - `classifications` unknown[]
      - unknown
    - `data` unknown
    - `entities` Entity[]
      - `bbox` number[], nullable
      - `end` integer, nullable
      - `label` string, required
      - `score` number, double, required
      - `start` integer, nullable
      - `text` string, required
    - `id` string, required
    - `relations` Relation[]
      - `head` string, required
      - `relation` string, required
      - `score` number, double, required
      - `tail` string, required
  - `model` string, required

## Other responses

- `202` — Worker provisioning in progress
- `400` — Invalid request
- `401` — Missing or invalid bearer token
- `404` — Model not found
- `409` — Bundle override conflicts with model routing
- `413` — Request body too large
- `500` — All batch items failed or gateway internal error; gateway auth enabled but no tokens configured
- `502` — Terminal model load failure (MODEL_LOAD_FAILED)
- `503` — Queue unavailable, GPU not configured, model loading, or capacity exhausted
- `504` — Result channel closed

## Changes

- **2026-05-08** `a499d5bea359` — 1 info
  - added the success response with the status `202`

[Change history](https://skmtc.dev/superlinked/apis/sie-gateway/changes/v1/extract/:model/post.md)

---

[API](https://skmtc.dev/superlinked/apis/sie-gateway.md) · [All operations](https://skmtc.dev/superlinked/apis/sie-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/superlinked/sie-gateway/revisions/a499d5bea359/schema)
