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

Custom models

A custom model is a versioned workspace resource that combines a base model with optional saved questions and task-specific improvements, so you can run and refine predictions through a single model name.

This guide creates a custom model that flags urgent support tickets. Replace acme with your workspace and set up authentication before you start.

Supported base models

Use mo-latest for the current base model or mo-2.0 to pin its version.

ModelAliasContext windowModalities
mo-2.0mo-latest256K tokensText, images
mo-1.3.1—256K tokensText, images
mo-lite Coming soon———

Mo Lite is coming soon. Its API requests currently return 400 model_not_supported.

See List models for the models and repositories available to your token.

1. Save the question

Create the model with a base model and a named question. Keep the question ID stable so future answers and annotations refer to the same task.

from modaic import Modaic

client = Modaic()

model = client.models.create(
    workspace="acme",
    slug="support-priority",
    model="mo-latest",
    questions={"urgent": {"type": "noul", "instructions": "Does this require immediate attention?"}},
)

2. Run the custom model

Send a new ticket to acme/support-priority. The model loads its saved question and returns the answer under urgent.

result = client.predictions.create(
    model="acme/support-priority",
    state="Checkout is unavailable.",
)
print(result.answers["urgent"].noul)

If the response includes an example_id (exampleId in TypeScript), the input was captured for review. Use reviewed examples to optimize the question's instructions.

See Versioning to pin a revision, or List models to find available base models.

Was this page helpful?