API
Create a new pattern
Creates a new design pattern based on the provided prompt, design system, and styling preferences. Optionally, an image can be included in the request to influence the design.
POST
/
pattern
Authorizations
x-mp-api-key
string
headerrequiredBody
prompt
string
The prompt for the new pattern.
designSystem
enum<string>
The design system to use for creating the pattern.
Available options:
html
, radixThemes
, shadcn
, mantine
, chakraUi
styling
enum<string>
The styling approach to apply to the pattern.
Available options:
tailwind
, inline
, customTailwind
image
string
An optional image to inspire or guide the pattern creation.
shouldAwaitGenerations
boolean
default: falseWhether to wait for all generations to complete before responding.
numberOfGenerations
integer
default: 1The number of generations to process for the pattern. Must be at least 1.
Response
200 - application/json
id
string
The unique ID of the created pattern.
snapshots
object[]
url
string
iFrameUrl
string
Was this page helpful?