I'm learning to code. Is the Agent API a good way to learn?
It can be, as long as you read what Cosmos does rather than only the final answer.
A good way to learn with it#
- Start with tiny tasks: "Write a Python program that adds two numbers and run it."
- Stream the events. Each
stepshows a message or a command Cosmos ran, so you can see how it solved the task. - Ask Cosmos to explain: "Reply with the code and a short explanation for a beginner."
- Run the code yourself afterwards and change it.
Keep it cheap#
- Use
"tier": "flash"or leave it onauto(billed as Flash). - Keep tasks small. New accounts get $5 of free credit, and runs stop with
402 out_of_creditswhen it runs out, so you can't overspend your balance.
Stay safe#
- Never share your API key, even with friends. Anyone with it and your Account ID can spend your credits.
- If you're under 18, use the account with a parent or guardian's permission.
Learn more#
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.xyzFor deleting your whole account or the data of one service.