Skip to main content
Copy-paste examples for real-world AI agent use cases. All code is tested and production-ready. For agent loops that search and edit code, see the WarpGrep examples.

Smart Model Routing

Send each request to the right model for its difficulty — Opus for hard prompts, Haiku for easy ones — using the router’s classify endpoint. You keep the mapping; the router just reads the prompt.
What it does: One classify call reads the prompt’s difficulty, then you route to the model you picked for that tier — cheap models for simple work, your strongest model only when it’s needed.

More Examples

Documentation Bot

Auto-generate docs from code

Security Auditor

Scan for vulnerabilities

Refactoring Agent

Large-scale code cleanup

Test Generator

Generate unit & E2E tests

Need Help?

API Reference

Complete API docs

Dashboard

Get API keys & monitor usage

Discord Community

Ask questions & share builds

Support

Email us for help