2x2 Grid Photo Generation with Identity Lock

A highly structured JSON prompt for Nano Banana Pro to create a 2x2 multi-panel grid of images featuring the same subject in a golden hour field setting. The prompt enforces strict identity lock, ensuring the face, hair, and outfit remain consistent across all four frames while changing the pose, shot type, and expression for each panel.

Prompt

{ "generation_request": { "meta_data": { "tool": "NanoBananaPro", "task_type": "photorealistic_multi_panel_grid", "version": "v1.0", "priority": "high" }, "output_settings": { "layout": { "type": "2x2_grid", "border": "thin_cream_gutter", "frame_consistency_rule": "same_person_same_outfit_same_field" }, "aspect_ratio": "4:5", "resolution": "ultra_high_res", "render_style": "analog_film_kodak_portra_400" }, "reference_constraints": { "character_reference_image": "UPLOAD_REF_IMAGE", "use_reference_face_only": true, "identity_lock": true, "strict_face_match": true, "preserve_facial_structure": true, "preserve_skin_tone": true, "preserve_hair": true, "no_face_mixing": true, "no_extra_people": true }, "global_prompt": { "scene": "Tall grass field during golden hour sunset. Warm lens flares, dust motes dancing in light. A checkered picnic blanket is visible. Dreamy, romantic, soft focus atmosphere.", "subject": { "type": "young adult woman", "identity": "same person as reference image", "hair": "loose waves with a silk ribbon tied in a half-up style", "makeup": "no-makeup makeup look, sun-kissed freckles, flushed cheeks", "outfit": "white linen milkmaid dress with puffy sleeves and corset detail, bare feet", "prop": "vintage hardcover book and a green apple" }, "camera": { "capture": "analog film", "lens_equivalent": "50mm", "focus": "soft focus", "depth_of_field": "medium" } }, "frames": [ { "frame_id": "A", "position": "top_left", "shot_type": "high_angle_looking_down", "pose": "Lying on back on the picnic blanket, holding the book above face to block the sun, hair spread out.", "expression": "playful, laughing" }, { "frame_id": "B", "position": "top_right", "shot_type": "seated_profile", "pose": "Sitting cross-legged, biting into the green apple, looking toward the sunset horizon.", "expression": "peaceful, content" }, { "frame_id": "C", "position": "bottom_left", "shot_type": "waist_up", "pose": "Walking through the tall grass, hands brushing the tops of the wheat, looking back at camera.", "expression": "inviting, candid" }, { "frame_id": "D", "position": "bottom_right", "shot_type": "macro_detail", "pose": "Close up on hands holding the open book, face slightly out of focus in background.", "expression": "focused reading" } ] } }

Runs on 18 models

  • Flux
  • Flux 2
  • Flux Kontext
  • GPT-4o Image
  • GPT Image
  • GPT Image 2
  • GPT Image 2.5
  • Grok Imagine
  • Ideogram V3
  • Imagen 4
  • Midjourney
  • Nano Banana
  • +6 more

What this prompt produces

Realistic Group Selfie with Smartphone Flash Effect Not specified nano-banana-pro
Four Seasons Portrait Collage Not specified nano-banana-pro
Minimalist Dog Sketch Clipart Not specified nano-banana-pro
Mecha Girl figure concept generated by Nano Banana Pro Not specified nano-banana-pro
Candid Flash Photography: Chaotic Holiday Party (Duplicate) Not specified nano-banana-pro
Ethereal Floral Studio Portrait Not specified nano-banana-pro

Run this prompt with the API

The request below sends this prompt, with its default values filled in, to the first model it runs on. Swap the model name for any other model listed above.

Prompt API docs
/api/v1/nano_banana/text_to_image
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-pro",
  "prompt": "{\n  \"generation_request\": {\n    \"meta_data\": {\n      \"tool\": \"NanoBananaPro\",\n      \"task_type\": \"photorealistic_multi_panel_grid\",\n      \"version\": \"v1.0\",\n      \"priority\": \"high\"\n    },\n    \"output_settings\": {\n      \"layout\": {\n        \"type\": \"2x2_grid\",\n        \"border\": \"thin_cream_gutter\",\n        \"frame_consistency_rule\": \"same_person_same_outfit_same_field\"\n      },\n      \"aspect_ratio\": \"4:5\",\n      \"resolution\": \"ultra_high_res\",\n      \"render_style\": \"analog_film_kodak_portra_400\"\n    },\n    \"reference_constraints\": {\n      \"character_reference_image\": \"UPLOAD_REF_IMAGE\",\n      \"use_reference_face_only\": true,\n      \"identity_lock\": true,\n      \"strict_face_match\": true,\n      \"preserve_facial_structure\": true,\n      \"preserve_skin_tone\": true,\n      \"preserve_hair\": true,\n      \"no_face_mixing\": true,\n      \"no_extra_people\": true\n    },\n    \"global_prompt\": {\n      \"scene\": \"Tall grass field during golden hour sunset. Warm lens flares, dust motes dancing in light. A checkered picnic blanket is visible. Dreamy, romantic, soft focus atmosphere.\",\n      \"subject\": {\n        \"type\": \"young adult woman\",\n        \"identity\": \"same person as reference image\",\n        \"hair\": \"loose waves with a silk ribbon tied in a half-up style\",\n        \"makeup\": \"no-makeup makeup look, sun-kissed freckles, flushed cheeks\",\n        \"outfit\": \"white linen milkmaid dress with puffy sleeves and corset detail, bare feet\",\n        \"prop\": \"vintage hardcover book and a green apple\"\n      },\n      \"camera\": {\n        \"capture\": \"analog film\",\n        \"lens_equivalent\": \"50mm\",\n        \"focus\": \"soft focus\",\n        \"depth_of_field\": \"medium\"\n      }\n    },\n    \"frames\": [\n      {\n        \"frame_id\": \"A\",\n        \"position\": \"top_left\",\n        \"shot_type\": \"high_angle_looking_down\",\n        \"pose\": \"Lying on back on the picnic blanket, holding the book above face to block the sun, hair spread out.\",\n        \"expression\": \"playful, laughing\"\n      },\n      {\n        \"frame_id\": \"B\",\n        \"position\": \"top_right\",\n        \"shot_type\": \"seated_profile\",\n        \"pose\": \"Sitting cross-legged, biting into the green apple, looking toward the sunset horizon.\",\n        \"expression\": \"peaceful, content\"\n      },\n      {\n        \"frame_id\": \"C\",\n        \"position\": \"bottom_left\",\n        \"shot_type\": \"waist_up\",\n        \"pose\": \"Walking through the tall grass, hands brushing the tops of the wheat, looking back at camera.\",\n        \"expression\": \"inviting, candid\"\n      },\n      {\n        \"frame_id\": \"D\",\n        \"position\": \"bottom_right\",\n        \"shot_type\": \"macro_detail\",\n        \"pose\": \"Close up on hands holding the open book, face slightly out of focus in background.\",\n        \"expression\": \"focused reading\"\n      }\n    ]\n  }\n}"
}
JSON

Try a prompt

Estimated: $0.04 / image

Sign in to generate with RunAPI.

Sign in to generate

Sign in to start generating with your available language models.