🚀 v2.0.0 is here! AI Credits & BYOK mode are live. Credit purchase system coming soon — payments setup in progress. See what's new →
← Back to home
🚀

AI Credits & BYOK are live! Credit purchase system coming soon — we're setting up payments for credit packs and subscription plans. Stay tuned!

Changelog

What's new in Bricks AI Studio

Every update, feature, improvement, and bug fix — documented.

Latest

v2.0.0

Major release — AI Credits system, BYOK mode for all 4 providers, xAI Grok integration, global CSS classes, and auto model routing across 35+ models.

✨ New Features

  • AI Credits System — Purchase and use BAIS AI Credits directly from bricksaistudio.com. Credits are deducted per generation based on the model used. Monthly allocations reset automatically with your subscription, and you can top up anytime with pay-as-you-go credit packs.
  • Model Selection for AI Credits — Three models available based on your plan:
    • Gemini 3 Flash (3 credits/generation) — Best quality, recommended for complex layouts
    • GPT-5 Mini (2 credits/generation) — Strong reliability, great all-rounder
    • Gemini 2.5 Flash (1 credit/generation) — Most affordable, ideal for simple sections
    Models are assigned per plan — Starter gets Gemini 2.5 Flash + GPT-5 Mini, Pro and Studio get all three.
  • Bring Your Own Key (BYOK) Mode — Use your own API keys from any supported provider:
    • Anthropic — Claude 4 Sonnet, Claude 3.5 Sonnet, Claude 3 Haiku, and more
    • OpenAI — GPT-4o, GPT-4o Mini, GPT-5 Mini, and more
    • Google Gemini — Gemini 3 Flash, Gemini 2.5 Flash, Gemini 2.5 Pro, and more
    • xAI Grok — Grok 3, Grok 3 Mini, Grok 3 Mini Fast
    Select your preferred provider and model directly from the settings panel. Your API keys are encrypted end-to-end.
  • Auto Model Routing & Per-Model Token Limits — 35+ models across all 4 providers with automatic max token configuration per model. Smart fallback ensures your generation never fails unnecessarily.
  • Global CSS Classes Support — Generated elements can now include Bricks global CSS classes. The AI references your existing global classes and applies them for consistent styling across all generations.
  • Credit Balance Dashboard — View your real-time credit balance, monthly allocation, usage this cycle, and pay-as-you-go balance directly in your WordPress admin under My Account. See exactly when your monthly credits reset.
  • Generation History Tracking — Every AI generation is recorded with model used, tokens consumed, credits charged, prompt, response, and duration. Browse your full generation history from the credits panel.
  • Credit Transaction Audit Log — Complete audit trail of every credit change — monthly allocations, generation charges, PAYG purchases, and refunds. Full transparency into your credit usage.
  • MCP Bricks Knowledge Base — 6 New Tools — The AI assistant now has deep knowledge of Bricks Style System, Responsive Design, Form Builder, Filter System, WooCommerce Integration, and JSON Validation.
  • Automatic Account Provisioning — When you purchase a plan or credit pack on bricksaistudio.com, your account and credits are set up automatically. No manual configuration needed.

🔧 Improvements

  • Enhanced Credit Security — Credits are held before generation starts and only charged on success. Failed generations are automatically refunded.
  • Timeout Recovery — If your connection drops during a generation, recover the result using the built-in polling system. No more lost generations.
  • Plan-Based Rate Limiting — Rate limits enforced per-plan: Free (2/min), Starter (10/min), Pro (30/min), Studio (60/min).
  • MCP tool_use currently supports Anthropic (Claude) models only. OpenAI and Gemini function calling support is planned for a future update.

v1.5.0

✨ New Features

  • xAI Grok — 4th AI Provider — xAI joins Anthropic, OpenAI, and Google as a fully supported provider. Choose Grok for any generation mode including Screenshot-to-Bricks via Grok Vision.
  • Grok 3, Grok 3 Mini & Grok 3 Mini Fast — Three model tiers for different needs: Grok 3 for maximum quality, Grok 3 Mini for balanced performance, and Grok 3 Mini Fast for speed.
  • BYOK Support for xAI — Bring Your Own Key mode now supports xAI API keys alongside Anthropic, OpenAI, and Google. Full model selection across all 4 providers.

🔧 Improvements

  • Provider selector updated to display all 4 providers with model dropdowns.
  • Screenshot-to-Bricks now supports Grok Vision in addition to GPT-4o Vision.
  • Settings panel shows provider-specific model lists with automatic refresh.

v1.4.0

✨ New Features

  • Template Library — 1,200+ Pre-Built Sections — Massive library of ready-to-use section templates covering every common website pattern: hero, pricing, FAQ, testimonials, CTA, features, team, and many more.
  • 60+ Organized Categories — Templates sorted into 60+ categories for fast browsing. Filter by section type, industry, or layout style.
  • One-Click Template Insertion — Browse, preview, and insert any template directly into the Bricks editor with a single click. No prompt writing required.
  • Template Search & Filtering — Keyword search and category filtering to quickly find the perfect starting point for your design.
  • Template Preview Thumbnails — Visual thumbnail previews for every template so you can see what you're inserting before committing.

🔧 Improvements

  • Templates served from a remote server and cached locally. New templates added regularly without requiring a plugin update.
  • Editor panel updated with a new Templates tab alongside Prompt, Screenshot, and Code modes.
  • Template insertion uses the same element insertion pipeline as AI generation for consistent results.

v1.3.0

