Element Based Editing
Element Based Editing is a technique for controlling AI-generated images through structured JSON formatting rather than relying solely on natural language prompts. By decomposing visual compositions into discrete, named elements and specifying their properties in JSON format, users can achieve more predictable and reproducible results when working with compatible AI image generation models. This approach treats image generation as a data-driven process, enabling precise control over individual components of a scene.
Core Method
The technique works by defining image elements—such as objects, figures, backgrounds, and lighting—as structured data entries with specified attributes like position, scale, color, style, and material properties. These elements are then passed to the AI model in JSON format, which interprets the data to generate images that more closely match the intended specifications. This contrasts with traditional text-prompt-based methods, where ambiguity in language can lead to inconsistent or unexpected results.
Practical Applications
Element Based Editing is particularly useful for iterative design workflows where consistency and precision are important, such as character design, environment creation, or architectural visualization. By maintaining element definitions as reusable JSON structures, users can modify specific properties without regenerating entire compositions, streamlining the creative process and reducing token usage in API-based systems.
Source Notes
- 2026-04-07: Nano Banana 2: The JSON Control Hack