Create a new design (V2)
Creates a new design based on the provided prompt and optional images. This version supports both default and custom preset configurations.
Authorizations
Body
The prompt for the new design.
"Create a login page"
If nothing is provided, then html-tailwind is used. Can be either a default combination ('html-tailwind', 'shadcn-tailwind', 'chakraUi-inline', 'mantine-inline') or a custom configuration ID.
"html-tailwind"
Optional images to inspire or guide the design creation. Maximum file size is 5MB per image.
Response
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.
Was this page helpful?