Skip to main content
You can write a FLUX.2 prompt as JSON to organize subjects, styles, and composition in your application. Send it as a string in the prompt field. When to use JSON:
  • Production workflows requiring consistent structure
  • Automation and programmatic generation
  • Complex scenes with multiple subjects and relationships
  • When you need to iterate on specific elements independently
When natural language works better:
  • Quick iterations and exploration
  • Simple, single-subject scenes
  • When prompt length isn’t a concern
  • Creative workflows where flexibility matters
Choose the format that is easier to maintain in your workflow and compare results with your own prompts.

The Base Schema

Building a Prompt Step by Step

Build a product shot incrementally to see how each element contributes.

Step 1: Generating a coffee mug

Professional product shot of a single black coffee mug with steam

Step 1: Single matte black mug with steam

Step 2: Adding a second mug in a different color

Product shot with black and yellow coffee mugs

Step 2: Added a yellow mug to the composition

Step 3: Change the color of the steam

Product shot with black and yellow mugs, red steam rising from the black mug

Step 3: Changed the steam color to bright red

You can include the JSON directly in your prompt, or flatten it into natural language. FLUX.2 understands both formats.
For precise brand color matching with hex codes, see HEX Color Prompting.