Make WordPress Core

Opened 2 months ago

Last modified 6 hours ago

#64918 new defect (bug)

WP 7.0 Connectors: No models found that support image_generation

Reported by: ecairol's profile ecairol Owned by:
Milestone: 7.0.1 Priority: normal
Severity: normal Version: trunk
Component: AI Keywords: ai-client
Focuses: Cc:

Description

Immediately after generating an image with AI, the modal offers the option to Refine.

However, I keep getting the error No models found that support image_generation for this prompt. after trying to refine the image that was just generated.

Steps to Reproduce

  1. Go to Settings > Connectors and add a valid API key for OpenAI
  2. Create a New Post and add an Image Block
  3. Click on "Generate Image" and type in a prompt
  4. After the image is created, click on Refine Image
  5. Type in a prompt for the image refinement

Expected
The image should be updated.

Actual
The site throws an error saying there are no models that support image generation.

Attachments (1)

Screenshot 2026-03-20 at 1.30.21 PM.png (1.7 MB) - added by ecairol 2 months ago.

Download all attachments as: .zip

Change History (9)

#1 @JeffPaul
2 months ago

  • Keywords ai-client added

#2 @JeffPaul
2 months ago

  • Milestone changed from Awaiting Review to 7.0
  • Version set to trunk

This ticket was mentioned in Slack in #core by mukeshpanchal27. View the logs.


8 weeks ago

#4 @joedolson
8 weeks ago

  • Milestone changed from 7.0 to 7.0.1

#5 @JeffPaul
8 weeks ago

Similar to #64917, we should ensure there's better direction for a user on how to resolve this issue. Perhaps something as noted in https://core.trac.wordpress.org/ticket/64917#comment:5:

This requires an AI provider that supports <capability-name>, but none are active. Please go to the Connectors settings page and enable an appropriate provider.

Separately, this is something we've wrestled with in the AI plugin and whether we should disable feature/experiment availability if a corresponding provider+model-capability is not available. However if someone has this working as expected and then runs out of tokens/credits or there's an issue with a provider's API, then we run into the same problem. Curious for folks' input on most optimal way to handle for various scenarios here.

#6 @kapilpaul
8 weeks ago

When I am trying to generate an image it's giving me an error like this.

https://i.ibb.co/Lh1ZkZ7N/Screenshot-2026-03-24-at-9-49-16-PM.png

#7 @iamadisingh
7 weeks ago

After investigating, I think this is more likely a plugin capability/declaration issue. With Gemini image refinement works fine. With OpenAI, the error shown is "No models found that support image_generation for this prompt," that suggests this is likely a plugin capability-mapping issue. The current error, “No models found that support image_generation for this prompt,” is probably happening because OpenAI provider still advertises GPT image models with text-only input.

Last edited 7 weeks ago by iamadisingh (previous) (diff)

#8 @audrasjb
6 hours ago

Removing trunk version as this is not going to be shipped with WP 7.0 but in the next releases.

Note: See TracTickets for help on using tickets.