Title: MartinCV AI Blog Post
Author: MartinCV
Published: <strong>December 14, 2022</strong>
Last modified: November 3, 2026

---

Search plugins

![](https://ps.w.org/martincv-openai-blog-post/assets/banner-772x250.png?rev=2834084)

![](https://ps.w.org/martincv-openai-blog-post/assets/icon-256x256.png?rev=2834084)

# MartinCV AI Blog Post

 By [MartinCV](https://profiles.wordpress.org/martin7ba/)

[Download](https://downloads.wordpress.org/plugin/martincv-openai-blog-post.2.1.0.zip)

 * [Details](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/#installation)
 * [Development](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/#developers)

 [Support](https://wordpress.org/support/plugin/martincv-openai-blog-post/)

## Description

Type a post title, click **Generate Post**, and get a complete, well-structured 
blog post inserted straight into your editor — with AI-generated images saved to
your Media Library. Version 2.0 turns this plugin from an OpenAI-only tool into 
a **full multi-provider AI writing assistant**:

 * **OpenAI** — the GPT-6 family (GPT-6.1 Sol, GPT-6 Astra, GPT-6.1 Terra, GPT-6
   Luna) plus still-supported GPT-5.6, GPT-4.1 and GPT-4o models, with GPT Image
   2.5 and GPT Image 2 for images.
 * **Anthropic Claude** — Claude Opus 5.5, Sonnet 5.5, and Haiku 5.5, plus legacy
   Claude 5 and 4.x models.
 * **Perplexity** — the Agent API with real-time web search (Fast to High effort
   levels, or the Sonar model), with an optional **“Sources” section** built from
   real web citations.
 * **Google Gemini** — Gemini 3.8 Flash and Gemini 4 Argon for text, and the **Nano
   Banana** image family (Nano Banana 2, 2.1 and Pro) for stunning illustrations.

Works with the Block Editor (Gutenberg) and the Classic editor, on posts and pages.

#### ✍️ Writing, your way

 * Set the number of section headings, and choose whether to include an introduction
   and a conclusion — the post follows your structure exactly.
 * Pick a **default provider and model** once in Settings  AI Blog Post, then override
   either per post right from the editor sidebar.
 * If a post ever hits your token limit, you get a clear notice instead of a silently
   cut-off article.

#### 🖼️ Images that behave

 * Generate up to 4 images per post with Google Nano Banana or OpenAI.
 * Images are **saved to your Media Library** with proper alt text — no expiring
   external URLs, no broken posts a day later.
 * **Choose where images go:** spread between sections, at the beginning, after 
   the first paragraph, **after each heading**, at the end — or **pick the exact
   paragraph for each image** with the custom placement mode.
 * One click sets the first image as the **featured image**, correctly synced with
   the editor.

#### 🚀 Future-proof models

Model dropdowns are curated (latest + still-supported legacy models), and every 
provider also has a **Custom Model ID** field — when a provider ships a brand-new
model tomorrow, paste its ID and use it immediately. No plugin update required.

#### 🛠️ Built for developers

Clean provider abstraction with filters for everything: `martincv_openai_post_providers`(
register your own provider), `martincv_openai_post_models`, `martincv_openai_post_system_prompt`,`
martincv_openai_post_user_prompt`, `martincv_openai_post_image_prompt`, `martincv_openai_post_request_timeout`,
and `martincv_openai_post_post_types`.

## Screenshots

[⌊The Settings screen for the plugin.⌉⌊The Settings screen for the plugin.⌉[

The Settings screen for the plugin.

[⌊The AI options in the Add / Edit post screen.⌉⌊The AI options in the Add / Edit
post screen.⌉[

The AI options in the Add / Edit post screen.

[⌊Generated Post⌉⌊Generated Post⌉[

Generated Post

## Installation

#### Installing:

 1. Download the package.
 2. Extract it to the “plugins” folder of your WordPress directory.
 3. In the Admin Panel, go to “Plugins” and activate it.
 4. Go to Settings  AI Blog Post, add the API key(s) for the provider(s) you want, 
    and pick your defaults.

#### Upgrading from 1.x:

Your existing OpenAI API key and settings are migrated automatically the first time
you visit the admin after updating.

#### Uninstalling:

 1. In the Admin Panel, go to “Plugins”, deactivate the plugin and click “Delete”. 
    All plugin settings are removed on delete.

#### Usage:

Create a Post or Page and enter a title — the title is the topic. In the sidebar“
AI Blog Post” box pick a provider and model (or keep your defaults), set the structure
and image options, and click **Generate Post**. The content is inserted into the
editor as regular blocks (or classic-editor content), and generated images land 
in your Media Library.

If you need any additional help feel free to contact me at [martin@martincv.com](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/martin@martincv.com?output_format=md).

## FAQ

### Which API keys do I need?

Only the key(s) for the provider(s) you want to use. Each key field in Settings  
AI Blog Post links directly to that provider’s key page.

### I want to use a model that is not in the dropdown.

Enter its exact model ID in the “Custom Model ID” field — it overrides the dropdown.
This keeps the plugin working with models released after this version.

### Can I control where the generated images are placed?

Yes. Choose a placement in the editor sidebar: spread between sections, at the beginning,
after the first paragraph, after each heading, at the end — or “Custom”, which lets
you type the exact paragraph number for each image.

### The generation request times out. Why?

A full post is a single AI request that can take a minute or two depending on the
provider, model, and length. If your host enforces a short PHP/proxy timeout, lower
Max Tokens or use the `martincv_openai_post_request_timeout` filter.

### The text gets cut off before finishing.

The plugin will tell you when that happens — increase Max Tokens in Settings  AI
Blog Post (default 2048).

## Reviews

![](https://secure.gravatar.com/avatar/fca418a834057a4203c6856e316ca4d7c71fa1b9076977e08e5c4d5a9cc9aec6?
s=60&d=retro&r=g)

### 󠀁[Glad to see OpenAI here.](https://wordpress.org/support/topic/glad-to-see-openai-here/)󠁿

 [Terry L.](https://profiles.wordpress.org/terrylin/) December 16, 2022 1 reply

I haven't used this plugin yet. But I am glad to see the popular and mind-blowing
OpenAI can be used with WordPress.

![](https://secure.gravatar.com/avatar/31c2ca99e649c856c4623ace33abf3de6b8d23ef173f2db1f1354a4f2716911d?
s=60&d=retro&r=g)

### 󠀁[Works Great](https://wordpress.org/support/topic/works-great-8589/)󠁿

 [MartinCV](https://profiles.wordpress.org/martin7ba/) December 14, 2022

It generates the post along with image

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/)

## Contributors & Developers

“MartinCV AI Blog Post” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ MartinCV ](https://profiles.wordpress.org/martin7ba/)

[Translate “MartinCV AI Blog Post” into your language.](https://translate.wordpress.org/projects/wp-plugins/martincv-openai-blog-post)

### Interested in development?

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

## Changelog

#### 2.1.0

_Release Date – 3 November 2026_

 * Perplexity: moved to the **Agent API** (`POST /v1/agent`). Perplexity retired
   the Sonar chat-completions API on 27 September 2026, so the old `sonar` models
   stopped working. The Perplexity model dropdown now offers the Agent API effort
   levels (Fast, Low, Medium, High) and the direct `perplexity/sonar` model; saved
   Sonar selections are mapped automatically (sonar / sonar-pro  Fast, sonar-reasoning-
   pro  Low, sonar-deep-research  High). Web sources are still collected for the“
   Sources” section.
 * OpenAI: added the GPT-6 family — GPT-6.1 Sol (new default), GPT-6 Astra, GPT-
   6.1 Terra, GPT-6 Luna — and the GPT Image 2.5 models (Sunburst, Flare). Removed
   GPT-3.5 Turbo, GPT Image 1 and DALL-E 3, which OpenAI has shut down; saved selections
   are remapped to GPT-5.6 Terra, GPT Image 2.5 Flare and GPT Image 2.
 * Anthropic: added Claude Opus 5.5 (new default), Claude Sonnet 5.5 and Claude 
   Haiku 5.5.
 * Google Gemini: added Gemini 3.8 Flash (new default), Gemini 4 Argon, Gemini 3.5
   Flash Lite, Gemini 3.1 Pro (preview) and Nano Banana 2.1. Removed the deprecated
   Gemini 2.5 Pro / 2.5 Flash; saved selections are remapped to Gemini 3.8 Flash/
   3.5 Flash Lite.
 * Fixed: a request declined by OpenAI or Anthropic safety filters now shows the
   provider’s reason instead of a generic “empty response” error.
 * Compatibility: tested up to WordPress 7.1.4.

#### 2.0.0

_Release Date – 30 July 2026_

**Major update: one plugin, four AI providers**

 * New providers: **Anthropic Claude**, **Perplexity**, and **Google Gemini** join
   OpenAI.
 * Pick a default provider and model in Settings; override both per post in the 
   editor sidebar.
 * Curated model lists with the latest models (GPT-5.6, Claude Opus 5, Gemini 3.6,
   Sonar) plus still-supported legacy favorites (GPT-4o, GPT-4.1, GPT-3.5 Turbo,
   Claude 4.x), and a **Custom Model ID** field for anything newer.
 * **Image generation via Google Nano Banana** (Gemini image models) or OpenAI GPT
   Image 2 — images are saved to the Media Library with alt text instead of hotlinking
   expiring URLs.
 * **Image placement control**: spread between sections, at the beginning, after
   the first paragraph, after each heading, at the end, or a custom per-image paragraph
   position.
 * Option to set the first generated image as the **featured image**, properly synced
   with both editors.
 * **Perplexity citations**: optionally append a “Sources” section with real links.
 * **Truncation detection**: a clear notice when a post hits the Max Tokens limit;
   migrated 1.x limits are raised to a safe minimum.
 * Faster and more reliable: one AI request per post (previously three), cleaner
   content via native block conversion.
 * Fixed from 1.1: generated text was always empty (response parsed with the legacy
   completions shape); the Max Length setting was never applied; zero values (e.
   g. temperature 0) reset to defaults.
 * Security hardening: capability checks on generation, strict input sanitization,`
   manage_options` for the settings page, real HTTP status codes on errors.
 * Developer filters for providers, models, prompts, timeouts, and post types; settings
   are cleaned up on uninstall.

#### 1.1

 * Switched to gpt-3.5-turbo via Chat Completions.

#### 1.0

_Release Date – 14 December 2022_

 * Public release of ‘MartinCV OpenAi Post’

## Meta

 *  Version **2.1.0**
 *  Last updated **7 days ago**
 *  Active installations **10+**
 *  WordPress Version ** 5.9 or higher **
 *  Tested up to **7.1.4**
 *  PHP Version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/martincv-openai-blog-post/)
 * Tags
 * [AI](https://en-au.wordpress.org/plugins/tags/ai/)[Claude](https://en-au.wordpress.org/plugins/tags/claude/)
   [Gemini](https://en-au.wordpress.org/plugins/tags/gemini/)[openai](https://en-au.wordpress.org/plugins/tags/openai/)
   [post generator](https://en-au.wordpress.org/plugins/tags/post-generator/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/martincv-openai-blog-post/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/martincv-openai-blog-post/reviews/)

## Contributors

 *   [ MartinCV ](https://profiles.wordpress.org/martin7ba/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/martincv-openai-blog-post/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.martincv.com/whp-donate)