Create a new design (V2)
Deprecated — use POST /v3/designs instead.
Creates a new design based on the provided prompt and optional images. This version supports custom design systems. v2 remains online for backwards compatibility with existing integrations and will be removed in a future release. The same API key works against both v2 and v3.
Authorizations
Body
The prompt for the new design.
"Create a login page"
The mode to use for the new design, either 'fast' for quicker generation or 'best' for higher quality. Defaults to 'fast'.
fast, best "fast"
UUID of the design system to use. If nothing is provided, our base design system will be used. Otherwise you can use this to specify your own design system ID.
"ds-9b80b54e-92b3-4b2f-8265-afe466ee8b75"
The model to use for generation. Defaults to 'auto'.
auto, claude_sonnet, gemini "auto"
Optional images to inspire or guide the design creation. Maximum file size is 5MB per image.
Response
Successfully created a new design.
The unique ID of the created design.
"abc123"
The source files for the design.
The compiled/processed files for the design.
URL to access the editor interface.
"https://www.magicpatterns.com/c/abc123"
URL to preview the generated design.
"https://abc123-preview.magicpatterns.app"
The conversation history for this design.