Design Studio
The Studio is Garmint’s primary interface—a conversational AI designer that generates mockups through natural language. Just describe what you want, and watch it appear on real garments.Overview
Located at the root path, the Studio provides:- Streaming AI responses via Vercel AI SDK
- Multi-image generation with automatic garment detection
- Design isolation for print-ready graphics
- Inline actions for saving, upscaling, and production
How It Works
Conversation Flow
- Select a garment from
/garments(optional but recommended) - Describe your design in natural language
- AI generates mockups showing your design on the garment
- Iterate with follow-up prompts (“make it bigger”, “change the color”)
- Save designs you like to your Gallery
Example Prompts
Basic design request
Basic design request
With placement instructions
With placement instructions
Style-specific
Style-specific
Iteration
Iteration
AI System Prompt
The chat AI operates with this persona:Two-Step Generation
Each generation produces two outputs:Step 1: Design Graphic
- Isolated artwork on white/transparent background
- Square format (1:1 aspect ratio)
- Ready for print production
Step 2: Mockup Composite
- Design placed on the selected garment
- Professional product photography style
- Design stays within printable bounds
Garment Context
When a garment is selected, it’s automatically included in the AI context:- Reference the specific garment in responses
- Match design placement to garment style
- Consider fabric/color in design suggestions
Image Attachments
You can attach images to your prompts:- Reference images: “Create something like this” + image
- Existing designs: “Put this logo on the shirt” + logo file
- Style guides: “Use colors from this palette” + image
- Design images: Existing artwork to place on garment
- Reference images: Style inspiration (not placed directly)
Inline Actions
Each generated mockup has quick actions:| Action | Description |
|---|---|
| Save | Add to Gallery for later |
| Upscale | 4x resolution enhancement |
| Production | Open size run configuration |
| Download | Save to local device |
| Delete | Remove from conversation |
Token Consumption
Each generation costs tokens based on the model used:| Model | Tokens | Use Case |
|---|---|---|
nano-banana | 12 | Fast iterations |
nano-banana-pro | 45 | High quality |
nano-banana-pro-4k | 90 | Print-ready 4K |
- Background removal: 3 tokens
- Upscale: 1 token
Thread Management
Conversations are saved as threads:- Auto-save: Messages persist automatically
- History: Access previous threads from sidebar
- Archive: Hide threads without deleting
- Delete: Permanently remove thread and messages
Technical Details
API Endpoint
State Management
Chat state lives inpage.tsx with these key pieces: