Title: DB AI Field Generator for Advanced Custom Fields
Author: Deepak Bhojwani
Published: <strong>June 25, 2026</strong>
Last modified: June 27, 2026

---

Search plugins

![](https://ps.w.org/db-ai-field-generator/assets/banner-772x250.png?rev=3586474)

![](https://ps.w.org/db-ai-field-generator/assets/icon.svg?rev=3586474)

# DB AI Field Generator for Advanced Custom Fields

 By [Deepak Bhojwani](https://profiles.wordpress.org/deepakbhojwani/)

[Download](https://downloads.wordpress.org/plugin/db-ai-field-generator.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/db-ai-field-generator/#description)
 * [Reviews](https://wordpress.org/plugins/db-ai-field-generator/#reviews)
 *  [Installation](https://wordpress.org/plugins/db-ai-field-generator/#installation)
 * [Development](https://wordpress.org/plugins/db-ai-field-generator/#developers)

 [Support](https://wordpress.org/support/plugin/db-ai-field-generator/)

## Description

**DB AI Field Generator for Advanced Custom Fields** saves hours of development 
time by letting you generate ACF field groups using plain English. No more clicking
through ACF’s admin UI to build complex field structures – just describe what you
need, and AI generates it instantly.

#### What You Can Do

 * Describe fields in natural language and get a complete ACF field group
 * Support for **text, textarea, number, image, file, repeater, select, checkbox,
   true/false, URL, email, WYSIWYG, relationship, gallery** field types
 * Generate repeaters with nested sub-fields
 * Create WooCommerce product fields, team member profiles, event details, and more
 * Preview generated JSON before creating the field group
 * Copy JSON to clipboard
 * Instantly register the field group in ACF with one click
 * Use **FREE AI models** via OpenRouter, Google AI Studio, or NVIDIA NIM – no API
   billing required

#### Supported AI Providers

**OpenRouter** ⭐ Free – Recommended for beginners
 Access 200+ AI models with a
single API key. Dozens of free models available indefinitely: Gemini 2.0 Flash Experimental,
Llama 4 Maverick, DeepSeek Chat V3, Qwen3 Coder 480B, Mistral Small, NVIDIA Nemotron,
and many more. Sign up free at openrouter.ai.

**Google Gemini** ⭐ Free – Best JSON quality
 Direct access to Google’s Gemini 
model family via Google AI Studio. Free tier with no credit card required. – Always
Latest aliases: Gemini Flash Latest, Flash-Lite Latest, Pro Latest (auto-update 
to newest model) – Gemini 3.x: Gemini 3.1 Flash Lite, Gemini 3 Flash Preview, Gemini
3.1 Pro Preview – Gemini 2.5: Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash-
Lite – Gemini 2.0: Gemini 2.0 Flash (1,500 req/day free), Gemini 2.0 Flash-Lite

**NVIDIA NIM** ⭐ Free – 100+ frontier models
 NVIDIA’s hosted inference platform
with free credits auto-added on signup. One API key unlocks all models: Nemotron
3 Super 120B, DeepSeek V4 Pro/Flash, Llama 4, Mistral Medium 3.5, Qwen3 Coder 480B,
Kimi K2, MiniMax, GLM, Gemma, and many more.

**OpenAI**
 GPT-4o Mini, GPT-4.1 Mini, GPT-4.1, GPT-4o. Requires API billing.

**Claude (Anthropic)**
 Claude 3.5 Sonnet, Claude 3 Haiku. Exceptional reasoning
for complex field structures. Requires API billing.

**Custom API**
 Use any OpenAI-compatible API endpoint (Ollama, LM Studio, self-
hosted models, etc.).

#### Perfect For

 * WordPress developers who need to rapidly scaffold ACF field groups
 * WooCommerce stores needing complex product meta fields
 * Agencies building custom post type schemas
 * Theme developers building reusable field components

#### Key Features

 * **Multiple AI Providers** – Switch between 6 providers with one click
 * **3 Free Providers** – OpenRouter, Google Gemini, and NVIDIA NIM all offer free
   API access
 * **JSON Preview** – Review AI output before creating field groups
 * **Auto JSON Cleanup** – Strips markdown, handles malformed AI responses
 * **Secure** – Nonce verification, capability checks, input sanitisation
 * **Lightweight** – No React, no Vue, vanilla JavaScript only
 * **WordPress Native** – Built with WordPress Settings API and REST API
 * **ACF Pro Compatible** – Works with both free ACF and ACF Pro
 * **Mobile Responsive** – Full admin UI works on all screen sizes
 * **Full Documentation** – Built-in docs with step-by-step API key guides for all
   free providers

#### Requirements

 * WordPress 6.0 or higher
 * Advanced Custom Fields (ACF) or ACF Pro
 * PHP 7.4 or higher
 * API key from at least one supported AI provider (OpenRouter, Google Gemini, and
   NVIDIA NIM are all free!)

### External services

This plugin is an interface to third-party AI provider APIs. To turn the text prompt
you type into an ACF field group, it sends a request to the AI provider you select
on the Settings page.

What is sent, and when:

 * A request is made **only when you click “Generate”** (or otherwise trigger an
   AI generation). The plugin does not contact any external service on normal page
   loads.
 * Each request contains **only the prompt text you typed and the model name you
   selected**. No other site content, user information, or visitor data is transmitted.
 * You must enter your own API key for the chosen provider. Nothing is sent until
   a key is saved and you trigger a generation. API keys are stored in your site’s
   database (WordPress options) and are sent only to the matching provider to authenticate
   your request.

Depending on the provider you configure in Settings, data is sent to one of the 
following services, each governed by its own terms of use and privacy policy:

 * **OpenAI** — endpoint `api.openai.com`. See the [OpenAI Terms of Use](https://openai.com/policies/)
   and [Privacy Policy](https://openai.com/policies/privacy-policy/).
 * **OpenRouter** — endpoint `openrouter.ai`. See the [OpenRouter Terms](https://openrouter.ai/terms)
   and [Privacy Policy](https://openrouter.ai/privacy).
 * **Google Gemini (AI Studio)** — endpoint `generativelanguage.googleapis.com`.
   See the [Gemini API Terms](https://ai.google.dev/gemini-api/terms) and [Google Privacy Policy](https://policies.google.com/privacy).
 * **NVIDIA NIM** — endpoint `integrate.api.nvidia.com`. See the [NVIDIA Terms of Service](https://www.nvidia.com/en-us/about-nvidia/terms-of-service/)
   and [Privacy Policy](https://www.nvidia.com/en-us/about-nvidia/privacy-policy/).
 * **Anthropic (Claude)** — endpoint `api.anthropic.com`. See the [Anthropic Consumer Terms](https://www.anthropic.com/legal/consumer-terms)
   and [Privacy Policy](https://www.anthropic.com/legal/privacy).
 * **Custom API** — if you select the Custom API provider, requests are sent to 
   the OpenAI-compatible endpoint URL that you enter yourself. Review the terms 
   and privacy policy of whichever service that endpoint belongs to.

## Screenshots

[⌊Generate Fields page – describe the fields you need in plain English and click
Generate.⌉⌊Generate Fields page – describe the fields you need in plain English 
and click Generate.⌉[

Generate Fields page – describe the fields you need in plain English and click Generate.

[⌊JSON preview panel – review the AI-generated ACF field group before creating it.⌉⌊
JSON preview panel – review the AI-generated ACF field group before creating it.⌉[

JSON preview panel – review the AI-generated ACF field group before creating it.

[⌊Settings page – choose your AI provider and enter your API key.⌉⌊Settings page–
choose your AI provider and enter your API key.⌉[

Settings page – choose your AI provider and enter your API key.

[⌊Documentation page – built-in guides with step-by-step API key setup for every
provider.⌉⌊Documentation page – built-in guides with step-by-step API key setup 
for every provider.⌉[

Documentation page – built-in guides with step-by-step API key setup for every provider.

[⌊Field group created – the generated group is registered and visible under ACF 
Field Groups.⌉⌊Field group created – the generated group is registered and visible
under ACF Field Groups.⌉[

Field group created – the generated group is registered and visible under ACF Field
Groups.

## Installation

 1. Install and activate **Advanced Custom Fields (ACF)** or **ACF Pro**.
 2. Upload the `db-ai-field-generator` folder to `/wp-content/plugins/`.
 3. Activate the plugin through the **Plugins** menu.
 4. Navigate to **DB AI Field Generator  Settings** and enter your API key.
 5.  * For free access: Get an OpenRouter key at openrouter.ai/keys, a Gemini key at
       aistudio.google.com/app/apikey, or an NVIDIA key at build.nvidia.com
 6. Go to **DB AI Field Generator  Generate Fields** and start generating!

## FAQ

### Do I need to pay for AI?

No! Three providers are completely free:
 – **OpenRouter** – Dozens of free models,
no billing needed (sk-or-v1-… key) – **Google Gemini** – Free tier via Google AI
Studio, no credit card required (15–500 req/day depending on model) – **NVIDIA NIM**–
Free inference credits auto-added on signup (nvapi-… key)

### Which AI provider gives the best results?

For free usage: **Gemini Flash Latest** (Google AI Studio) or **Gemini 2.0 Flash
Experimental** (OpenRouter) give the best JSON output quality.
 For variety: **NVIDIA
NIM** lets you try 100+ frontier models for free. For paid usage: **GPT-4o Mini**(
best value) or **Claude 3.5 Sonnet** (most capable).

### Does this work with ACF Pro?

Yes! The plugin is compatible with both free ACF and ACF Pro. When ACF Pro is active,
field groups are created using the Pro import system.

### Can I generate repeater fields with sub-fields?

Absolutely. Just mention “repeater” in your prompt. Example: “Create a testimonials
repeater with name, company, photo, and quote fields.”

### Is my API key secure?

Yes. API keys are stored in WordPress options with password field masking, never
exposed in JavaScript, and transmitted only via server-side `wp_remote_post()` calls.

### What happens if the AI returns malformed JSON?

The plugin’s JSON validator automatically strips markdown code fences, extracts 
JSON blocks from text responses, and provides helpful error messages guiding you
to fix the issue.

### Can I use a custom/self-hosted AI?

Yes! Use the **Custom API** provider with any OpenAI-compatible endpoint (Ollama,
LM Studio, etc.).

### Which ACF field types are supported?

text, textarea, number, image, file, repeater, select, checkbox, true_false, url,
email, wysiwyg, relationship, gallery.

### How many free requests can I make per day?

It depends on the provider:
 – **OpenRouter**: ~50 requests/day per free model (
many free models available) – **Google Gemini 2.0 Flash**: 1,500 requests/day, 15
requests/minute – **Google Gemini 2.5 Flash**: 500 requests/day, 10 requests/minute–**
NVIDIA NIM**: ~40 requests/minute, free credits top up automatically

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“DB AI Field Generator for Advanced Custom Fields” is open source software. The 
following people have contributed to this plugin.

Contributors

 *   [ Deepak Bhojwani ](https://profiles.wordpress.org/deepakbhojwani/)

[Translate “DB AI Field Generator for Advanced Custom Fields” into your language.](https://translate.wordpress.org/projects/wp-plugins/db-ai-field-generator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/db-ai-field-generator/),
check out the [SVN repository](https://plugins.svn.wordpress.org/db-ai-field-generator/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/db-ai-field-generator/)
by [RSS](https://plugins.trac.wordpress.org/log/db-ai-field-generator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fixed: external services list now shows clickable Terms and Privacy links instead
   of plain-text URLs.
 * Fixed: screenshot caption rendering on the plugin page.
 * Removed: redundant “View details” plugin row link and custom plugin-information
   modal, now handled natively by WordPress.org.

#### 1.0.0

 * Initial release
 * OpenAI integration (GPT-4o Mini, GPT-4.1, GPT-4o)
 * OpenRouter integration with 50+ free models
 * Google Gemini integration (3.x, 2.5, 2.0) with free tier via Google AI Studio
 * NVIDIA NIM integration with 100+ models and free credits
 * Claude integration (Sonnet, Haiku)
 * Custom API support
 * JSON validation and auto-cleanup
 * ACF field group creation
 * Full documentation page with step-by-step API key guides for all free providers
 * Mobile-responsive admin UI

## Meta

 *  Version **1.0.1**
 *  Last updated **4 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [acf](https://wordpress.org/plugins/tags/acf/)[advanced custom fields](https://wordpress.org/plugins/tags/advanced-custom-fields/)
   [AI](https://wordpress.org/plugins/tags/ai/)[custom fields](https://wordpress.org/plugins/tags/custom-fields/)
 *  [Advanced View](https://wordpress.org/plugins/db-ai-field-generator/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/db-ai-field-generator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/db-ai-field-generator/reviews/)

## Contributors

 *   [ Deepak Bhojwani ](https://profiles.wordpress.org/deepakbhojwani/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/db-ai-field-generator/)