1ui API Documentation
Integrate AI-powered UI generation into your applications with the 1ui API
Fast & Reliable
Generate UI designs in seconds with our AI-powered API
Secure
API keys with rate limiting and usage tracking
Easy Integration
Simple REST API with comprehensive documentation
Getting Started
Start using the 1ui API in minutes
1. Get Your API Key
Navigate to the API Keys page and create a new API key
1ui_sk_live_abc123...2. Make Your First Request
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"
}'3. Receive Generated HTML
The API returns a stream of HTML code that you can use in your application