Generate a new component
Generate a new component using AI based on user prompt
Authorizations
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Body
Natural language description of the component to generate
10 - 2000"A stat card that displays a percentage with a circular progress indicator"
Category for the component
text, stat, transition, cta, custom "stat"
Name for the component
200"Circular Progress Card"
Tags for searchability
Theme ID to use for generation context
Whether the component should be public
Response
Component generated successfully
- Option 1
- Option 2
Generated visual component.
Component identifier.
"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"
"Metric counter"
"chart"
Generated component source code.
false
true
"2026-06-20T17:24:39.000Z"
"2026-06-20T17:24:39.000Z"