Smartphone Screen Inpainting

A complex inpainting prompt designed to replace a phone screen content with a specific portrait while maintaining realistic lighting and reflection.

Prompt

{ "image_generation_prompt": { "task_type": "image_editing_inpainting", "base_image_context": { "scene_type": "indoor mirror selfie", "lighting": "bright, natural-looking indoor lighting, soft shadows", "background": "beige or cream-colored walls, modern interior, blurred doorway in the background" }, "subject_description": { "gender": "female", "hair": "blonde, shoulder-length, messy and tousled, falling casually across the face", "clothing": "strapless brown tube top featuring a white paisley bandana pattern", "accessories": "layered delicate gold necklaces, including one with a small heart pendant", "pose": "holding the camera/phone with the right hand, left hand lightly resting on the upper chest, face partially obscured by hair and the phone" }, "object_description": { "primary_object": "foldable smartphone (flip style) held in the folded position", "phone_case": "distinctive wavy green borders, pastel multi-colored checkered pattern featuring small white daisy flowers", "phone_accessories": "long, colorful beaded phone charm strap dangling from the bottom corner", "camera_module": "dual circular camera lenses visible at the top right of the phone's back panel" }, "edit_instructions": { "target_region": "the rectangular black external display screen located below the camera lenses on the folded phone", "action": "replace_content", "insertion_subject": "Elon Musk", "insertion_details": "A clear, high-resolution portrait of Elon Musk facing forward, wearing a dark suit and white collared shirt. ", "blending_requirements": "The portrait must perfectly fit the rectangular dimensions of the phone's external screen. The lighting and glare on the screen should make it look like the image is natively displayed on the device." }, "technical_parameters": { "style": "photorealistic, candid selfie aesthetic", "resolution": "high", "focus": "sharp focus on the phone case and the inserted portrait on the screen", "negative_prompt": "cartoon, animated, low resolution, blurry, warped screen, distorted facial features, poorly blended edges, text, watermarks, unrealistic lighting" } } }

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  \"image_generation_prompt\": {\n    \"task_type\": \"image_editing_inpainting\",\n    \"base_image_context\": {\n      \"scene_type\": \"indoor mirror selfie\",\n      \"lighting\": \"bright, natural-looking indoor lighting, soft shadows\",\n      \"background\": \"beige or cream-colored walls, modern interior, blurred doorway in the background\"\n    },\n    \"subject_description\": {\n      \"gender\": \"female\",\n      \"hair\": \"blonde, shoulder-length, messy and tousled, falling casually across the face\",\n      \"clothing\": \"strapless brown tube top featuring a white paisley bandana pattern\",\n      \"accessories\": \"layered delicate gold necklaces, including one with a small heart pendant\",\n      \"pose\": \"holding the camera/phone with the right hand, left hand lightly resting on the upper chest, face partially obscured by hair and the phone\"\n    },\n    \"object_description\": {\n      \"primary_object\": \"foldable smartphone (flip style) held in the folded position\",\n      \"phone_case\": \"distinctive wavy green borders, pastel multi-colored checkered pattern featuring small white daisy flowers\",\n      \"phone_accessories\": \"long, colorful beaded phone charm strap dangling from the bottom corner\",\n      \"camera_module\": \"dual circular camera lenses visible at the top right of the phone's back panel\"\n    },\n    \"edit_instructions\": {\n      \"target_region\": \"the rectangular black external display screen located below the camera lenses on the folded phone\",\n      \"action\": \"replace_content\",\n      \"insertion_subject\": \"Elon Musk\",\n      \"insertion_details\": \"A clear, high-resolution portrait of Elon Musk facing forward, wearing a dark suit and white collared shirt. \",\n      \"blending_requirements\": \"The portrait must perfectly fit the rectangular dimensions of the phone's external screen. The lighting and glare on the screen should make it look like the image is natively displayed on the device.\"\n    },\n    \"technical_parameters\": {\n      \"style\": \"photorealistic, candid selfie aesthetic\",\n      \"resolution\": \"high\",\n      \"focus\": \"sharp focus on the phone case and the inserted portrait on the screen\",\n      \"negative_prompt\": \"cartoon, animated, low resolution, blurry, warped screen, distorted facial features, poorly blended edges, text, watermarks, unrealistic lighting\"\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.