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›Instruction optimization

Get instruction optimization job

Get the current state of an instruction optimization job. Poll until status is completed, failed, or cancelled.

GET/v1/alignments/{alignmentId}

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Path Parameters

alignmentIdUUIDrequired

Instruction optimization job ID.

Response

idUUIDrequired
repositoryIdUUIDrequired
statusqueued | running | completed | failed | cancelledrequired
phasequeued | optimizing | done | failed | cancelledrequired
branchstringrequired
sourceCommitShastringrequired
resultCommitShastring | nullrequired
resultAlignmentResult | nullrequired

A completed result contains status: "completed", improved, bestCandidate, initialScore, bestScore, usage, optional metrics, and nullable artifactPath.

progressAlignmentProgress | nullrequired

stage is one of starting, optimizing, scoring, finishing, committing, or done. metricCalls / maxMetricCalls is the useful progress fraction when both values are present; the run may finish before reaching the maximum.

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