✨ New Features

  • Response History Database Table — All AI generations are now stored persistently in a dedicated database table (bais_response_history) with full metadata including prompt, provider, model, elements, tokens, duration, and status.
  • Response History Tab — Browse, search, filter by source/status, copy JSON, and delete past generations from the admin settings. Paginated table with expandable detail rows showing full prompt, elements JSON, and raw AI response.
  • REST API for History CRUD — New endpoints: GET /ai/history (list with pagination & filtering), GET /ai/history/{id} (single), DELETE /ai/history/{id} (delete), DELETE /ai/history (clear all).
  • Dark-Themed Tabbed Admin Settings — Complete redesign of the settings page with a modern dark UI. 6 tabs: General, API & Models, Settings, Response History, Logs, and Diagnostics. Card-based layout with proper form styling.
  • Admin JavaScript Module — External bundled JS file replaces all inline JavaScript. Tab navigation, license management, settings save, model refresh, history browsing, log viewing, and diagnostics — all in a proper webpack-built bundle.
  • Google Gemini Provider Support — Third AI provider with API key management and model selection. Choose between Claude, GPT-4o, and Gemini per request.
  • Server Diagnostics Tab — Built-in health checks for PHP version, memory limits, execution time, cURL, SSL support, and timeout conflicts. Actionable warnings and recommendations.

🔧 Improvements

  • Backend responses now saved to both post meta and dedicated database table for redundant storage.
  • Settings page uses wp_localize_script for internationalized strings instead of inline JS — better CSP compliance.
  • Model refresh uses AbortController with 3-minute timeout for reliable provider API calls.
  • All form elements in admin use custom dark-themed styling that properly overrides WordPress admin defaults.
  • Webpack config updated with proper JS entry point for admin-settings bundle.

⚙️ Technical

  • New Response_History CRUD class with create_table(), insert(), query() (pagination, filtering, search), get(), delete(), clear_all(), get_stats(), and drop_table() methods.
  • Table creation runs on plugin activation via Activator::activate().
  • History inserts added to all 3 generation endpoints: generate_section, generate_with_mcp, generate_from_screenshot.
  • REST routes registered with proper arg sanitization and schema validation.
  • Admin SCSS uses design tokens (variables) for consistent theming.

v1.2.0

✨ New Features

  • MCP Multi-Turn Generation — New endpoint using Anthropic's tool-use API. The AI performs multiple iterations with tool calls to build complex, multi-section layouts with up to 10 turns.
  • Background Job Polling — Transient-based job queue (bais_job_{post_id}) for long-running AI requests. Frontend polls /generation-status/{post_id} for progress updates.
  • AbortController Timeout Handling — Configurable client-side timeouts with clean abort behavior. Prevents zombie requests and provides clear timeout feedback.
  • Backend Response Saving — Every AI response automatically saved to post meta (_bais_last_response). Retrievable via GET /last-response/{post_id} REST endpoint.

🔧 Improvements

  • PHP set_time_limit() and ignore_user_abort(true) for long-running generation requests.
  • Automatic detection of HTML error responses (502/504 from Nginx/Apache reverse proxies) with proper error messaging.
  • Rate limiter with configurable per-user limits and sliding window algorithm.

🐛 Bug Fixes

  • Fixed timeout issues on shared hosting where max_execution_time was set too low.
  • Fixed error handling for malformed JSON in AI responses that contained markdown code fences.

v1.1.0

✨ New Features

  • Screenshot-to-Bricks Generation — Upload any screenshot or design mockup and the AI recreates it using GPT-4o Vision as native Bricks elements.
  • Multi-Provider Architecture — Abstracted AI provider layer supporting hot-swapping between providers. Factory pattern for easy addition of new providers.
  • Site Context Collector — Automatically captures theme CSS variables, global Bricks classes, typography settings, and color palette for AI context injection.
  • Prompt Builder — Intelligent prompt construction system that assembles context-aware prompts from site data, user instructions, and Bricks schema knowledge.
  • Usage Tracking & Analytics — Dashboard showing total requests, tokens used, provider distribution, and success rates.

🔧 Improvements

  • Response parser with JSON repair capabilities — handles unclosed brackets, trailing commas, and markdown wrappers.
  • Element ID generator produces collision-free IDs compatible with Bricks Builder's internal format.
  • Better error messaging with AI response details in error diagnostics.

v1.0.0

🚀 Initial Release

  • AI-Powered Section Generation — Natural language prompt to native Bricks Builder elements. Supports sections, containers, headings, text, buttons, images, dividers, and more.
  • HTML/CSS/JS Code Converter — Paste any HTML/CSS/JS code and convert to native Bricks elements with proper CSS property mapping, framework detection (Bootstrap, Tailwind), and JS handler preservation.
  • OpenAI & Anthropic Support — Both GPT-4o and Claude models supported with API key management and model selection.
  • Bricks Editor Panel — Custom side panel in the Bricks Builder editor with 3 input modes (Prompt, Screenshot, Code), real-time preview, and instant element insertion.
  • AES-256-CBC Encryption — All API keys encrypted at rest using WordPress salts as encryption keys. Industry-standard security.
  • Admin Settings Page — Full configuration interface with API key management, provider/model selection, rate limiting, and caching options.
  • Bricks Schema Validation — All generated elements validated against Bricks Builder's element schema before insertion, ensuring compatibility.
  • CSS Property Mapper — Comprehensive CSS-to-Bricks style mapping covering 100+ CSS properties across typography, spacing, borders, backgrounds, flexbox, grid, and transforms.
  • Rate Limiting — Configurable per-user request limits to prevent API key abuse.
  • Response Caching — Intelligent caching reduces redundant API calls for identical prompts.