AI Agent Integration
AI coding agents can create mascots and generate assets through Masko's public REST API. This works in any agent that can make HTTP requests or run a script.
Choose Your Integration
| Method | Best For | Setup |
|---|---|---|
| AI Skill | Give an agent Masko-specific workflows and API guidance | 2 minutes |
| Direct API | Scripts, applications, and custom agent tools | Quickstart |
| OpenAPI | Generate a typed client or inspect the complete contract | OpenAPI spec |
Quick Setup
Create an API key in Developer Settings, then pass it as a bearer token:
curl https://api.masko.ai/v1/credits \
-H "Authorization: Bearer $MASKO_API_KEY"What Agents Can Do
- Create and manage mascot collections
- Generate images, animations, edits, logos, and scenes
- Poll generation jobs and retrieve CDN URLs
- Build and update interactive canvases
- Manage projects, assets, and references
Agent Resources
| Resource | URL |
|---|---|
| LLM-friendly docs | masko.ai/llms-full.txt |
| Documentation search | GET https://api.masko.ai/v1/docs?q=animation |
| OpenAPI specification | api.masko.ai/v1/openapi.json |
Tip
In the API, a mascot is represented by a collection with type: "mascot".