Modaic sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.modaic.dev/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

Search Modaic documentation

Find a Modaic guide or API reference

Reference›API›Batch inference

Start batch inference job

Run a model repository over up to 1,000 examples. Supply stored example IDs, inline examples, or scope: "all"—exactly one selection mode is required.

The endpoint returns 202 Accepted. Poll the URL in the Location response header for progress.

POST/v1/models/{workspace}/{model}/batch-decisions

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Headers

Idempotency-Keystringrequired

A key between 8 and 255 characters. Reuse it only when retrying this exact request.

Path Parameters

workspacestringrequired

User or organization workspace slug.

modelstringrequired

Model repository slug. Repository write access is required.

Body

branchstringdefault: main

Branch whose model configuration will be used.

sourceCommitShastring

Commit to run. When omitted, the current branch head is resolved and stored on the batch inference job.

exampleIdsUUID[]

Between 1 and 1,000 unique stored example IDs.

examplesInlineExample[]

Between 1 and 1,000 inline examples. Each item contains an optional UUID id and required JSON state. A UUID is generated when id is omitted. Inline examples are added to the model repository before decisions run.

scopeall

Set to "all" to run every non-deleted example in the model repository.

Response

idUUIDrequired

Batch inference job ID.

repositoryIdUUIDrequired
statusqueued | running | completed | failed | cancelledrequired
phasequeued | deciding | done | failed | cancelledrequired
branchstringrequired
sourceCommitShastringrequired

Exact model revision used by the batch.

progressobjectrequired

Integer total, completed, and failed counts.

resultobject | nullrequired

Final counts when the job reaches a terminal state.

errorobject | nullrequired

Job-level error with code and message.

createdAtISO 8601 datetimerequired
updatedAtISO 8601 datetimerequired
startedAtISO 8601 datetime | nullrequired
finishedAtISO 8601 datetime | nullrequired
Was this page helpful?