Endpoint Examples
Generate Component
Generates a JavaScript module for a React component that renders a UI matching the provided prompt description or image.
The response is a text stream if successful. prompt
and image
can be used in combination or independently.
POST
/
generate
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
visibility
enum<string>
requiredVisibility of the generated component.
Available options:
PUBLIC
, PRIVATE
prompt
string
The description for generating the UI component.
image
string
A URL of an image (supported types png, jpg, jpeg, webp). Max file size is 15mb
Response
200 - text/plain
The response is of type string
.