Clatter LabsHelp Center

What's the difference between the Model API and the Agent API?

ExplainerUpdated

Both are paid from credits and use the same kind of key, but they do different jobs.

Model APIAgent API
What you getA model reply (chat completion)A full agent run that uses tools and a cloud computer
FormatOpenAI Chat CompletionsClatter Labs runs: create, stream events, get results, cancel
Base URLhttps://api.gateway.clatterlabs.xyz/v1https://api.agent.clatterlabs.xyz
Key permissionmodels:invokeruns:write, runs:read
Choose the tierModel idtier on the run
You pay forTokensTokens plus computer time, actions, browser time and storage writes

Pick the Model API when you want to control the loop yourself: your prompts, your tools, your app. Pick the Agent API when you want Cosmos to do a task end to end and hand you the result.

See the Model API overview and the Cosmos Agent API.

Still need help?#

We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.