JSON prompts for AI images are often sold with a promise attached: write the brief as code and the model will follow it more exactly. This post checks that against what OpenAI and Google publish about their own image models, sets out which models ChatGPT and Gemini use now, and gives a template and three worked prompts you can adapt. The last part covers putting generated images on a website, which is where the SEO questions start. The wider subject is in the image and video SEO guide.
Which image models ChatGPT and Gemini use
Image generation in ChatGPT is now called ChatGPT Images 2.5. OpenAI's system card for it, dated 8 September 2026, names the two models behind it: GPT Image 2.5 Sunburst and GPT Image 2.5 Flare.1 In OpenAI's API, Sunburst is the choice where editing precision matters most and Flare is for fast everyday generation. OpenAI points new integrations to these two, documents GPT Image 2 as an earlier model, and shut the original GPT Image 1 down on 23 October 2026.2
Nano Banana is Google's name for Gemini's native image generation.3 In the Gemini app, Nano Banana 2 handles image requests when the Gemini model is set to Flash or Pro, Nano Banana 2 Lite is used on Flash-Lite, and anyone on a Google AI plan can redo an image with Nano Banana Pro when it needs more detail.4 The Gemini API lists a newer Nano Banana 2.1 as its main model for generation and editing, alongside Nano Banana 2 (Gemini 3.1 Flash Image), Nano Banana Pro (Gemini 3 Pro Image), Nano Banana 2 Lite and the original Nano Banana (Gemini 2.5 Flash Image), which Google now calls a legacy model.3
| Where you use it | Models | Notes |
|---|---|---|
| ChatGPT | GPT Image 2.5 Sunburst and Flare | Released as ChatGPT Images 2.5 in September 2026.1 |
| OpenAI API | gpt-image-2.5-sunburst, gpt-image-2.5-flare | Sunburst for precise edits, Flare for speed. GPT Image 1 was shut down on 23 October 2026.2 |
| Gemini app | Nano Banana 2, Nano Banana 2 Lite, Nano Banana Pro | Pro is on Google AI plans, for redoing an image with more detail.4 |
| Gemini API | Nano Banana 2.1 plus the models above | Every generated image carries a SynthID watermark.3 |
These names change often. The prompting advice below has stayed much the same in Google's guides from the first Nano Banana to Nano Banana 2, so it should outlast the version numbers.
Does JSON prompting work better?
A JSON prompt is a brief written as keys and values, such as "lighting": "soft daylight from a window on the left". You can paste one into ChatGPT or Gemini and get an image back. The real question is whether the format does anything that a well-written paragraph with the same details does not.
OpenAI answers it in its prompting guide for GPT Image 2.5. The guide says short prompts, descriptive paragraphs, JSON-like structures, instructions and tags can all express the same intent, and advises picking whichever format makes the requirements easiest to read and update, without relying on special syntax. For complex requests it suggests organising the prompt into scene, subject, details and constraints, as labelled sections.5 There is a second reason the braces may matter little. In OpenAI's API, when a chat model calls the image tool, it rewrites your prompt before the image model sees it, and the rewritten prompt in OpenAI's example is plain prose.2 OpenAI does not document whether ChatGPT does the same.
Google's guides lean further towards prose. A Google Developers Blog post on prompting the first Nano Banana told readers to describe the scene instead of listing keywords, and said a flowing description nearly always produces a more coherent image than a string of unconnected words.6 Google Cloud's guide to Nano Banana 2 and Nano Banana Pro, published in March 2026, says a simple keyword list is not enough and gives a formula: subject, action, location or context, composition, style. Its worked example labels each part in square brackets inside ordinary sentences.7 Neither guide mentions JSON, and nor does the prompting section of the Gemini API documentation.3
JSON does matter when a model was trained on it. Bria AI's FIBO is an open text-to-image model trained on long structured captions, each one a detailed JSON that breaks the image into fields, and its authors note that most existing models are trained to map short natural-language prompts to detailed images.8 None of the OpenAI or Google documentation I read describes anything like that for their image models.
The practitioner tests I found point the same way, with the caveat that they are small. Finn McKenty, writing on photographer Chase Jarvis's site in December 2025, ran a JSON prompt and the same description in prose twice each on Nano Banana Pro and concluded that the JSON was a placebo.9 Chris Green, after a few weeks of using JSON prompts (his examples were made with Flux.2), found they did not produce better images than a well-crafted natural-language prompt, though they made his prompts easier to reuse and adjust.10 Four images and one person's experience are anecdotes. They agree with what the platforms publish.
So treat JSON as a way of organising a brief, which is still worth something. Named fields stop you forgetting the framing or the words that must appear, and a saved prompt can be reused across a product range with one field changed. If your team prefers labelled lines in plain English, they do the same job, and that is what OpenAI's guide suggests for complex requests.5 I would use JSON where prompts are stored in a spreadsheet or a script, and labelled lines everywhere else.
A reusable JSON template for marketing images
The fields below come from what the two companies' guides ask for: what the image is for, the subject, setting, composition, light, style, exact text, reference images and, for edits, what must stay the same.53 Delete any field you do not need, but fill in the ones you keep. Models given sparse prompts tend to fill the missing details in arbitrarily.8
JSON image prompt template
Fill in the parts in brackets before you send it
In the Gemini app, Google suggests starting a request with a word such as draw, generate or create,4 which is why the template opens with a plain instruction above the JSON. Some fields need more care than others:
- use: Google says explaining what an image is for shapes the result, so a logo request that names the kind of brand does better than a bare request for a logo.3 Say where the image will sit and who will see it.
- text_in_image: put the exact words in quotes, say where they go and how they should look, and ask for no other text.5 Google adds that Gemini works best if you settle the wording in conversation first, then ask for the image with that text.3
- exclude: OpenAI recommends listing exclusions such as unwanted text, logos or watermarks.5 Google suggests describing what you want positively where you can, an empty street instead of a street with no cars.3 Do both: describe the scene you want, and keep the exclusion list short.
- aspect_ratio: in the APIs, size is a setting passed separately from the prompt.5 In the chat apps, write the ratio into the prompt unless the app gives you a control for it. Nano Banana 2 and Nano Banana Pro support ratios including 1:1, 4:5, 9:16, 16:9 and 21:9.7
- style: describe what you want to see. OpenAI's guide treats camera details such as a 50mm lens as cues for how the image should look, with no promise that the optics are simulated exactly.5
- references: number each image you attach and give it a role, such as subject, style or background, then say how they should combine.5
Worked prompts: a product shot, a blog header and an edit
The three prompts below are written for an invented business, Ashdown Candle Co., with placeholders where your own details go. Paste them into either app and adjust.
Product lifestyle shot from a real product photo
For product images, start from a photograph of the real product and make the prompt protect it. A generated product that drifts from the real one in shape, colour or label shows customers something you do not sell. OpenAI's guide says to give each attached image a role and to list what must be preserved,5 and Google's formula for prompts with references follows the same pattern: the references, how they relate, then the new scene.7
Product lifestyle shot (attach the real product photo)
Fill in the parts in brackets before you send it
Blog header image
A header image works best with no words in it. The title belongs in the HTML, and Google advises against an image with text as the preferred image you give it through og:image or schema.org markup, along with images that are extremely narrow or wide.11 Leave a quiet area so the image can sit beside a headline and survive cropping.
Blog header image
Fill in the parts in brackets before you send it
Editing an existing image
Edits go wrong when the prompt says what to change but not what to keep. OpenAI's guide advises telling the model to change only the named element and listing what to preserve. It warns that repeated edits can still alter details you meant to keep, and suggests compositing the approved edit back into the original where part of the image must stay pixel-identical.5 Google's inpainting template makes the same point: change only the named element and keep everything else exactly as it was, including the style, lighting and composition.6
Replace the background of a product photo
Fill in the parts in brackets before you send it
What to check by hand before you publish
Both companies publish limits worth turning into a checklist. OpenAI says its models can still struggle with precise text placement, with keeping recurring characters or brand elements consistent, and with placing elements exactly in layout-sensitive compositions.2 Google says its models will not always return the number of images you ask for.3
Using generated images on a website
A generated image goes through the same search systems as any other image, so the ordinary image SEO rules apply. The image and video SEO guide covers them in full. These are the parts that matter most for generated images.
File names and alt text
Rename every generated file before you upload it. Google says a file name gives it very light clues about an image's subject, and prefers short, descriptive names to generic ones such as image1.jpg.11 Alt text matters far more. Google calls it the most important attribute for giving it information about an image, reads it together with computer vision and the page's content, and warns that filling it with keywords can get a site treated as spam.11
Write the alt text from the finished image. The prompt describes what you asked for, and the image may differ from it. Google's guidance on generative AI content says AI output needs a manual check for accuracy before publishing, and names alt text among the metadata that check covers.13 If a header image only sets the mood and adds no information, it is decorative, and the W3C's alt decision tree says decorative images get an empty alt attribute.14
<!-- A meaningful image: descriptive file name and alt text -->
<img src="/images/fig-cedar-candle-oak-side-table.webp"
alt="Lit Fig and Cedar candle in an amber glass jar on an oak side table"
width="1600" height="2000">
<!-- A decorative header: empty alt, with a visible label -->
<figure>
<img src="/images/candle-workshop-pouring-wax.webp" alt="" width="1920" height="1080">
<figcaption>Image created with AI.</figcaption>
</figure>Provenance: C2PA Content Credentials and SynthID
Images from ChatGPT and from Google's image models can carry two kinds of provenance signal. The first is C2PA Content Credentials, the plain name for a C2PA manifest: a signed set of statements about where a file came from and what was done to it. The standard can bind those statements to the file with a cryptographic hash, or with a fingerprint or invisible watermark, and it is designed to make no judgement on whether a set of provenance data is good or bad, only whether its statements can be validated.15 The second is SynthID, Google DeepMind's invisible watermark.1
OpenAI says ChatGPT Images 2.5 keeps C2PA metadata and adds SynthID watermarking across ChatGPT, Codex and its API.1 Its verification tool checks for both, and its documentation is plain about the limits: editing, converting or sharing a file can remove the metadata, the watermark may survive some changes, and a negative result does not prove an image was made by a person.16 Google says every image from its Gemini image models carries a SynthID watermark,3 and its Cloud guide says images generated there include C2PA Content Credentials as well.7 In May 2026 Google began rolling out C2PA checks in the Gemini app, said they would reach Search and Chrome in the following months, and said OpenAI, Kakao and ElevenLabs were bringing SynthID to their own AI content.17
A third label sits in ordinary image metadata. The IPTC Digital Source Type vocabulary has one value for images created using generative AI, trainedAlgorithmicMedia, and another for images edited using generative AI, for example by inpainting or outpainting, compositeWithTrainedAlgorithmicMedia.18 Google's guidance for ecommerce sites says Merchant Center requires AI-generated images to carry the TrainedAlgorithmicMedia value.13 The ecommerce SEO guide covers the feed side.
The weak point is usually your own pipeline. Converting or editing a file can remove its C2PA metadata,16 and image optimisers, CMS uploads and CDNs can convert or recompress files on the way. Take one generated image through the whole route to the live page, download the file the site serves, and check what survived. I have seen no evidence that provenance data changes rankings. Keep it because it is honest, and because Merchant Center requires it for product images.
Labelling rules in the EU and the UK
In the EU, the AI Act's transparency obligations have applied since 2 August 2026. Providers of generative AI, such as OpenAI and Google, must mark outputs in a machine-readable format so they can be detected as artificially generated. Deployers must disclose deepfakes, content that would falsely appear to a person to be authentic or truthful. The Commission's code of practice on this is voluntary, but the obligations themselves are law.19 The Act defines a deployer as anyone using an AI system under their authority, except in a personal, non-professional activity, so on that definition a business publishing images it generated is one. It defines a deepfake as AI-generated or manipulated image, audio or video that resembles existing persons, objects, places, entities or events and would falsely appear authentic or truthful.20
On my reading, a stylised illustration does not meet that test. A photorealistic image of your premises, your staff or a customer event that never happened could, and that is the kind of image to label clearly for EU audiences.
The UK has no equivalent rule. The ASA said in May 2025 that there is no blanket legal requirement to disclose the use of AI in ads, and that the advertising codes apply however content is made. It also said disclosure alone is very unlikely to rescue a fundamentally misleading ad, with the example of an AI image showing a cosmetic effect the product does not deliver.12
The rule I would follow everywhere: label any generated image that could pass for a photograph of something real, with a short caption such as "Image created with AI", and never use a generated image to show what a product looks like or does unless it matches the real product. If you are weighing generated video as well, read whether AI video generation is worth paying for yet.
Common questions
01Can ChatGPT create an image from a JSON prompt?
02Do JSON prompts work better in Gemini and Nano Banana?
03Which model does ChatGPT use to create images?
04How can I tell whether an image was made with ChatGPT or Gemini?
05Do I have to label AI-generated images on my website?
Sources
- Platform docs11
- Regulator6
- Research1
- Practitioner2
- 01ChatGPT Images 2.5 System CardOpenAI (September 2026)Platform docs
- 02Image generationOpenAI API documentation (November 2026)Platform docs
- 03Nano Banana image generationGoogle AI Studio, Gemini API documentation (November 2026)Platform docs
- 04Generate & edit images with Gemini AppsGemini Apps Help (November 2026)Platform docs
- 05Image promptingOpenAI API documentation (November 2026)Platform docs
- 06How to prompt Gemini 2.5 Flash Image Generation for the best resultsGoogle Developers Blog (August 2025)Platform docs
- 07Ultimate prompting guide for Nano BananaGoogle Cloud Blog (March 2026)Platform docs
- 08Generating an Image From 1,000 Words: Enhancing Text-to-Image With Structured CaptionsarXiv (Gutflaish et al., Bria AI, November 2025)Research
- 09Does JSON Prompting Actually Work? Tested with Nano BananaChase Jarvis (Finn McKenty, December 2025)Practitioner
- 10JSON Prompting for Image GenerationDiffusion Doodles (Chris Green, April 2026)Practitioner
- 11Image SEO Best PracticesGoogle Search CentralPlatform docs
- 12Disclosure of AI in Advertising: Striking the Balance Between Creativity and ResponsibilityASA and CAP (May 2025)Regulator
- 13Google Search's guidance on using generative AI content on your websiteGoogle Search CentralPlatform docs
- 14An alt Decision TreeW3C Web Accessibility InitiativeRegulator
- 15Content Credentials: C2PA Technical Specification 2.3Coalition for Content Provenance and Authenticity (December 2025)Regulator
- 16Content provenanceOpenAI API documentation (November 2026)Platform docs
- 17Making it easier to understand how content was created and editedGoogle (May 2026)Platform docs
- 18Digital Source TypeIPTC NewsCodesRegulator
- 19Code of Practice on Transparency of AI-generated ContentEuropean Commission (updated October 2026)Regulator
- 20Article 3: DefinitionsEU AI Act, Regulation (EU) 2024/1689 (AI Act Explorer)Regulator
Written by Mani Bharij, SEO & AI Search Consultant in London. More on this subject in the Image and video SEO guide.