API
Create a new pattern
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
, shadcn
, chakraUi
styling
enum<string>
The styling approach to apply to the pattern.
Available options:
tailwind
, inline
, customTailwind
image
file
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?