DB AI Field Generator for Advanced Custom Fields

बिबरन

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:

Screenshots

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.
    • 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
  5. 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

समीक्षा

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

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