Bricks AI Studio Documentation
Bricks AI Studio is a WordPress plugin that adds AI-powered page building to the Bricks Builder editor. Generate fully styled, responsive sections from text prompts, convert HTML/CSS/JS code to native Bricks elements, or recreate designs from screenshots — all without adding any frontend bloat.
Quick Start
- Install & activate the plugin
- Go to Settings → Bricks AI Studio
- Enter your license key and click Activate License
- Choose your mode: AI Credits (no keys needed) or BYOK (add your own API key from Anthropic, OpenAI, Google, or xAI)
- Open any page in Bricks Editor → click the AI button or press Ctrl+Shift+A
Requirements
| WordPress | 6.2 or higher |
| PHP | 8.0 or higher |
| Bricks Builder | 1.9 or higher (installed and activated) |
| AI Provider | AI Credits (no key needed) or BYOK with Anthropic, OpenAI, Google, or xAI API key |
| Server | PHP dom extension (for Code-to-Bricks), openssl extension (for API key encryption) |
Installation
- Download the
bricks-ai-studio.zipfile from your account or purchase email. - In WordPress admin, go to Plugins → Add New → Upload Plugin.
- Choose the
.zipfile and click Install Now. - Click Activate Plugin.
- Navigate to Settings → Bricks AI Studio to configure the plugin.
bricksaistudio.com.
License Activation
After purchasing, you'll receive a license key in the format BAIS-XXXX-XXXX-XXXX-XXXX.
Activating Your License
- Go to Settings → Bricks AI Studio.
- In the License Key field, enter your key (e.g.
BAIS-XXXX-XXXX-XXXX-XXXX). - Click Activate License.
- You should see a green "License Active" indicator with your license type.
Deactivating / Transferring
To move your license to a different domain, click Deactivate License on the current site first. This frees up an activation slot. Then activate on the new site.
Staging Sites
Staging environments are not counted against your activation limit. The following patterns are automatically detected as staging:
staging.*,dev.*,*.staging.**.local,localhost*.test,*.example
License Types & Limits
| Plan | Site Activations | Updates |
|---|---|---|
| Single | 1 production site | 1 year |
| Multi | 5 production sites | 1 year |
| Agency | 25 production sites | Lifetime |
| Unlimited | Unlimited sites | Lifetime |
API Key Setup & AI Credits
Bricks AI Studio offers two ways to power AI generation:
Option 1: AI Credits (Easiest)
Use our managed cloud infrastructure with zero configuration. No API keys needed — just activate your license, select "AI Credits" as your provider mode, and start generating. All 4 AI providers are accessible through our proxy. Generation is tracked automatically.
Option 2: BYOK (Bring Your Own Key)
Use your own API keys. You pay the AI providers directly — zero markup from us.
Anthropic (Claude) — Recommended
- Go to console.anthropic.com
- Sign up or log in.
- Navigate to API Keys and create a new key.
- Copy the key (starts with
sk-ant-...). - Paste it in Settings → Bricks AI Studio → Anthropic API Key.
The plugin uses claude-sonnet-4-20250514 by default — excellent at structured JSON output and design reasoning.
OpenAI (GPT-4o)
- Go to platform.openai.com
- Sign up or log in.
- Navigate to API Keys and create a new secret key.
- Copy the key (starts with
sk-...). - Paste it in Settings → Bricks AI Studio → OpenAI API Key.
Google Gemini
- Go to aistudio.google.com/apikey
- Sign in with your Google account.
- Create a new API key.
- Copy the key.
- Paste it in Settings → Bricks AI Studio → Gemini API Key.
xAI Grok
- Go to console.x.ai
- Sign up or log in.
- Navigate to API Keys and create a new key.
- Copy the key (starts with
xai-...). - Paste it in Settings → Bricks AI Studio → Grok API Key.
Choosing a Default Provider
In settings, select your preferred default. You can also switch providers per-request in the AI panel. We recommend Anthropic Claude for best results with Bricks element generation.
Typical API Costs
| Action | Estimated Cost |
|---|---|
| Single section generation | ~$0.01 – $0.05 |
| Full page (5 sections) | ~$0.10 – $0.25 |
| Screenshot analysis | ~$0.02 – $0.08 |
| Code to Bricks | $0 (no API call) |
AI Generate (Prompt to Bricks)
The core feature — describe what you want in plain English and the AI generates fully styled, responsive Bricks Builder elements with proper typography, colors, spacing, and hover effects.
How to Use
- Open any page in Bricks Editor ("Edit with Bricks").
- Click the AI button in the top toolbar, or press Ctrl+Shift+A (Cmd+Shift+A on Mac).
- Select the AI Generate tab.
- Type a prompt describing the section you want.
- Choose your insert mode (Append, Prepend, or Replace).
- Click Generate and the AI will create native Bricks elements ready for your page.
Prompt Tips for Best Results
- Be specific: "A dark hero section with gradient background, large bold heading, subtitle text, and two CTA buttons side by side"
- Mention colors: "Use purple (#6C5CE7) as the accent color"
- Specify layout: "3 cards in a row, each with an icon, heading, and description"
- Include interactions: "Add hover effects on the cards with shadow and slight scale"
- Define responsive behaviour: "Stack to single column on mobile"
Example Prompts
A pricing section with 3 cards. Dark background. Middle card highlighted with a purple border and "Most Popular" badge. Each card has: plan name, price, feature list, and CTA button.
A testimonial carousel section with customer photos, star ratings, quote text, and company logos. Use a subtle gradient background.
A FAQ section with accordion-style questions. Dark theme, subtle borders, smooth open/close animation. Include at least 6 questions about a SaaS product.
What Gets Generated
The AI generates native Bricks elements including:
- Section, Container, Div for layout structure
- Heading (h1–h6) with full typography settings
- Text / Rich Text for paragraphs
- Button with hover states
- Image, Icon, SVG
- Code elements for custom JS/CSS
- 30+ Bricks element types total
All output is stored in _bricks_page_content_2 postmeta — identical to manually created elements.
Zero frontend bloat: no extra CSS, JS, or shortcodes.
Code to Bricks Converter
A deterministic converter that parses HTML, CSS, and JavaScript into native Bricks elements. No AI API call required — runs entirely on your server.
How to Use
- In the AI panel, select the Code to Bricks tab.
- Paste your HTML into the HTML field. Optionally add CSS and JS.
- Click Convert.
- Elements appear in your Bricks structure panel instantly.
What Gets Converted
- HTML structure → Bricks element tree (block, section, heading, text, button, image, etc.)
- CSS properties → Bricks settings (30+ properties mapped: background, typography, padding, margin, flexbox, grid, border, box-shadow, etc.)
- JavaScript → Bricks Code elements with the JS preserved
- Framework detection: Tailwind CSS, Bootstrap, and Automatic.css (ACSS) classes are automatically detected and mapped
- BEM class names auto-generated for clean, maintainable markup
Complete Reference
For the full HTML tag mapping table, all 80+ CSS property mappings with examples, class-based detection, framework detection, BEM generation, and detailed before/after examples:
Screenshot to Bricks
Upload a design screenshot, mockup, or any image. The AI vision model analyzes colors, layout, typography, and recreates it as native Bricks elements.
How to Use
- Select the Screenshot tab in the AI panel.
- Drag & drop or click to upload an image (.png, .jpg, .webp).
- Optionally add a text prompt for additional context (e.g. "Make the background darker").
- Click Generate.
Best Practices
- Use clear, high-resolution screenshots for best accuracy.
- Crop to just the section you want — full-page screenshots work but section-level gives better results.
- Works with both Claude Vision and GPT-4o Vision APIs.
- Color extraction, layout detection, and typography estimation are all automatic.
Template Library
Bricks AI Studio includes a built-in template library with 1,200+ pre-designed templates across 60+ categories. Browse, preview, and import professional Bricks sections and pages directly into your editor — no AI API calls required.
Template Categories
Templates are organized into three types:
| Type | Description | Use Case |
|---|---|---|
| Sections | Individual page sections (hero, footer, pricing, etc.) | Add specific sections to existing pages |
| Wireframes | Minimal structure templates with placeholder content | Quick layout starting points for custom styling |
| Pages | Complete multi-section page layouts | Full page designs ready to customize |
Available Categories
The library includes templates for: Hero, Header, Footer, About, Services, Pricing, FAQ, Contact, Team, Testimonials, CTA, Blog, Portfolio, Gallery, Shop, Newsletter, Counter, Timeline, Slider, Home, Coming Soon, 404 Page, Mega Menu, and many more.
How to Import Templates
- Open the Template Library tab in the AI panel.
- Browse categories or search by keyword.
- Preview the template thumbnail.
- Click Import to add it to your current page.
- Customize colors, typography, content, and responsive settings as needed.
Remote Template Server
Templates are hosted on the Bricks AI Studio licensing server and delivered to your site via a secure REST API. This ensures you always have access to the latest templates without plugin updates.
How It Works
- Your site requests the template catalog from
bricksaistudio.com. - The server verifies your license and returns available templates based on your license tier.
- Templates are cached locally after first fetch for fast subsequent access.
- When you import a template, the full element data is downloaded and inserted as native Bricks elements.
Import Modes
| Mode | Description |
|---|---|
| Import as Template | Creates a new Bricks template post (bricks_template CPT) that you can reuse across pages. |
| Import to Page | Inserts the template elements directly into an existing page’s Bricks content. |
Template Cache
The template catalog is cached for 12 hours to reduce API calls. To force a refresh, you can deactivate and reactivate your license, or the cache clears automatically when the plugin is deactivated.
Insert Modes
When generating elements, you can choose how they're inserted into the page:
| Mode | Behaviour |
|---|---|
| Append | Adds generated elements after existing page content (default) |
| Prepend | Adds generated elements before existing content |
| Replace | Replaces all existing page content with generated elements |
Site Context Awareness
Bricks AI Studio automatically collects context from your site to generate matching designs:
- CSS Variables — Your theme's custom properties (colors, fonts, spacing)
- Color Palette — Bricks global color palette
- Typography — Font families, sizes, weights from your theme settings
- Global Classes — Your existing Bricks global CSS classes
- Breakpoints — Tablet and mobile breakpoint values
This ensures AI-generated sections look consistent with your existing site design without manual adjustments.
Plugin Settings
All settings are in Settings → Bricks AI Studio.
License
- License Key: Your
BAIS-XXXX-XXXX-XXXX-XXXXkey
API Configuration
- Provider Mode: Choose between AI Credits (managed) or BYOK (own keys)
- OpenAI API Key: Your
sk-...key from OpenAI - Anthropic API Key: Your
sk-ant-...key from Anthropic - Gemini API Key: Your key from Google AI Studio
- Grok API Key: Your
xai-...key from xAI - Default Provider: Choose between Anthropic, OpenAI, Gemini, or Grok
Rate Limiting
- Requests per Hour: Maximum AI requests per user per hour (default: 50). Prevents accidental API overuse.
Caching
- Response Cache: When enabled, identical prompts return cached results to reduce API calls. Toggle off for always-fresh generations.
Usage Tracking
The settings page displays usage statistics at the bottom:
- Total Requests: Total number of AI generation requests
- Total Tokens: Combined input + output tokens used
- OpenAI Requests: Requests sent to OpenAI
- Anthropic Requests: Requests sent to Anthropic
This helps you monitor API costs and usage patterns.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+Shift+A | Toggle AI Studio panel (Windows/Linux) |
| Cmd+Shift+A | Toggle AI Studio panel (Mac) |
Pricing & Plans
🎉 Launch Sale — Limited Time
Get Bricks AI Studio at our lowest-ever pricing. One-time payment, no subscriptions.
| Plan | Launch Price | Sites | Updates |
|---|---|---|---|
| Single | $10 | 1 site | 1 year |
| Multi | $30 | 5 sites | 1 year |
| Agency | $75 | 25 sites | Lifetime |
| Unlimited | $150 | Unlimited | Lifetime |
All plans include all 4 input modes, all 4 AI providers (Claude, GPT-4o, Gemini, Grok), AI Credits & BYOK support, and the full template library.
Changelog
v2.0.0 — Current
- New: AI Credits mode — use our managed cloud proxy with zero API key configuration
- New: BYOK mode — bring your own API keys with zero markup
- New: xAI Grok provider support (Grok 3, Grok 3 Mini, Grok 3 Mini Fast)
- New: Global CSS classes support — AI-generated classes merge into Bricks global classes
- New: Auto model routing with per-model output token limits (35+ models)
- New: Generation tracking with prompt and response storage
- Improved: Provider selection with 4 providers (Anthropic, OpenAI, Google, xAI)
- Improved: Cloud proxy infrastructure on Google Cloud Run
v1.5
- New: Template Library with 1,200+ pre-designed templates across 60+ categories
- New: Remote template server — browse and import templates directly from the licensing server
- New: Import templates as Bricks template posts or directly into existing pages
- New: Template catalog with search, category filtering, and license-tier access control
v1.3
- New: Response history database with full CRUD, search, filter & pagination
- New: Dark-themed tabbed admin settings (6 tabs)
- New: Google Gemini provider support
- New: Diagnostics & server health checks
v1.2
- New: MCP multi-turn generation with tool use
- Improved: Timeout handling & 502/504 recovery
v1.0
- Initial release — AI Prompt to Bricks, Code-to-Bricks converter, Screenshot-to-Bricks, dual AI provider support, license activation
Roadmap
Here’s what’s coming next for Bricks AI Studio. Priorities may shift based on community feedback.
In Progress
- AI Credits Purchase — In-app credit pack purchase via credit/debit card
- AI-Powered Element Editing — Select an existing element and modify it with AI
- Full Page Generation — Generate complete multi-section pages from a single prompt
Planned
- Design System Tokens — Define reusable design tokens the AI uses consistently
- Figma to Bricks — Import Figma designs as native Bricks elements
- Dynamic Content Integration — ACF, Meta Box, and custom field mapping
- WooCommerce Templates — Dedicated e-commerce section templates
- Mistral & Llama support — Open-source AI model providers
Exploring
- Multi-Language Generation — Generate content in different languages
- Accessibility Checker — Verify WCAG compliance of generated elements
- Template Version Control — Track changes to templates over time
Troubleshooting
"Failed to parse JSON" Error
Sometimes the AI returns JSON wrapped in code fences (```json ... ```) or triple quotes
("""..."""). The plugin automatically strips these wrappers, but if you encounter this error:
- Try generating again — AI output varies slightly each time.
- Simplify your prompt — shorter prompts tend to produce cleaner JSON output.
- Switch AI provider — Claude and GPT-4o have different output formatting tendencies.
- Make sure you're running the latest plugin version (update available in WordPress admin).
"License Invalid" or Activation Issues
- Double-check your license key format:
BAIS-XXXX-XXXX-XXXX-XXXX - If you've reached your activation limit, deactivate from another site first.
- Check that your server can make outbound HTTPS requests (some hosts block external API calls).
AI Panel Not Appearing in Bricks Editor
- Verify Bricks Builder 1.9+ is installed and activated.
- Verify the plugin is activated (Plugins → Installed Plugins).
- Try clearing browser cache and refreshing the Bricks editor.
- Check for JavaScript console errors (F12 → Console tab).
API Key Not Working
- Ensure you've clicked Save Settings after entering your key.
- Check that your API key is still active in the provider's dashboard.
- Verify your API account has sufficient credits/balance.
- OpenAI keys start with
sk-; Anthropic keys start withsk-ant-.
Slow or Timeout on Generation
- Complex prompts may take 10–30 seconds depending on the AI provider.
- Check your server's
max_execution_timePHP setting (should be at least 120). - Some hosts (like shared hosting) may terminate long-running requests. Consider a VPS or managed WordPress host.
Frequently Asked Questions
Does the plugin send my site data to external servers?
BYOK mode: The plugin sends your prompt and site context (CSS variables, color palette)
directly to the AI provider you've selected. No data is sent to our servers except license validation.
AI Credits mode: Prompts are routed through our secure cloud proxy for generation.
We do not store or share your content beyond what's needed for generation tracking.
Can I use the plugin without an AI API key?
Yes! With AI Credits mode, no API keys are needed — just activate your license and start generating. The Code to Bricks converter and Template Library also work with zero API calls. Only the BYOK mode requires your own API keys.
What happens if my license expires?
The plugin continues to work indefinitely — you just stop receiving updates. You can renew at a discounted rate to resume updates. Agency and Unlimited licenses include lifetime updates.
Can I use the generated elements commercially?
Absolutely. All generated output is yours to use in any project — personal, client, or commercial.
Do staging sites count against my activation limit?
No. Staging, development, and local environments are automatically detected and exempt from your activation count.
Support
Need help? We're here for you.
| [email protected] | |
| Website | bricksaistudio.com |
| Response Time | Within 24 hours (priority for Multi, Agency, & Unlimited plans) |