Character Consistency Template and Example Prompt

A template and an example prompt demonstrating how to use JSON parameters in Nano Banana Pro to maintain character consistency across multiple images, specifically for a tech startup team brainstorming scene.

Character Consistency Template and Example Prompt

Prompt

{ "scene": "tech startup team brainstorming in modern office", "characters": [ { "character_id": 1, "description": "Asian female engineer, mid-20s, black hair in ponytail, wearing blue hoodie and glasses, confident expression", "consistency_priority": "high", "position": "center, gesturing at whiteboard" }, { "character_id": 2, "description": "Latino male developer, early-30s, beard, casual t-shirt, focused expression", "consistency_priority": "high", "position": "left side, typing on laptop" } ], "character_interactions": "collaborative and engaged, both focused on same project", "maintain_across_series": true }

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  \"scene\": \"tech startup team brainstorming in modern office\",\n  \"characters\": [\n    {\n      \"character_id\": 1,\n      \"description\": \"Asian female engineer, mid-20s, black hair in ponytail, wearing blue hoodie and glasses, confident expression\",\n      \"consistency_priority\": \"high\",\n      \"position\": \"center, gesturing at whiteboard\"\n    },\n    {\n      \"character_id\": 2,\n      \"description\": \"Latino male developer, early-30s, beard, casual t-shirt, focused expression\",\n      \"consistency_priority\": \"high\",\n      \"position\": \"left side, typing on laptop\"\n    }\n  ],\n  \"character_interactions\": \"collaborative and engaged, both focused on same project\",\n  \"maintain_across_series\": true\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.