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›Examples

Ingest examples

Add up to 1,000 examples to a model. You may provide ground truth during ingest or annotate the example later.

POST/v1/models/{workspace}/{model}/examples

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Path Parameters

workspacestringrequired

User or organization workspace slug.

modelstringrequired

Model repository slug. The caller needs the route-specific repository access.

Body

examplesExampleInput[]required

Between 1 and 1,000 examples.

ExampleInput fields
examples[].idUUID

Caller-assigned ID. A UUID is generated when omitted.

examples[].stateany JSON valuerequired

The input state that a decision evaluates.

examples[].annotationobject

Optional annotation with required groundTruth, an object keyed by question ID.

When an example is first annotated, Modaic assigns it a stable train or test split. Later annotation updates preserve that split.

Request example

{
  "examples": [
    {
      "id": "31fcc86c-7f49-4daa-a8b1-577db0c8fe76",
      "state": {"ticket": "I was billed twice."},
      "annotation": {
        "groundTruth": {"needs_refund": true, "priority": "high"}
      }
    }
  ]
}

Response

examplesExample[]required

The ingested examples. Each resource includes id, state, source, imageUrls, annotation, latestDecision, decisionCount, createdAt, and updatedAt. source is ingest for this endpoint.

Was this page helpful?