Skip to main content

What you’ll do

Process a folder of product shots through one model in a single call. One callback fires when every item is done.

Prerequisites

  • A Runflow API key. Create one.
  • The model you want to run. Pick one from /models.
  • A list of input URLs or asset IDs.

Steps

1

Create the batch

POST /v1/models/{model_id}/batches with an array of items, where {model_id} is the slash-delimited provider/model path shown on the model page. Each item is a separate run.
Response:
2

Poll or wait

Either poll GET /v1/batches/{id} or wait for the callback. Batch records expose status_code; terminal callback payloads expose the same value as status. Batches can also finish as partial_succeeded.
3

Read items

GET /v1/batches/{id}/items returns one entry per input with the resolved run_id, status_code, and outputs.

Verify it worked

items_failed: 0? You’re done.

Troubleshooting

Runs

Single-input lifecycle.

Callbacks

Async result delivery.