JSON Prompt Template for Camera and Lighting Control

A JSON template and an example prompt demonstrating how to specify professional camera controls (angle, focal length, depth of field) and lighting conditions (type, time of day, mood) in Nano Banana Pro to generate a tech-noir scene.

JSON Prompt Template for Camera and Lighting Control

Prompt

{ "scene": "AI engineer working at futuristic desk with multiple holographic displays", "camera": { "angle": "over-the-shoulder, slightly elevated", "focal_length": "50mm portrait lens", "depth_of_field": "shallow, subject in sharp focus, background slightly blurred" }, "lighting": { "type": "dramatic side lighting with blue accent lights", "time_of_day": "late night", "mood": "focused, tech-noir atmosphere", "shadows": "deep but not harsh" }, "color_grade": "cool tones, teal and orange color scheme" }

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\": \"AI engineer working at futuristic desk with multiple holographic displays\",\n  \"camera\": {\n    \"angle\": \"over-the-shoulder, slightly elevated\",\n    \"focal_length\": \"50mm portrait lens\",\n    \"depth_of_field\": \"shallow, subject in sharp focus, background slightly blurred\"\n  },\n  \"lighting\": {\n    \"type\": \"dramatic side lighting with blue accent lights\",\n    \"time_of_day\": \"late night\",\n    \"mood\": \"focused, tech-noir atmosphere\",\n    \"shadows\": \"deep but not harsh\"\n  },\n  \"color_grade\": \"cool tones, teal and orange color scheme\"\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.