When to use v2 vs v3
Use v3 if you are building anything new. v3 is the current Magic Patterns API: it covers everything v2 does (single-shot design creation) plus iteration, file reads/writes, version history, and publishing. The same API key works for both v3 and the MCP server. Use v2 only if you are already integrated againstPOST /api/v2/pattern and not yet ready to migrate. The same API key works for both v2 and v3 endpoints, so there’s no key churn when you move over.
v2 quickstart
Log in
Sign in (or create an account) at magicpatterns.com.
Create an API key
Open Settings → API Keys and click Create Key. Copy the key immediately — you can only see it once.
Rate limits
1000 generations per 10 hours per key. Contact us if you need a higher limit.v2 endpoint
POST /v2/pattern
Create a single design from a prompt. Returns the generated source and compiled files.
Migrating to v3
The v3 equivalent ofPOST /v2/pattern is POST /v3/designs with a prompt in the body. The same API key authenticates both. See v3 Getting Started for the full walkthrough.