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

Create model

Create a private model in a personal or organization workspace. The caller must be allowed to create repositories for workspace.

Include questions to initialize the model's decision criteria at creation. The model is then ready for decisions without a separate update request.

POST/v1/models

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Body

workspacestringrequired

The workspace slug: your username or organization slug.

slugstringrequired

The model slug. It must start with an alphanumeric character and may contain letters, digits, ., _, and -, up to 100 characters.

descriptionstring

A description up to 1,000 characters.

defaultBranchstringdefault: main

The initial default branch.

modelstringrequired

Root model used for decisions. There is no implicit default. The API creates model.json from this field and questions.

questionsRecord<string, Question>

Initial decision criteria. Question shapes match Run Inference. Omit questions to create a general, non-task-specific model. General models require questions in every System One request.

initialFilesFileInput[]

Optional additional repository files. model.json and modaic.json are reserved and cannot be supplied here.

Response

idUUIDrequired

Stable internal repository ID. Public model-scoped routes use workspace and slug, not this UUID.

workspacestringrequired

The workspace slug, such as acme.

slugstringrequired
descriptionstring | nullrequired
defaultBranchstringrequired
visibilityprivaterequired

Model repositories are private.

createdAtISO 8601 datetimerequired
updatedAtISO 8601 datetimerequired

Use Update model to revise the model's criteria after creation.

Was this page helpful?