Transform a basic prompt into a detailed, professional prompt that produces better generation results.
Endpoint
Request Body
The basic prompt to enhance.
Type of enhancement:
single - Enhance for a single screen
flow - Enhance for a multi-screen flow
Example Request
curl -X POST http://app.seemodo.ai/api/enhance-prompt \
-H "Content-Type: application/json" \
-d '{
"prompt": "dashboard for analytics",
"type": "single"
}'
Response
Whether the enhancement succeeded.
The improved, detailed prompt.
Success Response
{
"success": true,
"enhancedPrompt": "A modern analytics dashboard with a dark theme featuring a top navigation bar with user profile dropdown. The main content area displays four stat cards showing key metrics (revenue, users, sessions, conversion rate) with trend indicators. Below, a large area chart visualizes data over time with gradient fill. The right sidebar shows a list of recent activities with timestamps. Use a color palette of deep navy backgrounds with bright accent colors for data visualization. Include subtle shadows and rounded corners throughout for a polished look."
}
Enhancement Comparison
Before:After:A modern login page with a split layout. Left side features a gradient background
with the app logo and a motivational tagline. Right side contains the login form
with email and password inputs, a prominent "Sign In" button, and links for
"Forgot Password" and "Create Account". Include social login options (Google, Apple)
with subtle dividers. Use soft shadows, rounded input fields, and a clean sans-serif
typography for a professional appearance.
Before:onboarding for fitness app
After:A comprehensive onboarding flow for a fitness tracking app with 4-5 connected screens.
Start with a welcome screen featuring the app logo and a compelling tagline about
health transformation. Progress through feature highlights showing activity tracking,
workout plans, and nutrition logging. Include a personalization screen where users
select their fitness goals (weight loss, muscle gain, maintenance). End with account
creation offering email signup and social authentication. Maintain consistent branding
with progress indicators and smooth transitions between screens.
How It Works
The AI adds:
- UI Elements - Specific components like buttons, cards, forms
- Visual Design - Colors, shadows, typography, spacing
- Layout Details - Structure, alignment, responsive considerations
- Interaction Hints - Hover states, animations, transitions
- Content Suggestions - Placeholder text, icons, images
Usage in Generation Workflow
async function generateWithEnhancement(userPrompt) {
// Step 1: Enhance the prompt
const enhanceResponse = await fetch('/api/enhance-prompt', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ prompt: userPrompt })
});
const { enhancedPrompt } = await enhanceResponse.json();
// Step 2: Generate with enhanced prompt
const generateResponse = await fetch('/api/generate-screen', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
prompt: enhancedPrompt,
sandboxId: activeSandbox.id
})
});
return generateResponse.json();
}
Flow Enhancement
When enhancing for flows, the AI also considers:
- Screen Count - Optimal number of screens for the journey
- Transitions - How screens connect logically
- Consistency - Maintaining visual language across screens
- User Journey - Natural progression through the flow
const response = await fetch('/api/enhance-prompt', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
prompt: 'checkout process for online store',
type: 'flow'
})
});
Error Response
{
"success": false,
"error": "GEMINI_API_KEY is not configured"
}
Configuration
The endpoint uses Google’s Gemini 2.0 Flash model for fast enhancement:
GEMINI_API_KEY=your-gemini-api-key
Best Practices
- Start simple - Let the AI add details rather than overspecifying
- Include context - Mention the app type or industry for relevant suggestions
- Use for exploration - Generate multiple enhancements to compare approaches
- Review before generating - The enhanced prompt should match your vision