Skip to main content
POST
/
models
/
{model_id}
/
infer-batch
Async Infer (Dataset)
curl --request POST \
  --url https://api.woodwide.ai/models/{model_id}/infer-batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset_id": "a1b2c3d4-0000-0000-0000-000000000001",
  "output_type": "json"
}
'
{
  "job_id": "c3d4e5f6-0000-0000-0000-000000000004",
  "status": "queued",
  "model": {
    "id": "b2c3d4e5-0000-0000-0000-000000000001",
    "version_id": "b2c3d4e5-0000-0000-0000-000000000002",
    "version_number": 1
  }
}
Reference input data by dataset_id (latest ready version) or dataset_version_id. Returns a job_id immediately. Poll GET /jobs/{job_id} until status is succeeded, then fetch results via GET /jobs/{job_id}/results. See Output Formats for output columns by model type.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string<uuid>
required

Body

application/json

Request body for asynchronous dataset inference.

Reference input data by dataset_id (resolves to the latest ready version) or dataset_version_id for reproducibility. Optionally pin a model_version_id.

model_version_id
string<uuid>

Pin a specific model version. If omitted, the latest ready version is used.

dataset_version_id
string<uuid>

Pin a specific dataset version for inference input.

dataset_id
string<uuid>

Dataset to run inference on (uses latest ready version). Provide this OR dataset_version_id.

output_type
enum<string>
default:parquet

Output format: json, csv, or parquet.

Available options:
json,
csv,
parquet
anomaly_format
enum<string>
default:ids_only

Controls anomaly detection output shape. 'ids_only' returns a list of anomalous row indices. 'per_row' returns id, is_anomaly, and anomaly_score for every input row. Ignored for non-anomaly model types.

Available options:
ids_only,
per_row

Response

Successful Response Output format depends on the output_type parameter (json, csv, or parquet). See Output Formats for output columns by model type.

Async inference submission response.

job_id
string<uuid>
required
status
string
required
model
ModelVersionRef · object
required

Model version reference.