Creates a new design based on the provided prompt and optional images. This version supports both default and custom preset configurations.
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"
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"
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.
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.