Skip to main content
    Back to Resources
    Prompts3 min read

    Last verified:

    The Nano Banana Prompt: Image-to-JSON for AI Image Generation

    Convert any image into a machine-readable JSON file that captures every visual detail. Perfect for recreating images in Nano Banana, Flux, DALL·E, and other generative AI engines.

    Get the full guide as a PDF

    Free

    Save it, print it, read it offline. It's yours.

    This prompt converts any image into an exhaustive, machine-readable JSON file that captures every discernible visual element, designed to recreate images with maximum fidelity inside generative-image engines like Nano Banana, Flux, DALL·E, and more.

    What It Does

    Feed this prompt an image, and it will produce a structured JSON that encodes:

    • Every visible object: position, dimensions, material, surface properties, color hex codes, lighting behavior
    • Background details: texture, patterns, lighting, depth of field
    • Composition data: symmetry type, rule of thirds alignment, spatial relationships
    • Text content: OCR extraction, font styles, alignment, color
    • Lighting analysis: shadow casting, highlight zones, translucency

    Why It Matters

    Most image-to-prompt workflows lose critical details. This prompt forces a three-pass analysis:

    1. Macro Sweep: Identify all major elements and overall composition
    2. Micro Sweep: Scan for fine details, textures, micro-patterns
    3. Relationship Sweep: Map connections between objects (e.g., "object A resting on object B")

    The result is a JSON so detailed that generative engines can reproduce the image with near-perfect accuracy.

    How to Use It

    1. Copy the full prompt from the PDF
    2. Paste it into ChatGPT, Claude, or Gemini along with your image
    3. Get your JSON output: a complete, structured breakdown of every visual element
    4. Feed the JSON into your image generator: Nano Banana, Flux, DALL·E, Midjourney, etc.

    Best For

    • Recreating reference images in different AI art engines
    • Building consistent visual styles across multiple generations
    • Creating detailed image specifications for design teams
    • Archiving visual compositions in machine-readable format

    Download the Full Prompt

    The complete prompt with all analysis protocols, object schemas, and output formatting is available in the PDF below.

    Want the complete version?

    This is a summary. The full guide goes deeper with more examples, frameworks, and prompts you can copy and paste.

    Download Full PDF (Free)

    Keep reading