Integrate AI-powered UI generation into your applications with the 1ui API
Navigate to the API Keys page and create a new API key
1ui_sk_live_abc123...curl -X POST https://www.1ui.dev/api/v1/generate \
-H "Authorization: Bearer 1ui_sk_live_abc123..." \
-H "Content-Type: application/json" \
-d '{
"prompt": "Create a modern login page",
"viewMode": "desktop"
}'The API returns a stream of HTML code that you can use in your application