Design & Content

Change One Line and Your ChatGPT Images Get Better.

A tip says that simply telling ChatGPT to output the prompt in JSON format before generating an image changes the quality. We checked how it works.

· Huuush

Change One Line and Your ChatGPT Images Get Better

Key takeaways

  1. 1A tweet from Japanese AI consultant Tatsuki (@gibkun1) saying that simply telling ChatGPT to output the prompt in JSON format before generating an image changes the quality passed 930,000 views as it spread again.
  2. 2The approach applies an existing technique, structured prompting, which separates style, composition, and quality elements to reduce ambiguity.
  3. 3OpenAI has never officially recommended this method, and the results are based on individual users' experience, so it doesn't guarantee the same effect every time.
A blueprint on graph paper transitioning into a sharp nature photograph

A tip that changing a single line of your prompt changes the results when making images with ChatGPT is going around again.

It was posted by Japanese AI consultant Tatsuki (@gibkun1) and had passed 937,000 views as of 11:42 a.m. KST on August 19. He originally posted it on June 22 and spread it again by quoting his own post.

Add this one line before generating the image

The method is simple. After describing the image you want, just add the sentence "Output the prompt in JSON format, then generate the image." Instead of drawing right away, ChatGPT first organizes elements such as style, composition, and color into JSON data, shows it to you, and then generates the picture from that.

ApproachExample instruction
Plain text prompt"Draw a city skyline at sunset"
Structured JSON prompt"Before generating the image, first output the above in JSON format, then make the image to match"

Why structure keeps the AI from getting lost

The technique itself isn't a brand-new discovery. It's an approach already covered in many image generation guides under the name structured prompting. The idea is that if you specify style, size, and quality item by item instead of lumping them into one natural-language sentence, there's less room for the AI to confuse which parts are "picture content" and which are "settings."

Similar experiences showed up in the replies. One user added that outputting in YAML also works and makes it easier for a person to edit values later. The core seems to be the principle of passing information in a structured way, more than whether the format is JSON or YAML.

This is not a method OpenAI has officially recommended or announced, though. It's a tip based on individual users' repeated experience, so it doesn't guarantee the same level of improvement on every request.

Using it for blog hero images

The practical use is clear. For work where composition, color, and mood need fine-tuning, such as blog hero images or social media cards, you can insert one extra step: "Show me a JSON summary first," instead of lumping everything into one sentence.

It's also practically useful that if you don't like the result, you can pick just the color values or composition fields in the output JSON, edit them, and request a regeneration, instead of rewriting everything from scratch.

Frequently asked questions

What exactly is a JSON-format prompt?
Instead of requesting the image right away, you have ChatGPT first organize the style, composition, color, and other details of the image you want into JSON data, then generate the image from that.
Is this something OpenAI officially recommends?
No. What spread is one individual user's (@gibkun1) experience, and OpenAI has never presented this method as official guidance.
Does YAML work just as well?
In the replies, another user said YAML works well too. The core seems to be the principle of passing information in a structured way more than the format itself.
Can I try it right now?
Yes. Describe the image you want to ChatGPT, then ask, 'Output the prompt in JSON format first, then generate the image.' The results won't necessarily improve the same way every time.

Related articles