---
title: Detailed Image Analysis of a Mirror Selfie in a Bedroom Environment —  Prompt | RunAPI | RunAPI
description: Copy this RunAPI prompt, view agent setup steps, and use API code for .
url: https://runapi.ai/prompts/prm_qXYR1AkryXbwIbla87Gboxpd.md
canonical: https://runapi.ai/prompts/prm_qXYR1AkryXbwIbla87Gboxpd
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 13560
modality: image
endpoint: "/api/v1/runapi/text_to_image"
---

> HTML version: https://runapi.ai/prompts/prm_qXYR1AkryXbwIbla87Gboxpd
> Site index for agents: https://runapi.ai/llms.txt


# Detailed Image Analysis of a Mirror Selfie in a Bedroom Environment

Copy this RunAPI prompt, view agent setup steps, and use API code for .

**Prompts** · Image

## Prompt

```text
{
  "image_analysis": {
    "environment": {
      "type": "Indoor",
      "location_type": "Bedroom or Living Area",
      "spatial_depth": "Reflected depth via mirror",
      "background_elements": "Large black flat-screen TV (reflected), clean white walls, dark flooring or rug"
    },
    "camera_specs": {
      "lens_type": "Smartphone Main Camera (Wide)",
      "angle": "Eye-level, straight-on mirror reflection",
      "perspective": "Full body shot (cropped at knees)",
      "focus": "Sharp focus on the subject's body",
      "framing": "Vertical portrait within a circular frame (mirror)"
    },
    "lighting": {
      "condition": "Soft Daylight / Window Light",
      "sources": [
        {
          "source_id": 1,
          "type": "Natural Window Light",
          "direction": "From the left (subject's right side)",
          "color_temperature": "Cool/Neutral White",
          "intensity": "Moderate",
          "effect_on_subject": "Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition"
        }
      ],
      "shadows": "Soft, diffuse shadows defining the abdominal muscles and collarbones"
    },
    "subject_analysis": {
      "identity": "Young woman (Face obscured by phone)",
      "orientation": "Front-facing towards mirror",
      "emotional_state": "Confident, body-positive",
      "sensuality": "Moderate; highlights physique and fitness",
      "posture": {
        "general_definition": "Standing, 'Contrapposto' stance (weight on one leg)",
        "feet_placement": "Not visible (cropped out)",
        "hand_placement": "Left hand holding phone covering face, Right arm hanging naturally by side",
        "visible_extent": "From top of head to mid-thigh"
      },
      "head_details": {
        "hair": {
          "color": "Dark Brown",
          "style": "Long, loose, slightly wavy",
          "texture": "Silky",
          "interaction_with_face": "Falls over shoulders, framing the phone"
        },
        "face": {
          "definition": "Obscured by smartphone",
          "visible_features": "None explicitly visible"
        }
      },
      "body_details": {
        "body_type": "Slim / Athletic / Toned",
        "skin_tone": "Fair / Pale",
        "neck_area": {
          "visibility": "Visible, slender",
          "details": "Defined sternocleidomastoid muscles due to lighting"
        },
        "shoulder_area": {
          "shape": "Squared but delicate",
          "posture": "Relaxed"
        },
        "chest_area": {
          "ratio_to_body": "Proportionate",
          "visual_estimate": "Small to Medium",
          "bra_status": "Wearing sports bra/bralette",
          "nipple_visibility": "Concealed by padding/fabric",
          "shape": "Natural, lifted"
        },
        "midsection": {
          "belly_button": "Visible, vertical oval",
          "muscle_definition": "Visible '11' line abs (linea alba definition)",
          "ratio_to_chest": "Narrower",
          "ratio_to_hips": "Significantly tapered (Hourglass silhouette)"
        },
        "hip_area": {
          "ratio_to_waist": "Curved, wider than waist",
          "shape": "Rounded",
          "width": "Moderate"
        },
        "leg_area": {
          "thighs": "Smooth, slight gap visible",
          "knees": "Not visible"
        }
      },
      "attire": {
        "upper_body": {
          "item": "Bralette / Crop Top",
          "style": "Spaghetti straps, gathered/ruched front, scoop neck",
          "color": "Dark Olive Green",
          "fabric": "Cotton or synthetic blend, matte finish",
          "fit": "Tight / Skin-tight"
        },
        "lower_body": {
          "item": "Boy Shorts / Hot Pants",
          "style": "Wide ribbed waistband, short leg",
          "color": "Dark Olive Green (Matching set)",
          "fabric": "Ribbed knit texture",
          "fit": "Tight / Form-fitting"
        }
      },
      "accessories": {
        "jewelry": "Simple ring on left hand (phone hand)",
        "tech": "Smartphone with light pink/blush case"
      }
    },
    "objects_in_scene": [
      {
        "object": "Mirror",
        "description": "Large, circular wall mirror with a thin black frame",
        "role": "Framing device for the selfie",
        "ratio": "Dominates the composition"
      },
      {
        "object": "Television",
        "description": "Large flat screen, black, turned off",
        "position": "Reflected in background, behind subject",
        "role": "Background clutter/context"
      }
    ],
    "negative_prompts": [
      "face visible",
      "ugly",
      "fat",
      "morbid",
      "mutilated",
      "tranny",
      "trans",
      "trannsexual",
      "illustration",
      "cartoon",
      "anime",
      "painting",
      "drawing",
      "low quality",
      "jpeg artifacts",
      "grainy",
      "text",
      "watermark",
      "signature",
      "cluttered background",
      "bad lighting"
    ]
  }
}
```

<!-- prompt-detail-slot: generation-parameters -->
<!-- /prompt-detail-slot: generation-parameters -->

<!-- prompt-detail-slot: generate-cta -->

### Generate this prompt

| Model | Selected model |
|---|---|
| Estimated cost | Pricing pending |
| Endpoint | `/api/v1/runapi/text_to_image` |

[Sign in to generate](https://runapi.ai/login)

Your generated image will appear here
<!-- /prompt-detail-slot: generate-cta -->

<!-- prompt-detail-slot: prompt-breakdown -->

## Prompt Breakdown

### Subject

Detailed Image Analysis of a Mirror Selfie in a Bedroom Environment

### Atmosphere

fashion / Image

### Technical

Runapi / Text To Image / /api/v1/runapi/text_to_image

### Style

athletic, bralette, circular-mirror, mirror-selfie, olive-green, smartphone, window-light

<!-- /prompt-detail-slot: prompt-breakdown -->

<!-- prompt-detail-slot: supported-models -->
## Models That Support This Prompt

| Modality | Model | Price | Try |
|---|---|---|---|
| Image | Qwen 2/qwen-2-text-to-image | $0.04 / image | [Try](https://runapi.ai/models/qwen-2/text-to-image.md) |
| Image | Qwen 3/qwen-3-pro-text-to-image | $0.04-$0.08 / image | [Try](https://runapi.ai/models/qwen-3/pro-text-to-image.md) |
| Image | Qwen 3/qwen-3-text-to-image | $0.03 / image | [Try](https://runapi.ai/models/qwen-3/text-to-image.md) |
| Image | Qwen Image/qwen-image-text-to-image | $0.03 / image | [Try](https://runapi.ai/models/qwen-image/text-to-image.md) |
| Image | Wan/wan-2.7-image | $0.03 / image | [Try](https://runapi.ai/models/wan/2.7-image.md) |

<!-- /prompt-detail-slot: supported-models -->

## RUN DETAILS

| Field | Value |
|---|---|
| Modality | Image |
| Category | fashion |
| Tags | athletic, bralette, circular-mirror, mirror-selfie, olive-green, smartphone, window-light |

## Use with an agent

### Claude Code

1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. Restart Claude Code
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "environment": {
      "type": "Indoor",
      "location_type": "Bedroom or Living Area",
      "spatial_depth": "Reflected depth via mirror",
      "background_elements": "Large black flat-screen TV (reflected), clean white walls, dark flooring or rug"
    },
    "camera_specs": {
      "lens_type": "Smartphone Main Camera (Wide)",
      "angle": "Eye-level, straight-on mirror reflection",
      "perspective": "Full body shot (cropped at knees)",
      "focus": "Sharp focus on the subject's body",
      "framing": "Vertical portrait within a circular frame (mirror)"
    },
    "lighting": {
      "condition": "Soft Daylight / Window Light",
      "sources": [
        {
          "source_id": 1,
          "type": "Natural Window Light",
          "direction": "From the left (subject's right side)",
          "color_temperature": "Cool/Neutral White",
          "intensity": "Moderate",
          "effect_on_subject": "Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition"
        }
      ],
      "shadows": "Soft, diffuse shadows defining the abdominal muscles and collarbones"
    },
    "subject_analysis": {
      "identity": "Young woman (Face obscured by phone)",
      "orientation": "Front-facing towards mirror",
      "emotional_state": "Confident, body-positive",
      "sensuality": "Moderate; highlights physique and fitness",
      "posture": {
        "general_definition": "Standing, 'Contrapposto' stance (weight on one leg)",
        "feet_placement": "Not visible (cropped out)",
        "hand_placement": "Left hand holding phone covering face, Right arm hanging naturally by side",
        "visible_extent": "From top of head to mid-thigh"
      },
      "head_details": {
        "hair": {
          "color": "Dark Brown",
          "style": "Long, loose, slightly wavy",
          "texture": "Silky",
          "interaction_with_face": "Falls over shoulders, framing the phone"
        },
        "face": {
          "definition": "Obscured by smartphone",
          "visible_features": "None explicitly visible"
        }
      },
      "body_details": {
        "body_type": "Slim / Athletic / Toned",
        "skin_tone": "Fair / Pale",
        "neck_area": {
          "visibility": "Visible, slender",
          "details": "Defined sternocleidomastoid muscles due to lighting"
        },
        "shoulder_area": {
          "shape": "Squared but delicate",
          "posture": "Relaxed"
        },
        "chest_area": {
          "ratio_to_body": "Proportionate",
          "visual_estimate": "Small to Medium",
          "bra_status": "Wearing sports bra/bralette",
          "nipple_visibility": "Concealed by padding/fabric",
          "shape": "Natural, lifted"
        },
        "midsection": {
          "belly_button": "Visible, vertical oval",
          "muscle_definition": "Visible '11' line abs (linea alba definition)",
          "ratio_to_chest": "Narrower",
          "ratio_to_hips": "Significantly tapered (Hourglass silhouette)"
        },
        "hip_area": {
          "ratio_to_waist": "Curved, wider than waist",
          "shape": "Rounded",
          "width": "Moderate"
        },
        "leg_area": {
          "thighs": "Smooth, slight gap visible",
          "knees": "Not visible"
        }
      },
      "attire": {
        "upper_body": {
          "item": "Bralette / Crop Top",
          "style": "Spaghetti straps, gathered/ruched front, scoop neck",
          "color": "Dark Olive Green",
          "fabric": "Cotton or synthetic blend, matte finish",
          "fit": "Tight / Skin-tight"
        },
        "lower_body": {
          "item": "Boy Shorts / Hot Pants",
          "style": "Wide ribbed waistband, short leg",
          "color": "Dark Olive Green (Matching set)",
          "fabric": "Ribbed knit texture",
          "fit": "Tight / Form-fitting"
        }
      },
      "accessories": {
        "jewelry": "Simple ring on left hand (phone hand)",
        "tech": "Smartphone with light pink/blush case"
      }
    },
    "objects_in_scene": [
      {
        "object": "Mirror",
        "description": "Large, circular wall mirror with a thin black frame",
        "role": "Framing device for the selfie",
        "ratio": "Dominates the composition"
      },
      {
        "object": "Television",
        "description": "Large flat screen, black, turned off",
        "position": "Reflected in background, behind subject",
        "role": "Background clutter/context"
      }
    ],
    "negative_prompts": [
      "face visible",
      "ugly",
      "fat",
      "morbid",
      "mutilated",
      "tranny",
      "trans",
      "trannsexual",
      "illustration",
      "cartoon",
      "anime",
      "painting",
      "drawing",
      "low quality",
      "jpeg artifacts",
      "grainy",
      "text",
      "watermark",
      "signature",
      "cluttered background",
      "bad lighting"
    ]
  }
}"

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "environment": {
      "type": "Indoor",
      "location_type": "Bedroom or Living Area",
      "spatial_depth": "Reflected depth via mirror",
      "background_elements": "Large black flat-screen TV (reflected), clean white walls, dark flooring or rug"
    },
    "camera_specs": {
      "lens_type": "Smartphone Main Camera (Wide)",
      "angle": "Eye-level, straight-on mirror reflection",
      "perspective": "Full body shot (cropped at knees)",
      "focus": "Sharp focus on the subject's body",
      "framing": "Vertical portrait within a circular frame (mirror)"
    },
    "lighting": {
      "condition": "Soft Daylight / Window Light",
      "sources": [
        {
          "source_id": 1,
          "type": "Natural Window Light",
          "direction": "From the left (subject's right side)",
          "color_temperature": "Cool/Neutral White",
          "intensity": "Moderate",
          "effect_on_subject": "Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition"
        }
      ],
      "shadows": "Soft, diffuse shadows defining the abdominal muscles and collarbones"
    },
    "subject_analysis": {
      "identity": "Young woman (Face obscured by phone)",
      "orientation": "Front-facing towards mirror",
      "emotional_state": "Confident, body-positive",
      "sensuality": "Moderate; highlights physique and fitness",
      "posture": {
        "general_definition": "Standing, 'Contrapposto' stance (weight on one leg)",
        "feet_placement": "Not visible (cropped out)",
        "hand_placement": "Left hand holding phone covering face, Right arm hanging naturally by side",
        "visible_extent": "From top of head to mid-thigh"
      },
      "head_details": {
        "hair": {
          "color": "Dark Brown",
          "style": "Long, loose, slightly wavy",
          "texture": "Silky",
          "interaction_with_face": "Falls over shoulders, framing the phone"
        },
        "face": {
          "definition": "Obscured by smartphone",
          "visible_features": "None explicitly visible"
        }
      },
      "body_details": {
        "body_type": "Slim / Athletic / Toned",
        "skin_tone": "Fair / Pale",
        "neck_area": {
          "visibility": "Visible, slender",
          "details": "Defined sternocleidomastoid muscles due to lighting"
        },
        "shoulder_area": {
          "shape": "Squared but delicate",
          "posture": "Relaxed"
        },
        "chest_area": {
          "ratio_to_body": "Proportionate",
          "visual_estimate": "Small to Medium",
          "bra_status": "Wearing sports bra/bralette",
          "nipple_visibility": "Concealed by padding/fabric",
          "shape": "Natural, lifted"
        },
        "midsection": {
          "belly_button": "Visible, vertical oval",
          "muscle_definition": "Visible '11' line abs (linea alba definition)",
          "ratio_to_chest": "Narrower",
          "ratio_to_hips": "Significantly tapered (Hourglass silhouette)"
        },
        "hip_area": {
          "ratio_to_waist": "Curved, wider than waist",
          "shape": "Rounded",
          "width": "Moderate"
        },
        "leg_area": {
          "thighs": "Smooth, slight gap visible",
          "knees": "Not visible"
        }
      },
      "attire": {
        "upper_body": {
          "item": "Bralette / Crop Top",
          "style": "Spaghetti straps, gathered/ruched front, scoop neck",
          "color": "Dark Olive Green",
          "fabric": "Cotton or synthetic blend, matte finish",
          "fit": "Tight / Skin-tight"
        },
        "lower_body": {
          "item": "Boy Shorts / Hot Pants",
          "style": "Wide ribbed waistband, short leg",
          "color": "Dark Olive Green (Matching set)",
          "fabric": "Ribbed knit texture",
          "fit": "Tight / Form-fitting"
        }
      },
      "accessories": {
        "jewelry": "Simple ring on left hand (phone hand)",
        "tech": "Smartphone with light pink/blush case"
      }
    },
    "objects_in_scene": [
      {
        "object": "Mirror",
        "description": "Large, circular wall mirror with a thin black frame",
        "role": "Framing device for the selfie",
        "ratio": "Dominates the composition"
      },
      {
        "object": "Television",
        "description": "Large flat screen, black, turned off",
        "position": "Reflected in background, behind subject",
        "role": "Background clutter/context"
      }
    ],
    "negative_prompts": [
      "face visible",
      "ugly",
      "fat",
      "morbid",
      "mutilated",
      "tranny",
      "trans",
      "trannsexual",
      "illustration",
      "cartoon",
      "anime",
      "painting",
      "drawing",
      "low quality",
      "jpeg artifacts",
      "grainy",
      "text",
      "watermark",
      "signature",
      "cluttered background",
      "bad lighting"
    ]
  }
}"

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "environment": {
      "type": "Indoor",
      "location_type": "Bedroom or Living Area",
      "spatial_depth": "Reflected depth via mirror",
      "background_elements": "Large black flat-screen TV (reflected), clean white walls, dark flooring or rug"
    },
    "camera_specs": {
      "lens_type": "Smartphone Main Camera (Wide)",
      "angle": "Eye-level, straight-on mirror reflection",
      "perspective": "Full body shot (cropped at knees)",
      "focus": "Sharp focus on the subject's body",
      "framing": "Vertical portrait within a circular frame (mirror)"
    },
    "lighting": {
      "condition": "Soft Daylight / Window Light",
      "sources": [
        {
          "source_id": 1,
          "type": "Natural Window Light",
          "direction": "From the left (subject's right side)",
          "color_temperature": "Cool/Neutral White",
          "intensity": "Moderate",
          "effect_on_subject": "Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition"
        }
      ],
      "shadows": "Soft, diffuse shadows defining the abdominal muscles and collarbones"
    },
    "subject_analysis": {
      "identity": "Young woman (Face obscured by phone)",
      "orientation": "Front-facing towards mirror",
      "emotional_state": "Confident, body-positive",
      "sensuality": "Moderate; highlights physique and fitness",
      "posture": {
        "general_definition": "Standing, 'Contrapposto' stance (weight on one leg)",
        "feet_placement": "Not visible (cropped out)",
        "hand_placement": "Left hand holding phone covering face, Right arm hanging naturally by side",
        "visible_extent": "From top of head to mid-thigh"
      },
      "head_details": {
        "hair": {
          "color": "Dark Brown",
          "style": "Long, loose, slightly wavy",
          "texture": "Silky",
          "interaction_with_face": "Falls over shoulders, framing the phone"
        },
        "face": {
          "definition": "Obscured by smartphone",
          "visible_features": "None explicitly visible"
        }
      },
      "body_details": {
        "body_type": "Slim / Athletic / Toned",
        "skin_tone": "Fair / Pale",
        "neck_area": {
          "visibility": "Visible, slender",
          "details": "Defined sternocleidomastoid muscles due to lighting"
        },
        "shoulder_area": {
          "shape": "Squared but delicate",
          "posture": "Relaxed"
        },
        "chest_area": {
          "ratio_to_body": "Proportionate",
          "visual_estimate": "Small to Medium",
          "bra_status": "Wearing sports bra/bralette",
          "nipple_visibility": "Concealed by padding/fabric",
          "shape": "Natural, lifted"
        },
        "midsection": {
          "belly_button": "Visible, vertical oval",
          "muscle_definition": "Visible '11' line abs (linea alba definition)",
          "ratio_to_chest": "Narrower",
          "ratio_to_hips": "Significantly tapered (Hourglass silhouette)"
        },
        "hip_area": {
          "ratio_to_waist": "Curved, wider than waist",
          "shape": "Rounded",
          "width": "Moderate"
        },
        "leg_area": {
          "thighs": "Smooth, slight gap visible",
          "knees": "Not visible"
        }
      },
      "attire": {
        "upper_body": {
          "item": "Bralette / Crop Top",
          "style": "Spaghetti straps, gathered/ruched front, scoop neck",
          "color": "Dark Olive Green",
          "fabric": "Cotton or synthetic blend, matte finish",
          "fit": "Tight / Skin-tight"
        },
        "lower_body": {
          "item": "Boy Shorts / Hot Pants",
          "style": "Wide ribbed waistband, short leg",
          "color": "Dark Olive Green (Matching set)",
          "fabric": "Ribbed knit texture",
          "fit": "Tight / Form-fitting"
        }
      },
      "accessories": {
        "jewelry": "Simple ring on left hand (phone hand)",
        "tech": "Smartphone with light pink/blush case"
      }
    },
    "objects_in_scene": [
      {
        "object": "Mirror",
        "description": "Large, circular wall mirror with a thin black frame",
        "role": "Framing device for the selfie",
        "ratio": "Dominates the composition"
      },
      {
        "object": "Television",
        "description": "Large flat screen, black, turned off",
        "position": "Reflected in background, behind subject",
        "role": "Background clutter/context"
      }
    ],
    "negative_prompts": [
      "face visible",
      "ugly",
      "fat",
      "morbid",
      "mutilated",
      "tranny",
      "trans",
      "trannsexual",
      "illustration",
      "cartoon",
      "anime",
      "painting",
      "drawing",
      "low quality",
      "jpeg artifacts",
      "grainy",
      "text",
      "watermark",
      "signature",
      "cluttered background",
      "bad lighting"
    ]
  }
}"

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "environment": {
      "type": "Indoor",
      "location_type": "Bedroom or Living Area",
      "spatial_depth": "Reflected depth via mirror",
      "background_elements": "Large black flat-screen TV (reflected), clean white walls, dark flooring or rug"
    },
    "camera_specs": {
      "lens_type": "Smartphone Main Camera (Wide)",
      "angle": "Eye-level, straight-on mirror reflection",
      "perspective": "Full body shot (cropped at knees)",
      "focus": "Sharp focus on the subject's body",
      "framing": "Vertical portrait within a circular frame (mirror)"
    },
    "lighting": {
      "condition": "Soft Daylight / Window Light",
      "sources": [
        {
          "source_id": 1,
          "type": "Natural Window Light",
          "direction": "From the left (subject's right side)",
          "color_temperature": "Cool/Neutral White",
          "intensity": "Moderate",
          "effect_on_subject": "Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition"
        }
      ],
      "shadows": "Soft, diffuse shadows defining the abdominal muscles and collarbones"
    },
    "subject_analysis": {
      "identity": "Young woman (Face obscured by phone)",
      "orientation": "Front-facing towards mirror",
      "emotional_state": "Confident, body-positive",
      "sensuality": "Moderate; highlights physique and fitness",
      "posture": {
        "general_definition": "Standing, 'Contrapposto' stance (weight on one leg)",
        "feet_placement": "Not visible (cropped out)",
        "hand_placement": "Left hand holding phone covering face, Right arm hanging naturally by side",
        "visible_extent": "From top of head to mid-thigh"
      },
      "head_details": {
        "hair": {
          "color": "Dark Brown",
          "style": "Long, loose, slightly wavy",
          "texture": "Silky",
          "interaction_with_face": "Falls over shoulders, framing the phone"
        },
        "face": {
          "definition": "Obscured by smartphone",
          "visible_features": "None explicitly visible"
        }
      },
      "body_details": {
        "body_type": "Slim / Athletic / Toned",
        "skin_tone": "Fair / Pale",
        "neck_area": {
          "visibility": "Visible, slender",
          "details": "Defined sternocleidomastoid muscles due to lighting"
        },
        "shoulder_area": {
          "shape": "Squared but delicate",
          "posture": "Relaxed"
        },
        "chest_area": {
          "ratio_to_body": "Proportionate",
          "visual_estimate": "Small to Medium",
          "bra_status": "Wearing sports bra/bralette",
          "nipple_visibility": "Concealed by padding/fabric",
          "shape": "Natural, lifted"
        },
        "midsection": {
          "belly_button": "Visible, vertical oval",
          "muscle_definition": "Visible '11' line abs (linea alba definition)",
          "ratio_to_chest": "Narrower",
          "ratio_to_hips": "Significantly tapered (Hourglass silhouette)"
        },
        "hip_area": {
          "ratio_to_waist": "Curved, wider than waist",
          "shape": "Rounded",
          "width": "Moderate"
        },
        "leg_area": {
          "thighs": "Smooth, slight gap visible",
          "knees": "Not visible"
        }
      },
      "attire": {
        "upper_body": {
          "item": "Bralette / Crop Top",
          "style": "Spaghetti straps, gathered/ruched front, scoop neck",
          "color": "Dark Olive Green",
          "fabric": "Cotton or synthetic blend, matte finish",
          "fit": "Tight / Skin-tight"
        },
        "lower_body": {
          "item": "Boy Shorts / Hot Pants",
          "style": "Wide ribbed waistband, short leg",
          "color": "Dark Olive Green (Matching set)",
          "fabric": "Ribbed knit texture",
          "fit": "Tight / Form-fitting"
        }
      },
      "accessories": {
        "jewelry": "Simple ring on left hand (phone hand)",
        "tech": "Smartphone with light pink/blush case"
      }
    },
    "objects_in_scene": [
      {
        "object": "Mirror",
        "description": "Large, circular wall mirror with a thin black frame",
        "role": "Framing device for the selfie",
        "ratio": "Dominates the composition"
      },
      {
        "object": "Television",
        "description": "Large flat screen, black, turned off",
        "position": "Reflected in background, behind subject",
        "role": "Background clutter/context"
      }
    ],
    "negative_prompts": [
      "face visible",
      "ugly",
      "fat",
      "morbid",
      "mutilated",
      "tranny",
      "trans",
      "trannsexual",
      "illustration",
      "cartoon",
      "anime",
      "painting",
      "drawing",
      "low quality",
      "jpeg artifacts",
      "grainy",
      "text",
      "watermark",
      "signature",
      "cluttered background",
      "bad lighting"
    ]
  }
}"

<!-- api-example-tabs-slot -->

<!-- ## API examples -->
## Generate via API

### curl

```curl
curl -X POST https://runapi.ai/api/v1/runapi/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "prompt": "{\n  \"image_analysis\": {\n    \"environment\": {\n      \"type\": \"Indoor\",\n      \"location_type\": \"Bedroom or Living Area\",\n      \"spatial_depth\": \"Reflected depth via mirror\",\n      \"background_elements\": \"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\"\n    },\n    \"camera_specs\": {\n      \"lens_type\": \"Smartphone Main Camera (Wide)\",\n      \"angle\": \"Eye-level, straight-on mirror reflection\",\n      \"perspective\": \"Full body shot (cropped at knees)\",\n      \"focus\": \"Sharp focus on the subject's body\",\n      \"framing\": \"Vertical portrait within a circular frame (mirror)\"\n    },\n    \"lighting\": {\n      \"condition\": \"Soft Daylight / Window Light\",\n      \"sources\": [\n        {\n          \"source_id\": 1,\n          \"type\": \"Natural Window Light\",\n          \"direction\": \"From the left (subject's right side)\",\n          \"color_temperature\": \"Cool/Neutral White\",\n          \"intensity\": \"Moderate\",\n          \"effect_on_subject\": \"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\"\n        }\n      ],\n      \"shadows\": \"Soft, diffuse shadows defining the abdominal muscles and collarbones\"\n    },\n    \"subject_analysis\": {\n      \"identity\": \"Young woman (Face obscured by phone)\",\n      \"orientation\": \"Front-facing towards mirror\",\n      \"emotional_state\": \"Confident, body-positive\",\n      \"sensuality\": \"Moderate; highlights physique and fitness\",\n      \"posture\": {\n        \"general_definition\": \"Standing, 'Contrapposto' stance (weight on one leg)\",\n        \"feet_placement\": \"Not visible (cropped out)\",\n        \"hand_placement\": \"Left hand holding phone covering face, Right arm hanging naturally by side\",\n        \"visible_extent\": \"From top of head to mid-thigh\"\n      },\n      \"head_details\": {\n        \"hair\": {\n          \"color\": \"Dark Brown\",\n          \"style\": \"Long, loose, slightly wavy\",\n          \"texture\": \"Silky\",\n          \"interaction_with_face\": \"Falls over shoulders, framing the phone\"\n        },\n        \"face\": {\n          \"definition\": \"Obscured by smartphone\",\n          \"visible_features\": \"None explicitly visible\"\n        }\n      },\n      \"body_details\": {\n        \"body_type\": \"Slim / Athletic / Toned\",\n        \"skin_tone\": \"Fair / Pale\",\n        \"neck_area\": {\n          \"visibility\": \"Visible, slender\",\n          \"details\": \"Defined sternocleidomastoid muscles due to lighting\"\n        },\n        \"shoulder_area\": {\n          \"shape\": \"Squared but delicate\",\n          \"posture\": \"Relaxed\"\n        },\n        \"chest_area\": {\n          \"ratio_to_body\": \"Proportionate\",\n          \"visual_estimate\": \"Small to Medium\",\n          \"bra_status\": \"Wearing sports bra/bralette\",\n          \"nipple_visibility\": \"Concealed by padding/fabric\",\n          \"shape\": \"Natural, lifted\"\n        },\n        \"midsection\": {\n          \"belly_button\": \"Visible, vertical oval\",\n          \"muscle_definition\": \"Visible '11' line abs (linea alba definition)\",\n          \"ratio_to_chest\": \"Narrower\",\n          \"ratio_to_hips\": \"Significantly tapered (Hourglass silhouette)\"\n        },\n        \"hip_area\": {\n          \"ratio_to_waist\": \"Curved, wider than waist\",\n          \"shape\": \"Rounded\",\n          \"width\": \"Moderate\"\n        },\n        \"leg_area\": {\n          \"thighs\": \"Smooth, slight gap visible\",\n          \"knees\": \"Not visible\"\n        }\n      },\n      \"attire\": {\n        \"upper_body\": {\n          \"item\": \"Bralette / Crop Top\",\n          \"style\": \"Spaghetti straps, gathered/ruched front, scoop neck\",\n          \"color\": \"Dark Olive Green\",\n          \"fabric\": \"Cotton or synthetic blend, matte finish\",\n          \"fit\": \"Tight / Skin-tight\"\n        },\n        \"lower_body\": {\n          \"item\": \"Boy Shorts / Hot Pants\",\n          \"style\": \"Wide ribbed waistband, short leg\",\n          \"color\": \"Dark Olive Green (Matching set)\",\n          \"fabric\": \"Ribbed knit texture\",\n          \"fit\": \"Tight / Form-fitting\"\n        }\n      },\n      \"accessories\": {\n        \"jewelry\": \"Simple ring on left hand (phone hand)\",\n        \"tech\": \"Smartphone with light pink/blush case\"\n      }\n    },\n    \"objects_in_scene\": [\n      {\n        \"object\": \"Mirror\",\n        \"description\": \"Large, circular wall mirror with a thin black frame\",\n        \"role\": \"Framing device for the selfie\",\n        \"ratio\": \"Dominates the composition\"\n      },\n      {\n        \"object\": \"Television\",\n        \"description\": \"Large flat screen, black, turned off\",\n        \"position\": \"Reflected in background, behind subject\",\n        \"role\": \"Background clutter/context\"\n      }\n    ],\n    \"negative_prompts\": [\n      \"face visible\",\n      \"ugly\",\n      \"fat\",\n      \"morbid\",\n      \"mutilated\",\n      \"tranny\",\n      \"trans\",\n      \"trannsexual\",\n      \"illustration\",\n      \"cartoon\",\n      \"anime\",\n      \"painting\",\n      \"drawing\",\n      \"low quality\",\n      \"jpeg artifacts\",\n      \"grainy\",\n      \"text\",\n      \"watermark\",\n      \"signature\",\n      \"cluttered background\",\n      \"bad lighting\"\n    ]\n  }\n}"
}
JSON
```

### Node.js

```javascript
import { RunapiClient } from "@runapi.ai/runapi";

const client = new RunapiClient({
  apiKey: process.env.RUNAPI_API_KEY,
});

const result = await client.textToImage.run({
  "prompt": "{\n  \"image_analysis\": {\n    \"environment\": {\n      \"type\": \"Indoor\",\n      \"location_type\": \"Bedroom or Living Area\",\n      \"spatial_depth\": \"Reflected depth via mirror\",\n      \"background_elements\": \"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\"\n    },\n    \"camera_specs\": {\n      \"lens_type\": \"Smartphone Main Camera (Wide)\",\n      \"angle\": \"Eye-level, straight-on mirror reflection\",\n      \"perspective\": \"Full body shot (cropped at knees)\",\n      \"focus\": \"Sharp focus on the subject's body\",\n      \"framing\": \"Vertical portrait within a circular frame (mirror)\"\n    },\n    \"lighting\": {\n      \"condition\": \"Soft Daylight / Window Light\",\n      \"sources\": [\n        {\n          \"source_id\": 1,\n          \"type\": \"Natural Window Light\",\n          \"direction\": \"From the left (subject's right side)\",\n          \"color_temperature\": \"Cool/Neutral White\",\n          \"intensity\": \"Moderate\",\n          \"effect_on_subject\": \"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\"\n        }\n      ],\n      \"shadows\": \"Soft, diffuse shadows defining the abdominal muscles and collarbones\"\n    },\n    \"subject_analysis\": {\n      \"identity\": \"Young woman (Face obscured by phone)\",\n      \"orientation\": \"Front-facing towards mirror\",\n      \"emotional_state\": \"Confident, body-positive\",\n      \"sensuality\": \"Moderate; highlights physique and fitness\",\n      \"posture\": {\n        \"general_definition\": \"Standing, 'Contrapposto' stance (weight on one leg)\",\n        \"feet_placement\": \"Not visible (cropped out)\",\n        \"hand_placement\": \"Left hand holding phone covering face, Right arm hanging naturally by side\",\n        \"visible_extent\": \"From top of head to mid-thigh\"\n      },\n      \"head_details\": {\n        \"hair\": {\n          \"color\": \"Dark Brown\",\n          \"style\": \"Long, loose, slightly wavy\",\n          \"texture\": \"Silky\",\n          \"interaction_with_face\": \"Falls over shoulders, framing the phone\"\n        },\n        \"face\": {\n          \"definition\": \"Obscured by smartphone\",\n          \"visible_features\": \"None explicitly visible\"\n        }\n      },\n      \"body_details\": {\n        \"body_type\": \"Slim / Athletic / Toned\",\n        \"skin_tone\": \"Fair / Pale\",\n        \"neck_area\": {\n          \"visibility\": \"Visible, slender\",\n          \"details\": \"Defined sternocleidomastoid muscles due to lighting\"\n        },\n        \"shoulder_area\": {\n          \"shape\": \"Squared but delicate\",\n          \"posture\": \"Relaxed\"\n        },\n        \"chest_area\": {\n          \"ratio_to_body\": \"Proportionate\",\n          \"visual_estimate\": \"Small to Medium\",\n          \"bra_status\": \"Wearing sports bra/bralette\",\n          \"nipple_visibility\": \"Concealed by padding/fabric\",\n          \"shape\": \"Natural, lifted\"\n        },\n        \"midsection\": {\n          \"belly_button\": \"Visible, vertical oval\",\n          \"muscle_definition\": \"Visible '11' line abs (linea alba definition)\",\n          \"ratio_to_chest\": \"Narrower\",\n          \"ratio_to_hips\": \"Significantly tapered (Hourglass silhouette)\"\n        },\n        \"hip_area\": {\n          \"ratio_to_waist\": \"Curved, wider than waist\",\n          \"shape\": \"Rounded\",\n          \"width\": \"Moderate\"\n        },\n        \"leg_area\": {\n          \"thighs\": \"Smooth, slight gap visible\",\n          \"knees\": \"Not visible\"\n        }\n      },\n      \"attire\": {\n        \"upper_body\": {\n          \"item\": \"Bralette / Crop Top\",\n          \"style\": \"Spaghetti straps, gathered/ruched front, scoop neck\",\n          \"color\": \"Dark Olive Green\",\n          \"fabric\": \"Cotton or synthetic blend, matte finish\",\n          \"fit\": \"Tight / Skin-tight\"\n        },\n        \"lower_body\": {\n          \"item\": \"Boy Shorts / Hot Pants\",\n          \"style\": \"Wide ribbed waistband, short leg\",\n          \"color\": \"Dark Olive Green (Matching set)\",\n          \"fabric\": \"Ribbed knit texture\",\n          \"fit\": \"Tight / Form-fitting\"\n        }\n      },\n      \"accessories\": {\n        \"jewelry\": \"Simple ring on left hand (phone hand)\",\n        \"tech\": \"Smartphone with light pink/blush case\"\n      }\n    },\n    \"objects_in_scene\": [\n      {\n        \"object\": \"Mirror\",\n        \"description\": \"Large, circular wall mirror with a thin black frame\",\n        \"role\": \"Framing device for the selfie\",\n        \"ratio\": \"Dominates the composition\"\n      },\n      {\n        \"object\": \"Television\",\n        \"description\": \"Large flat screen, black, turned off\",\n        \"position\": \"Reflected in background, behind subject\",\n        \"role\": \"Background clutter/context\"\n      }\n    ],\n    \"negative_prompts\": [\n      \"face visible\",\n      \"ugly\",\n      \"fat\",\n      \"morbid\",\n      \"mutilated\",\n      \"tranny\",\n      \"trans\",\n      \"trannsexual\",\n      \"illustration\",\n      \"cartoon\",\n      \"anime\",\n      \"painting\",\n      \"drawing\",\n      \"low quality\",\n      \"jpeg artifacts\",\n      \"grainy\",\n      \"text\",\n      \"watermark\",\n      \"signature\",\n      \"cluttered background\",\n      \"bad lighting\"\n    ]\n  }\n}"
});
console.log(result.id);
```

### Python

```python
import json
import os
import requests

response = requests.post(
    "https://runapi.ai/api/v1/runapi/text_to_image",
    headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
    json=json.loads("{\n  \"prompt\": \"{\\n  \\\"image_analysis\\\": {\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"Indoor\\\",\\n      \\\"location_type\\\": \\\"Bedroom or Living Area\\\",\\n      \\\"spatial_depth\\\": \\\"Reflected depth via mirror\\\",\\n      \\\"background_elements\\\": \\\"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\\\"\\n    },\\n    \\\"camera_specs\\\": {\\n      \\\"lens_type\\\": \\\"Smartphone Main Camera (Wide)\\\",\\n      \\\"angle\\\": \\\"Eye-level, straight-on mirror reflection\\\",\\n      \\\"perspective\\\": \\\"Full body shot (cropped at knees)\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the subject's body\\\",\\n      \\\"framing\\\": \\\"Vertical portrait within a circular frame (mirror)\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"condition\\\": \\\"Soft Daylight / Window Light\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"source_id\\\": 1,\\n          \\\"type\\\": \\\"Natural Window Light\\\",\\n          \\\"direction\\\": \\\"From the left (subject's right side)\\\",\\n          \\\"color_temperature\\\": \\\"Cool/Neutral White\\\",\\n          \\\"intensity\\\": \\\"Moderate\\\",\\n          \\\"effect_on_subject\\\": \\\"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\\\"\\n        }\\n      ],\\n      \\\"shadows\\\": \\\"Soft, diffuse shadows defining the abdominal muscles and collarbones\\\"\\n    },\\n    \\\"subject_analysis\\\": {\\n      \\\"identity\\\": \\\"Young woman (Face obscured by phone)\\\",\\n      \\\"orientation\\\": \\\"Front-facing towards mirror\\\",\\n      \\\"emotional_state\\\": \\\"Confident, body-positive\\\",\\n      \\\"sensuality\\\": \\\"Moderate; highlights physique and fitness\\\",\\n      \\\"posture\\\": {\\n        \\\"general_definition\\\": \\\"Standing, 'Contrapposto' stance (weight on one leg)\\\",\\n        \\\"feet_placement\\\": \\\"Not visible (cropped out)\\\",\\n        \\\"hand_placement\\\": \\\"Left hand holding phone covering face, Right arm hanging naturally by side\\\",\\n        \\\"visible_extent\\\": \\\"From top of head to mid-thigh\\\"\\n      },\\n      \\\"head_details\\\": {\\n        \\\"hair\\\": {\\n          \\\"color\\\": \\\"Dark Brown\\\",\\n          \\\"style\\\": \\\"Long, loose, slightly wavy\\\",\\n          \\\"texture\\\": \\\"Silky\\\",\\n          \\\"interaction_with_face\\\": \\\"Falls over shoulders, framing the phone\\\"\\n        },\\n        \\\"face\\\": {\\n          \\\"definition\\\": \\\"Obscured by smartphone\\\",\\n          \\\"visible_features\\\": \\\"None explicitly visible\\\"\\n        }\\n      },\\n      \\\"body_details\\\": {\\n        \\\"body_type\\\": \\\"Slim / Athletic / Toned\\\",\\n        \\\"skin_tone\\\": \\\"Fair / Pale\\\",\\n        \\\"neck_area\\\": {\\n          \\\"visibility\\\": \\\"Visible, slender\\\",\\n          \\\"details\\\": \\\"Defined sternocleidomastoid muscles due to lighting\\\"\\n        },\\n        \\\"shoulder_area\\\": {\\n          \\\"shape\\\": \\\"Squared but delicate\\\",\\n          \\\"posture\\\": \\\"Relaxed\\\"\\n        },\\n        \\\"chest_area\\\": {\\n          \\\"ratio_to_body\\\": \\\"Proportionate\\\",\\n          \\\"visual_estimate\\\": \\\"Small to Medium\\\",\\n          \\\"bra_status\\\": \\\"Wearing sports bra/bralette\\\",\\n          \\\"nipple_visibility\\\": \\\"Concealed by padding/fabric\\\",\\n          \\\"shape\\\": \\\"Natural, lifted\\\"\\n        },\\n        \\\"midsection\\\": {\\n          \\\"belly_button\\\": \\\"Visible, vertical oval\\\",\\n          \\\"muscle_definition\\\": \\\"Visible '11' line abs (linea alba definition)\\\",\\n          \\\"ratio_to_chest\\\": \\\"Narrower\\\",\\n          \\\"ratio_to_hips\\\": \\\"Significantly tapered (Hourglass silhouette)\\\"\\n        },\\n        \\\"hip_area\\\": {\\n          \\\"ratio_to_waist\\\": \\\"Curved, wider than waist\\\",\\n          \\\"shape\\\": \\\"Rounded\\\",\\n          \\\"width\\\": \\\"Moderate\\\"\\n        },\\n        \\\"leg_area\\\": {\\n          \\\"thighs\\\": \\\"Smooth, slight gap visible\\\",\\n          \\\"knees\\\": \\\"Not visible\\\"\\n        }\\n      },\\n      \\\"attire\\\": {\\n        \\\"upper_body\\\": {\\n          \\\"item\\\": \\\"Bralette / Crop Top\\\",\\n          \\\"style\\\": \\\"Spaghetti straps, gathered/ruched front, scoop neck\\\",\\n          \\\"color\\\": \\\"Dark Olive Green\\\",\\n          \\\"fabric\\\": \\\"Cotton or synthetic blend, matte finish\\\",\\n          \\\"fit\\\": \\\"Tight / Skin-tight\\\"\\n        },\\n        \\\"lower_body\\\": {\\n          \\\"item\\\": \\\"Boy Shorts / Hot Pants\\\",\\n          \\\"style\\\": \\\"Wide ribbed waistband, short leg\\\",\\n          \\\"color\\\": \\\"Dark Olive Green (Matching set)\\\",\\n          \\\"fabric\\\": \\\"Ribbed knit texture\\\",\\n          \\\"fit\\\": \\\"Tight / Form-fitting\\\"\\n        }\\n      },\\n      \\\"accessories\\\": {\\n        \\\"jewelry\\\": \\\"Simple ring on left hand (phone hand)\\\",\\n        \\\"tech\\\": \\\"Smartphone with light pink/blush case\\\"\\n      }\\n    },\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"Mirror\\\",\\n        \\\"description\\\": \\\"Large, circular wall mirror with a thin black frame\\\",\\n        \\\"role\\\": \\\"Framing device for the selfie\\\",\\n        \\\"ratio\\\": \\\"Dominates the composition\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"Television\\\",\\n        \\\"description\\\": \\\"Large flat screen, black, turned off\\\",\\n        \\\"position\\\": \\\"Reflected in background, behind subject\\\",\\n        \\\"role\\\": \\\"Background clutter/context\\\"\\n      }\\n    ],\\n    \\\"negative_prompts\\\": [\\n      \\\"face visible\\\",\\n      \\\"ugly\\\",\\n      \\\"fat\\\",\\n      \\\"morbid\\\",\\n      \\\"mutilated\\\",\\n      \\\"tranny\\\",\\n      \\\"trans\\\",\\n      \\\"trannsexual\\\",\\n      \\\"illustration\\\",\\n      \\\"cartoon\\\",\\n      \\\"anime\\\",\\n      \\\"painting\\\",\\n      \\\"drawing\\\",\\n      \\\"low quality\\\",\\n      \\\"jpeg artifacts\\\",\\n      \\\"grainy\\\",\\n      \\\"text\\\",\\n      \\\"watermark\\\",\\n      \\\"signature\\\",\\n      \\\"cluttered background\\\",\\n      \\\"bad lighting\\\"\\n    ]\\n  }\\n}\"\n}")
)
response.raise_for_status()
print(response.json()["id"])
```

### PHP

```php
<?php

$ch = curl_init("https://runapi.ai/api/v1/runapi/text_to_image");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("RUNAPI_API_KEY"),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => "{\n  \"prompt\": \"{\\n  \\\"image_analysis\\\": {\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"Indoor\\\",\\n      \\\"location_type\\\": \\\"Bedroom or Living Area\\\",\\n      \\\"spatial_depth\\\": \\\"Reflected depth via mirror\\\",\\n      \\\"background_elements\\\": \\\"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\\\"\\n    },\\n    \\\"camera_specs\\\": {\\n      \\\"lens_type\\\": \\\"Smartphone Main Camera (Wide)\\\",\\n      \\\"angle\\\": \\\"Eye-level, straight-on mirror reflection\\\",\\n      \\\"perspective\\\": \\\"Full body shot (cropped at knees)\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the subject's body\\\",\\n      \\\"framing\\\": \\\"Vertical portrait within a circular frame (mirror)\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"condition\\\": \\\"Soft Daylight / Window Light\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"source_id\\\": 1,\\n          \\\"type\\\": \\\"Natural Window Light\\\",\\n          \\\"direction\\\": \\\"From the left (subject's right side)\\\",\\n          \\\"color_temperature\\\": \\\"Cool/Neutral White\\\",\\n          \\\"intensity\\\": \\\"Moderate\\\",\\n          \\\"effect_on_subject\\\": \\\"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\\\"\\n        }\\n      ],\\n      \\\"shadows\\\": \\\"Soft, diffuse shadows defining the abdominal muscles and collarbones\\\"\\n    },\\n    \\\"subject_analysis\\\": {\\n      \\\"identity\\\": \\\"Young woman (Face obscured by phone)\\\",\\n      \\\"orientation\\\": \\\"Front-facing towards mirror\\\",\\n      \\\"emotional_state\\\": \\\"Confident, body-positive\\\",\\n      \\\"sensuality\\\": \\\"Moderate; highlights physique and fitness\\\",\\n      \\\"posture\\\": {\\n        \\\"general_definition\\\": \\\"Standing, 'Contrapposto' stance (weight on one leg)\\\",\\n        \\\"feet_placement\\\": \\\"Not visible (cropped out)\\\",\\n        \\\"hand_placement\\\": \\\"Left hand holding phone covering face, Right arm hanging naturally by side\\\",\\n        \\\"visible_extent\\\": \\\"From top of head to mid-thigh\\\"\\n      },\\n      \\\"head_details\\\": {\\n        \\\"hair\\\": {\\n          \\\"color\\\": \\\"Dark Brown\\\",\\n          \\\"style\\\": \\\"Long, loose, slightly wavy\\\",\\n          \\\"texture\\\": \\\"Silky\\\",\\n          \\\"interaction_with_face\\\": \\\"Falls over shoulders, framing the phone\\\"\\n        },\\n        \\\"face\\\": {\\n          \\\"definition\\\": \\\"Obscured by smartphone\\\",\\n          \\\"visible_features\\\": \\\"None explicitly visible\\\"\\n        }\\n      },\\n      \\\"body_details\\\": {\\n        \\\"body_type\\\": \\\"Slim / Athletic / Toned\\\",\\n        \\\"skin_tone\\\": \\\"Fair / Pale\\\",\\n        \\\"neck_area\\\": {\\n          \\\"visibility\\\": \\\"Visible, slender\\\",\\n          \\\"details\\\": \\\"Defined sternocleidomastoid muscles due to lighting\\\"\\n        },\\n        \\\"shoulder_area\\\": {\\n          \\\"shape\\\": \\\"Squared but delicate\\\",\\n          \\\"posture\\\": \\\"Relaxed\\\"\\n        },\\n        \\\"chest_area\\\": {\\n          \\\"ratio_to_body\\\": \\\"Proportionate\\\",\\n          \\\"visual_estimate\\\": \\\"Small to Medium\\\",\\n          \\\"bra_status\\\": \\\"Wearing sports bra/bralette\\\",\\n          \\\"nipple_visibility\\\": \\\"Concealed by padding/fabric\\\",\\n          \\\"shape\\\": \\\"Natural, lifted\\\"\\n        },\\n        \\\"midsection\\\": {\\n          \\\"belly_button\\\": \\\"Visible, vertical oval\\\",\\n          \\\"muscle_definition\\\": \\\"Visible '11' line abs (linea alba definition)\\\",\\n          \\\"ratio_to_chest\\\": \\\"Narrower\\\",\\n          \\\"ratio_to_hips\\\": \\\"Significantly tapered (Hourglass silhouette)\\\"\\n        },\\n        \\\"hip_area\\\": {\\n          \\\"ratio_to_waist\\\": \\\"Curved, wider than waist\\\",\\n          \\\"shape\\\": \\\"Rounded\\\",\\n          \\\"width\\\": \\\"Moderate\\\"\\n        },\\n        \\\"leg_area\\\": {\\n          \\\"thighs\\\": \\\"Smooth, slight gap visible\\\",\\n          \\\"knees\\\": \\\"Not visible\\\"\\n        }\\n      },\\n      \\\"attire\\\": {\\n        \\\"upper_body\\\": {\\n          \\\"item\\\": \\\"Bralette / Crop Top\\\",\\n          \\\"style\\\": \\\"Spaghetti straps, gathered/ruched front, scoop neck\\\",\\n          \\\"color\\\": \\\"Dark Olive Green\\\",\\n          \\\"fabric\\\": \\\"Cotton or synthetic blend, matte finish\\\",\\n          \\\"fit\\\": \\\"Tight / Skin-tight\\\"\\n        },\\n        \\\"lower_body\\\": {\\n          \\\"item\\\": \\\"Boy Shorts / Hot Pants\\\",\\n          \\\"style\\\": \\\"Wide ribbed waistband, short leg\\\",\\n          \\\"color\\\": \\\"Dark Olive Green (Matching set)\\\",\\n          \\\"fabric\\\": \\\"Ribbed knit texture\\\",\\n          \\\"fit\\\": \\\"Tight / Form-fitting\\\"\\n        }\\n      },\\n      \\\"accessories\\\": {\\n        \\\"jewelry\\\": \\\"Simple ring on left hand (phone hand)\\\",\\n        \\\"tech\\\": \\\"Smartphone with light pink/blush case\\\"\\n      }\\n    },\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"Mirror\\\",\\n        \\\"description\\\": \\\"Large, circular wall mirror with a thin black frame\\\",\\n        \\\"role\\\": \\\"Framing device for the selfie\\\",\\n        \\\"ratio\\\": \\\"Dominates the composition\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"Television\\\",\\n        \\\"description\\\": \\\"Large flat screen, black, turned off\\\",\\n        \\\"position\\\": \\\"Reflected in background, behind subject\\\",\\n        \\\"role\\\": \\\"Background clutter/context\\\"\\n      }\\n    ],\\n    \\\"negative_prompts\\\": [\\n      \\\"face visible\\\",\\n      \\\"ugly\\\",\\n      \\\"fat\\\",\\n      \\\"morbid\\\",\\n      \\\"mutilated\\\",\\n      \\\"tranny\\\",\\n      \\\"trans\\\",\\n      \\\"trannsexual\\\",\\n      \\\"illustration\\\",\\n      \\\"cartoon\\\",\\n      \\\"anime\\\",\\n      \\\"painting\\\",\\n      \\\"drawing\\\",\\n      \\\"low quality\\\",\\n      \\\"jpeg artifacts\\\",\\n      \\\"grainy\\\",\\n      \\\"text\\\",\\n      \\\"watermark\\\",\\n      \\\"signature\\\",\\n      \\\"cluttered background\\\",\\n      \\\"bad lighting\\\"\\n    ]\\n  }\\n}\"\n}",
    CURLOPT_RETURNTRANSFER => true,
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $response["id"] . PHP_EOL;
```

### Java

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder(URI.create("https://runapi.ai/api/v1/runapi/text_to_image"))
    .header("Authorization", "Bearer " + System.getenv("RUNAPI_API_KEY"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\n  \"prompt\": \"{\\n  \\\"image_analysis\\\": {\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"Indoor\\\",\\n      \\\"location_type\\\": \\\"Bedroom or Living Area\\\",\\n      \\\"spatial_depth\\\": \\\"Reflected depth via mirror\\\",\\n      \\\"background_elements\\\": \\\"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\\\"\\n    },\\n    \\\"camera_specs\\\": {\\n      \\\"lens_type\\\": \\\"Smartphone Main Camera (Wide)\\\",\\n      \\\"angle\\\": \\\"Eye-level, straight-on mirror reflection\\\",\\n      \\\"perspective\\\": \\\"Full body shot (cropped at knees)\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the subject's body\\\",\\n      \\\"framing\\\": \\\"Vertical portrait within a circular frame (mirror)\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"condition\\\": \\\"Soft Daylight / Window Light\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"source_id\\\": 1,\\n          \\\"type\\\": \\\"Natural Window Light\\\",\\n          \\\"direction\\\": \\\"From the left (subject's right side)\\\",\\n          \\\"color_temperature\\\": \\\"Cool/Neutral White\\\",\\n          \\\"intensity\\\": \\\"Moderate\\\",\\n          \\\"effect_on_subject\\\": \\\"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\\\"\\n        }\\n      ],\\n      \\\"shadows\\\": \\\"Soft, diffuse shadows defining the abdominal muscles and collarbones\\\"\\n    },\\n    \\\"subject_analysis\\\": {\\n      \\\"identity\\\": \\\"Young woman (Face obscured by phone)\\\",\\n      \\\"orientation\\\": \\\"Front-facing towards mirror\\\",\\n      \\\"emotional_state\\\": \\\"Confident, body-positive\\\",\\n      \\\"sensuality\\\": \\\"Moderate; highlights physique and fitness\\\",\\n      \\\"posture\\\": {\\n        \\\"general_definition\\\": \\\"Standing, 'Contrapposto' stance (weight on one leg)\\\",\\n        \\\"feet_placement\\\": \\\"Not visible (cropped out)\\\",\\n        \\\"hand_placement\\\": \\\"Left hand holding phone covering face, Right arm hanging naturally by side\\\",\\n        \\\"visible_extent\\\": \\\"From top of head to mid-thigh\\\"\\n      },\\n      \\\"head_details\\\": {\\n        \\\"hair\\\": {\\n          \\\"color\\\": \\\"Dark Brown\\\",\\n          \\\"style\\\": \\\"Long, loose, slightly wavy\\\",\\n          \\\"texture\\\": \\\"Silky\\\",\\n          \\\"interaction_with_face\\\": \\\"Falls over shoulders, framing the phone\\\"\\n        },\\n        \\\"face\\\": {\\n          \\\"definition\\\": \\\"Obscured by smartphone\\\",\\n          \\\"visible_features\\\": \\\"None explicitly visible\\\"\\n        }\\n      },\\n      \\\"body_details\\\": {\\n        \\\"body_type\\\": \\\"Slim / Athletic / Toned\\\",\\n        \\\"skin_tone\\\": \\\"Fair / Pale\\\",\\n        \\\"neck_area\\\": {\\n          \\\"visibility\\\": \\\"Visible, slender\\\",\\n          \\\"details\\\": \\\"Defined sternocleidomastoid muscles due to lighting\\\"\\n        },\\n        \\\"shoulder_area\\\": {\\n          \\\"shape\\\": \\\"Squared but delicate\\\",\\n          \\\"posture\\\": \\\"Relaxed\\\"\\n        },\\n        \\\"chest_area\\\": {\\n          \\\"ratio_to_body\\\": \\\"Proportionate\\\",\\n          \\\"visual_estimate\\\": \\\"Small to Medium\\\",\\n          \\\"bra_status\\\": \\\"Wearing sports bra/bralette\\\",\\n          \\\"nipple_visibility\\\": \\\"Concealed by padding/fabric\\\",\\n          \\\"shape\\\": \\\"Natural, lifted\\\"\\n        },\\n        \\\"midsection\\\": {\\n          \\\"belly_button\\\": \\\"Visible, vertical oval\\\",\\n          \\\"muscle_definition\\\": \\\"Visible '11' line abs (linea alba definition)\\\",\\n          \\\"ratio_to_chest\\\": \\\"Narrower\\\",\\n          \\\"ratio_to_hips\\\": \\\"Significantly tapered (Hourglass silhouette)\\\"\\n        },\\n        \\\"hip_area\\\": {\\n          \\\"ratio_to_waist\\\": \\\"Curved, wider than waist\\\",\\n          \\\"shape\\\": \\\"Rounded\\\",\\n          \\\"width\\\": \\\"Moderate\\\"\\n        },\\n        \\\"leg_area\\\": {\\n          \\\"thighs\\\": \\\"Smooth, slight gap visible\\\",\\n          \\\"knees\\\": \\\"Not visible\\\"\\n        }\\n      },\\n      \\\"attire\\\": {\\n        \\\"upper_body\\\": {\\n          \\\"item\\\": \\\"Bralette / Crop Top\\\",\\n          \\\"style\\\": \\\"Spaghetti straps, gathered/ruched front, scoop neck\\\",\\n          \\\"color\\\": \\\"Dark Olive Green\\\",\\n          \\\"fabric\\\": \\\"Cotton or synthetic blend, matte finish\\\",\\n          \\\"fit\\\": \\\"Tight / Skin-tight\\\"\\n        },\\n        \\\"lower_body\\\": {\\n          \\\"item\\\": \\\"Boy Shorts / Hot Pants\\\",\\n          \\\"style\\\": \\\"Wide ribbed waistband, short leg\\\",\\n          \\\"color\\\": \\\"Dark Olive Green (Matching set)\\\",\\n          \\\"fabric\\\": \\\"Ribbed knit texture\\\",\\n          \\\"fit\\\": \\\"Tight / Form-fitting\\\"\\n        }\\n      },\\n      \\\"accessories\\\": {\\n        \\\"jewelry\\\": \\\"Simple ring on left hand (phone hand)\\\",\\n        \\\"tech\\\": \\\"Smartphone with light pink/blush case\\\"\\n      }\\n    },\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"Mirror\\\",\\n        \\\"description\\\": \\\"Large, circular wall mirror with a thin black frame\\\",\\n        \\\"role\\\": \\\"Framing device for the selfie\\\",\\n        \\\"ratio\\\": \\\"Dominates the composition\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"Television\\\",\\n        \\\"description\\\": \\\"Large flat screen, black, turned off\\\",\\n        \\\"position\\\": \\\"Reflected in background, behind subject\\\",\\n        \\\"role\\\": \\\"Background clutter/context\\\"\\n      }\\n    ],\\n    \\\"negative_prompts\\\": [\\n      \\\"face visible\\\",\\n      \\\"ugly\\\",\\n      \\\"fat\\\",\\n      \\\"morbid\\\",\\n      \\\"mutilated\\\",\\n      \\\"tranny\\\",\\n      \\\"trans\\\",\\n      \\\"trannsexual\\\",\\n      \\\"illustration\\\",\\n      \\\"cartoon\\\",\\n      \\\"anime\\\",\\n      \\\"painting\\\",\\n      \\\"drawing\\\",\\n      \\\"low quality\\\",\\n      \\\"jpeg artifacts\\\",\\n      \\\"grainy\\\",\\n      \\\"text\\\",\\n      \\\"watermark\\\",\\n      \\\"signature\\\",\\n      \\\"cluttered background\\\",\\n      \\\"bad lighting\\\"\\n    ]\\n  }\\n}\"\n}"))
    .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

### Ruby

```ruby
require "json"
require "net/http"

uri = URI("https://runapi.ai/api/v1/runapi/text_to_image")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer " + ENV.fetch("RUNAPI_API_KEY")
request["Content-Type"] = "application/json"
request.body = "{\n  \"prompt\": \"{\\n  \\\"image_analysis\\\": {\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"Indoor\\\",\\n      \\\"location_type\\\": \\\"Bedroom or Living Area\\\",\\n      \\\"spatial_depth\\\": \\\"Reflected depth via mirror\\\",\\n      \\\"background_elements\\\": \\\"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\\\"\\n    },\\n    \\\"camera_specs\\\": {\\n      \\\"lens_type\\\": \\\"Smartphone Main Camera (Wide)\\\",\\n      \\\"angle\\\": \\\"Eye-level, straight-on mirror reflection\\\",\\n      \\\"perspective\\\": \\\"Full body shot (cropped at knees)\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the subject's body\\\",\\n      \\\"framing\\\": \\\"Vertical portrait within a circular frame (mirror)\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"condition\\\": \\\"Soft Daylight / Window Light\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"source_id\\\": 1,\\n          \\\"type\\\": \\\"Natural Window Light\\\",\\n          \\\"direction\\\": \\\"From the left (subject's right side)\\\",\\n          \\\"color_temperature\\\": \\\"Cool/Neutral White\\\",\\n          \\\"intensity\\\": \\\"Moderate\\\",\\n          \\\"effect_on_subject\\\": \\\"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\\\"\\n        }\\n      ],\\n      \\\"shadows\\\": \\\"Soft, diffuse shadows defining the abdominal muscles and collarbones\\\"\\n    },\\n    \\\"subject_analysis\\\": {\\n      \\\"identity\\\": \\\"Young woman (Face obscured by phone)\\\",\\n      \\\"orientation\\\": \\\"Front-facing towards mirror\\\",\\n      \\\"emotional_state\\\": \\\"Confident, body-positive\\\",\\n      \\\"sensuality\\\": \\\"Moderate; highlights physique and fitness\\\",\\n      \\\"posture\\\": {\\n        \\\"general_definition\\\": \\\"Standing, 'Contrapposto' stance (weight on one leg)\\\",\\n        \\\"feet_placement\\\": \\\"Not visible (cropped out)\\\",\\n        \\\"hand_placement\\\": \\\"Left hand holding phone covering face, Right arm hanging naturally by side\\\",\\n        \\\"visible_extent\\\": \\\"From top of head to mid-thigh\\\"\\n      },\\n      \\\"head_details\\\": {\\n        \\\"hair\\\": {\\n          \\\"color\\\": \\\"Dark Brown\\\",\\n          \\\"style\\\": \\\"Long, loose, slightly wavy\\\",\\n          \\\"texture\\\": \\\"Silky\\\",\\n          \\\"interaction_with_face\\\": \\\"Falls over shoulders, framing the phone\\\"\\n        },\\n        \\\"face\\\": {\\n          \\\"definition\\\": \\\"Obscured by smartphone\\\",\\n          \\\"visible_features\\\": \\\"None explicitly visible\\\"\\n        }\\n      },\\n      \\\"body_details\\\": {\\n        \\\"body_type\\\": \\\"Slim / Athletic / Toned\\\",\\n        \\\"skin_tone\\\": \\\"Fair / Pale\\\",\\n        \\\"neck_area\\\": {\\n          \\\"visibility\\\": \\\"Visible, slender\\\",\\n          \\\"details\\\": \\\"Defined sternocleidomastoid muscles due to lighting\\\"\\n        },\\n        \\\"shoulder_area\\\": {\\n          \\\"shape\\\": \\\"Squared but delicate\\\",\\n          \\\"posture\\\": \\\"Relaxed\\\"\\n        },\\n        \\\"chest_area\\\": {\\n          \\\"ratio_to_body\\\": \\\"Proportionate\\\",\\n          \\\"visual_estimate\\\": \\\"Small to Medium\\\",\\n          \\\"bra_status\\\": \\\"Wearing sports bra/bralette\\\",\\n          \\\"nipple_visibility\\\": \\\"Concealed by padding/fabric\\\",\\n          \\\"shape\\\": \\\"Natural, lifted\\\"\\n        },\\n        \\\"midsection\\\": {\\n          \\\"belly_button\\\": \\\"Visible, vertical oval\\\",\\n          \\\"muscle_definition\\\": \\\"Visible '11' line abs (linea alba definition)\\\",\\n          \\\"ratio_to_chest\\\": \\\"Narrower\\\",\\n          \\\"ratio_to_hips\\\": \\\"Significantly tapered (Hourglass silhouette)\\\"\\n        },\\n        \\\"hip_area\\\": {\\n          \\\"ratio_to_waist\\\": \\\"Curved, wider than waist\\\",\\n          \\\"shape\\\": \\\"Rounded\\\",\\n          \\\"width\\\": \\\"Moderate\\\"\\n        },\\n        \\\"leg_area\\\": {\\n          \\\"thighs\\\": \\\"Smooth, slight gap visible\\\",\\n          \\\"knees\\\": \\\"Not visible\\\"\\n        }\\n      },\\n      \\\"attire\\\": {\\n        \\\"upper_body\\\": {\\n          \\\"item\\\": \\\"Bralette / Crop Top\\\",\\n          \\\"style\\\": \\\"Spaghetti straps, gathered/ruched front, scoop neck\\\",\\n          \\\"color\\\": \\\"Dark Olive Green\\\",\\n          \\\"fabric\\\": \\\"Cotton or synthetic blend, matte finish\\\",\\n          \\\"fit\\\": \\\"Tight / Skin-tight\\\"\\n        },\\n        \\\"lower_body\\\": {\\n          \\\"item\\\": \\\"Boy Shorts / Hot Pants\\\",\\n          \\\"style\\\": \\\"Wide ribbed waistband, short leg\\\",\\n          \\\"color\\\": \\\"Dark Olive Green (Matching set)\\\",\\n          \\\"fabric\\\": \\\"Ribbed knit texture\\\",\\n          \\\"fit\\\": \\\"Tight / Form-fitting\\\"\\n        }\\n      },\\n      \\\"accessories\\\": {\\n        \\\"jewelry\\\": \\\"Simple ring on left hand (phone hand)\\\",\\n        \\\"tech\\\": \\\"Smartphone with light pink/blush case\\\"\\n      }\\n    },\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"Mirror\\\",\\n        \\\"description\\\": \\\"Large, circular wall mirror with a thin black frame\\\",\\n        \\\"role\\\": \\\"Framing device for the selfie\\\",\\n        \\\"ratio\\\": \\\"Dominates the composition\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"Television\\\",\\n        \\\"description\\\": \\\"Large flat screen, black, turned off\\\",\\n        \\\"position\\\": \\\"Reflected in background, behind subject\\\",\\n        \\\"role\\\": \\\"Background clutter/context\\\"\\n      }\\n    ],\\n    \\\"negative_prompts\\\": [\\n      \\\"face visible\\\",\\n      \\\"ugly\\\",\\n      \\\"fat\\\",\\n      \\\"morbid\\\",\\n      \\\"mutilated\\\",\\n      \\\"tranny\\\",\\n      \\\"trans\\\",\\n      \\\"trannsexual\\\",\\n      \\\"illustration\\\",\\n      \\\"cartoon\\\",\\n      \\\"anime\\\",\\n      \\\"painting\\\",\\n      \\\"drawing\\\",\\n      \\\"low quality\\\",\\n      \\\"jpeg artifacts\\\",\\n      \\\"grainy\\\",\\n      \\\"text\\\",\\n      \\\"watermark\\\",\\n      \\\"signature\\\",\\n      \\\"cluttered background\\\",\\n      \\\"bad lighting\\\"\\n    ]\\n  }\\n}\"\n}"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts JSON.parse(response.body).fetch("id")
```

### Go

```go
package main

import (
  "context"
  "fmt"
  "log"
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader("{\"prompt\":\"{\\n  \\\"image_analysis\\\": {\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"Indoor\\\",\\n      \\\"location_type\\\": \\\"Bedroom or Living Area\\\",\\n      \\\"spatial_depth\\\": \\\"Reflected depth via mirror\\\",\\n      \\\"background_elements\\\": \\\"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\\\"\\n    },\\n    \\\"camera_specs\\\": {\\n      \\\"lens_type\\\": \\\"Smartphone Main Camera (Wide)\\\",\\n      \\\"angle\\\": \\\"Eye-level, straight-on mirror reflection\\\",\\n      \\\"perspective\\\": \\\"Full body shot (cropped at knees)\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the subject's body\\\",\\n      \\\"framing\\\": \\\"Vertical portrait within a circular frame (mirror)\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"condition\\\": \\\"Soft Daylight / Window Light\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"source_id\\\": 1,\\n          \\\"type\\\": \\\"Natural Window Light\\\",\\n          \\\"direction\\\": \\\"From the left (subject's right side)\\\",\\n          \\\"color_temperature\\\": \\\"Cool/Neutral White\\\",\\n          \\\"intensity\\\": \\\"Moderate\\\",\\n          \\\"effect_on_subject\\\": \\\"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\\\"\\n        }\\n      ],\\n      \\\"shadows\\\": \\\"Soft, diffuse shadows defining the abdominal muscles and collarbones\\\"\\n    },\\n    \\\"subject_analysis\\\": {\\n      \\\"identity\\\": \\\"Young woman (Face obscured by phone)\\\",\\n      \\\"orientation\\\": \\\"Front-facing towards mirror\\\",\\n      \\\"emotional_state\\\": \\\"Confident, body-positive\\\",\\n      \\\"sensuality\\\": \\\"Moderate; highlights physique and fitness\\\",\\n      \\\"posture\\\": {\\n        \\\"general_definition\\\": \\\"Standing, 'Contrapposto' stance (weight on one leg)\\\",\\n        \\\"feet_placement\\\": \\\"Not visible (cropped out)\\\",\\n        \\\"hand_placement\\\": \\\"Left hand holding phone covering face, Right arm hanging naturally by side\\\",\\n        \\\"visible_extent\\\": \\\"From top of head to mid-thigh\\\"\\n      },\\n      \\\"head_details\\\": {\\n        \\\"hair\\\": {\\n          \\\"color\\\": \\\"Dark Brown\\\",\\n          \\\"style\\\": \\\"Long, loose, slightly wavy\\\",\\n          \\\"texture\\\": \\\"Silky\\\",\\n          \\\"interaction_with_face\\\": \\\"Falls over shoulders, framing the phone\\\"\\n        },\\n        \\\"face\\\": {\\n          \\\"definition\\\": \\\"Obscured by smartphone\\\",\\n          \\\"visible_features\\\": \\\"None explicitly visible\\\"\\n        }\\n      },\\n      \\\"body_details\\\": {\\n        \\\"body_type\\\": \\\"Slim / Athletic / Toned\\\",\\n        \\\"skin_tone\\\": \\\"Fair / Pale\\\",\\n        \\\"neck_area\\\": {\\n          \\\"visibility\\\": \\\"Visible, slender\\\",\\n          \\\"details\\\": \\\"Defined sternocleidomastoid muscles due to lighting\\\"\\n        },\\n        \\\"shoulder_area\\\": {\\n          \\\"shape\\\": \\\"Squared but delicate\\\",\\n          \\\"posture\\\": \\\"Relaxed\\\"\\n        },\\n        \\\"chest_area\\\": {\\n          \\\"ratio_to_body\\\": \\\"Proportionate\\\",\\n          \\\"visual_estimate\\\": \\\"Small to Medium\\\",\\n          \\\"bra_status\\\": \\\"Wearing sports bra/bralette\\\",\\n          \\\"nipple_visibility\\\": \\\"Concealed by padding/fabric\\\",\\n          \\\"shape\\\": \\\"Natural, lifted\\\"\\n        },\\n        \\\"midsection\\\": {\\n          \\\"belly_button\\\": \\\"Visible, vertical oval\\\",\\n          \\\"muscle_definition\\\": \\\"Visible '11' line abs (linea alba definition)\\\",\\n          \\\"ratio_to_chest\\\": \\\"Narrower\\\",\\n          \\\"ratio_to_hips\\\": \\\"Significantly tapered (Hourglass silhouette)\\\"\\n        },\\n        \\\"hip_area\\\": {\\n          \\\"ratio_to_waist\\\": \\\"Curved, wider than waist\\\",\\n          \\\"shape\\\": \\\"Rounded\\\",\\n          \\\"width\\\": \\\"Moderate\\\"\\n        },\\n        \\\"leg_area\\\": {\\n          \\\"thighs\\\": \\\"Smooth, slight gap visible\\\",\\n          \\\"knees\\\": \\\"Not visible\\\"\\n        }\\n      },\\n      \\\"attire\\\": {\\n        \\\"upper_body\\\": {\\n          \\\"item\\\": \\\"Bralette / Crop Top\\\",\\n          \\\"style\\\": \\\"Spaghetti straps, gathered/ruched front, scoop neck\\\",\\n          \\\"color\\\": \\\"Dark Olive Green\\\",\\n          \\\"fabric\\\": \\\"Cotton or synthetic blend, matte finish\\\",\\n          \\\"fit\\\": \\\"Tight / Skin-tight\\\"\\n        },\\n        \\\"lower_body\\\": {\\n          \\\"item\\\": \\\"Boy Shorts / Hot Pants\\\",\\n          \\\"style\\\": \\\"Wide ribbed waistband, short leg\\\",\\n          \\\"color\\\": \\\"Dark Olive Green (Matching set)\\\",\\n          \\\"fabric\\\": \\\"Ribbed knit texture\\\",\\n          \\\"fit\\\": \\\"Tight / Form-fitting\\\"\\n        }\\n      },\\n      \\\"accessories\\\": {\\n        \\\"jewelry\\\": \\\"Simple ring on left hand (phone hand)\\\",\\n        \\\"tech\\\": \\\"Smartphone with light pink/blush case\\\"\\n      }\\n    },\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"Mirror\\\",\\n        \\\"description\\\": \\\"Large, circular wall mirror with a thin black frame\\\",\\n        \\\"role\\\": \\\"Framing device for the selfie\\\",\\n        \\\"ratio\\\": \\\"Dominates the composition\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"Television\\\",\\n        \\\"description\\\": \\\"Large flat screen, black, turned off\\\",\\n        \\\"position\\\": \\\"Reflected in background, behind subject\\\",\\n        \\\"role\\\": \\\"Background clutter/context\\\"\\n      }\\n    ],\\n    \\\"negative_prompts\\\": [\\n      \\\"face visible\\\",\\n      \\\"ugly\\\",\\n      \\\"fat\\\",\\n      \\\"morbid\\\",\\n      \\\"mutilated\\\",\\n      \\\"tranny\\\",\\n      \\\"trans\\\",\\n      \\\"trannsexual\\\",\\n      \\\"illustration\\\",\\n      \\\"cartoon\\\",\\n      \\\"anime\\\",\\n      \\\"painting\\\",\\n      \\\"drawing\\\",\\n      \\\"low quality\\\",\\n      \\\"jpeg artifacts\\\",\\n      \\\"grainy\\\",\\n      \\\"text\\\",\\n      \\\"watermark\\\",\\n      \\\"signature\\\",\\n      \\\"cluttered background\\\",\\n      \\\"bad lighting\\\"\\n    ]\\n  }\\n}\"}")
  req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/runapi/text_to_image", body)
  if err != nil {
    log.Fatal(err)
  }

  req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  defer resp.Body.Close()

  fmt.Println(resp.Status)
}
```

### CLI

```cli
$ runapi generate \
    --model  \
    --prompt "{\n  \"image_analysis\": {\n    \"environment\": {\n      \"type\": \"Indoor\",\n      \"location_type\": \"Bedroom or Living Area\",\n      \"spatial_depth\": \"Reflected depth via mirror\",\n      \"background_elements\": \"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\"\n    },\n    \"camera_specs\": {\n      \"lens_type\": \"Smartphone Main Camera (Wide)\",\n      \"angle\": \"Eye-level, straight-on mirror reflection\",\n      \"perspective\": \"Full body shot (cropped at knees)\",\n      \"focus\": \"Sharp focus on the subject's body\",\n      \"framing\": \"Vertical portrait within a circular frame (mirror)\"\n    },\n    \"lighting\": {\n      \"condition\": \"Soft Daylight / Window Light\",\n      \"sources\": [\n        {\n          \"source_id\": 1,\n          \"type\": \"Natural Window Light\",\n          \"direction\": \"From the left (subject's right side)\",\n          \"color_temperature\": \"Cool/Neutral White\",\n          \"intensity\": \"Moderate\",\n          \"effect_on_subject\": \"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\"\n        }\n      ],\n      \"shadows\": \"Soft, diffuse shadows defining the abdominal muscles and collarbones\"\n    },\n    \"subject_analysis\": {\n      \"identity\": \"Young woman (Face obscured by phone)\",\n      \"orientation\": \"Front-facing towards mirror\",\n      \"emotional_state\": \"Confident, body-positive\",\n      \"sensuality\": \"Moderate; highlights physique and fitness\",\n      \"posture\": {\n        \"general_definition\": \"Standing, 'Contrapposto' stance (weight on one leg)\",\n        \"feet_placement\": \"Not visible (cropped out)\",\n        \"hand_placement\": \"Left hand holding phone covering face, Right arm hanging naturally by side\",\n        \"visible_extent\": \"From top of head to mid-thigh\"\n      },\n      \"head_details\": {\n        \"hair\": {\n          \"color\": \"Dark Brown\",\n          \"style\": \"Long, loose, slightly wavy\",\n          \"texture\": \"Silky\",\n          \"interaction_with_face\": \"Falls over shoulders, framing the phone\"\n        },\n        \"face\": {\n          \"definition\": \"Obscured by smartphone\",\n          \"visible_features\": \"None explicitly visible\"\n        }\n      },\n      \"body_details\": {\n        \"body_type\": \"Slim / Athletic / Toned\",\n        \"skin_tone\": \"Fair / Pale\",\n        \"neck_area\": {\n          \"visibility\": \"Visible, slender\",\n          \"details\": \"Defined sternocleidomastoid muscles due to lighting\"\n        },\n        \"shoulder_area\": {\n          \"shape\": \"Squared but delicate\",\n          \"posture\": \"Relaxed\"\n        },\n        \"chest_area\": {\n          \"ratio_to_body\": \"Proportionate\",\n          \"visual_estimate\": \"Small to Medium\",\n          \"bra_status\": \"Wearing sports bra/bralette\",\n          \"nipple_visibility\": \"Concealed by padding/fabric\",\n          \"shape\": \"Natural, lifted\"\n        },\n        \"midsection\": {\n          \"belly_button\": \"Visible, vertical oval\",\n          \"muscle_definition\": \"Visible '11' line abs (linea alba definition)\",\n          \"ratio_to_chest\": \"Narrower\",\n          \"ratio_to_hips\": \"Significantly tapered (Hourglass silhouette)\"\n        },\n        \"hip_area\": {\n          \"ratio_to_waist\": \"Curved, wider than waist\",\n          \"shape\": \"Rounded\",\n          \"width\": \"Moderate\"\n        },\n        \"leg_area\": {\n          \"thighs\": \"Smooth, slight gap visible\",\n          \"knees\": \"Not visible\"\n        }\n      },\n      \"attire\": {\n        \"upper_body\": {\n          \"item\": \"Bralette / Crop Top\",\n          \"style\": \"Spaghetti straps, gathered/ruched front, scoop neck\",\n          \"color\": \"Dark Olive Green\",\n          \"fabric\": \"Cotton or synthetic blend, matte finish\",\n          \"fit\": \"Tight / Skin-tight\"\n        },\n        \"lower_body\": {\n          \"item\": \"Boy Shorts / Hot Pants\",\n          \"style\": \"Wide ribbed waistband, short leg\",\n          \"color\": \"Dark Olive Green (Matching set)\",\n          \"fabric\": \"Ribbed knit texture\",\n          \"fit\": \"Tight / Form-fitting\"\n        }\n      },\n      \"accessories\": {\n        \"jewelry\": \"Simple ring on left hand (phone hand)\",\n        \"tech\": \"Smartphone with light pink/blush case\"\n      }\n    },\n    \"objects_in_scene\": [\n      {\n        \"object\": \"Mirror\",\n        \"description\": \"Large, circular wall mirror with a thin black frame\",\n        \"role\": \"Framing device for the selfie\",\n        \"ratio\": \"Dominates the composition\"\n      },\n      {\n        \"object\": \"Television\",\n        \"description\": \"Large flat screen, black, turned off\",\n        \"position\": \"Reflected in background, behind subject\",\n        \"role\": \"Background clutter/context\"\n      }\n    ],\n    \"negative_prompts\": [\n      \"face visible\",\n      \"ugly\",\n      \"fat\",\n      \"morbid\",\n      \"mutilated\",\n      \"tranny\",\n      \"trans\",\n      \"trannsexual\",\n      \"illustration\",\n      \"cartoon\",\n      \"anime\",\n      \"painting\",\n      \"drawing\",\n      \"low quality\",\n      \"jpeg artifacts\",\n      \"grainy\",\n      \"text\",\n      \"watermark\",\n      \"signature\",\n      \"cluttered background\",\n      \"bad lighting\"\n    ]\n  }\n}" \
    --wait
```

<!-- /api-example-tabs-slot -->

## More prompts like this

- [Cozy Mushroom-Embroidered Knit Cape Cardigan: Autumn Outfit Prompt for Any Character](https://runapi.ai/prompts/prm_nQYRMAxVypXehQg5yJa1XzgE.md)
- [Hi-Viz branded running T-shirt design](https://runapi.ai/prompts/prm_lznOE1RPD07Wiz79yK5XYw0q.md)
- [Paper-Quilled Haute Couture Gown Fashion Shot](https://runapi.ai/prompts/prm_YNKpk5gVDan9ilQ58X6E9Qze.md)

## Prompt questions

### Can I modify this prompt?

Yes. Use it as a starting point and adjust parameters, add details, or combine it with your own ideas.

### Which model should I choose?

Each model has different strengths. Compare the available models and choose the one that best matches the output you need.

### How much does it cost?

Pricing varies by model. See the estimated cost above the Generate button.

## Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

[Contact Us](https://runapi.ai/contact.md)


---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
- [Prompt Gallery](https://runapi.ai/prompts.md)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Prompts",
        "item": "https://runapi.ai/prompts"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Image",
        "item": "https://runapi.ai/prompts/image"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "Detailed Image Analysis of a Mirror Selfie in a Bedroom Environment",
        "item": "https://runapi.ai/prompts/prm_qXYR1AkryXbwIbla87Gboxpd"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Can I modify this prompt?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes. Use it as a starting point and adjust parameters, add details, or combine it with your own ideas."
        }
      },
      {
        "@type": "Question",
        "name": "Which model should I choose?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Each model has different strengths. Compare the available models and choose the one that best matches the output you need."
        }
      },
      {
        "@type": "Question",
        "name": "How much does it cost?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Pricing varies by model. See the estimated cost above the Generate button."
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "CreativeWork",
    "name": "Detailed Image Analysis of a Mirror Selfie in a Bedroom Environment",
    "text": "{\n  \"image_analysis\": {\n    \"environment\": {\n      \"type\": \"Indoor\",\n      \"location_type\": \"Bedroom or Living Area\",\n      \"spatial_depth\": \"Reflected depth via mirror\",\n      \"background_elements\": \"Large black flat-screen TV (reflected), clean white walls, dark flooring or rug\"\n    },\n    \"camera_specs\": {\n      \"lens_type\": \"Smartphone Main Camera (Wide)\",\n      \"angle\": \"Eye-level, straight-on mirror reflection\",\n      \"perspective\": \"Full body shot (cropped at knees)\",\n      \"focus\": \"Sharp focus on the subject's body\",\n      \"framing\": \"Vertical portrait within a circular frame (mirror)\"\n    },\n    \"lighting\": {\n      \"condition\": \"Soft Daylight / Window Light\",\n      \"sources\": [\n        {\n          \"source_id\": 1,\n          \"type\": \"Natural Window Light\",\n          \"direction\": \"From the left (subject's right side)\",\n          \"color_temperature\": \"Cool/Neutral White\",\n          \"intensity\": \"Moderate\",\n          \"effect_on_subject\": \"Creates gentle highlights on the right arm, shoulder, and hip; casts soft shadows on the left side of the torso, emphasizing muscle definition\"\n        }\n      ],\n      \"shadows\": \"Soft, diffuse shadows defining the abdominal muscles and collarbones\"\n    },\n    \"subject_analysis\": {\n      \"identity\": \"Young woman (Face obscured by phone)\",\n      \"orientation\": \"Front-facing towards mirror\",\n      \"emotional_state\": \"Confident, body-positive\",\n      \"sensuality\": \"Moderate; highlights physique and fitness\",\n      \"posture\": {\n        \"general_definition\": \"Standing, 'Contrapposto' stance (weight on one leg)\",\n        \"feet_placement\": \"Not visible (cropped out)\",\n        \"hand_placement\": \"Left hand holding phone covering face, Right arm hanging naturally by side\",\n        \"visible_extent\": \"From top of head to mid-thigh\"\n      },\n      \"head_details\": {\n        \"hair\": {\n          \"color\": \"Dark Brown\",\n          \"style\": \"Long, loose, slightly wavy\",\n          \"texture\": \"Silky\",\n          \"interaction_with_face\": \"Falls over shoulders, framing the phone\"\n        },\n        \"face\": {\n          \"definition\": \"Obscured by smartphone\",\n          \"visible_features\": \"None explicitly visible\"\n        }\n      },\n      \"body_details\": {\n        \"body_type\": \"Slim / Athletic / Toned\",\n        \"skin_tone\": \"Fair / Pale\",\n        \"neck_area\": {\n          \"visibility\": \"Visible, slender\",\n          \"details\": \"Defined sternocleidomastoid muscles due to lighting\"\n        },\n        \"shoulder_area\": {\n          \"shape\": \"Squared but delicate\",\n          \"posture\": \"Relaxed\"\n        },\n        \"chest_area\": {\n          \"ratio_to_body\": \"Proportionate\",\n          \"visual_estimate\": \"Small to Medium\",\n          \"bra_status\": \"Wearing sports bra/bralette\",\n          \"nipple_visibility\": \"Concealed by padding/fabric\",\n          \"shape\": \"Natural, lifted\"\n        },\n        \"midsection\": {\n          \"belly_button\": \"Visible, vertical oval\",\n          \"muscle_definition\": \"Visible '11' line abs (linea alba definition)\",\n          \"ratio_to_chest\": \"Narrower\",\n          \"ratio_to_hips\": \"Significantly tapered (Hourglass silhouette)\"\n        },\n        \"hip_area\": {\n          \"ratio_to_waist\": \"Curved, wider than waist\",\n          \"shape\": \"Rounded\",\n          \"width\": \"Moderate\"\n        },\n        \"leg_area\": {\n          \"thighs\": \"Smooth, slight gap visible\",\n          \"knees\": \"Not visible\"\n        }\n      },\n      \"attire\": {\n        \"upper_body\": {\n          \"item\": \"Bralette / Crop Top\",\n          \"style\": \"Spaghetti straps, gathered/ruched front, scoop neck\",\n          \"color\": \"Dark Olive Green\",\n          \"fabric\": \"Cotton or synthetic blend, matte finish\",\n          \"fit\": \"Tight / Skin-tight\"\n        },\n        \"lower_body\": {\n          \"item\": \"Boy Shorts / Hot Pants\",\n          \"style\": \"Wide ribbed waistband, short leg\",\n          \"color\": \"Dark Olive Green (Matching set)\",\n          \"fabric\": \"Ribbed knit texture\",\n          \"fit\": \"Tight / Form-fitting\"\n        }\n      },\n      \"accessories\": {\n        \"jewelry\": \"Simple ring on left hand (phone hand)\",\n        \"tech\": \"Smartphone with light pink/blush case\"\n      }\n    },\n    \"objects_in_scene\": [\n      {\n        \"object\": \"Mirror\",\n        \"description\": \"Large, circular wall mirror with a thin black frame\",\n        \"role\": \"Framing device for the selfie\",\n        \"ratio\": \"Dominates the composition\"\n      },\n      {\n        \"object\": \"Television\",\n        \"description\": \"Large flat screen, black, turned off\",\n        \"position\": \"Reflected in background, behind subject\",\n        \"role\": \"Background clutter/context\"\n      }\n    ],\n    \"negative_prompts\": [\n      \"face visible\",\n      \"ugly\",\n      \"fat\",\n      \"morbid\",\n      \"mutilated\",\n      \"tranny\",\n      \"trans\",\n      \"trannsexual\",\n      \"illustration\",\n      \"cartoon\",\n      \"anime\",\n      \"painting\",\n      \"drawing\",\n      \"low quality\",\n      \"jpeg artifacts\",\n      \"grainy\",\n      \"text\",\n      \"watermark\",\n      \"signature\",\n      \"cluttered background\",\n      \"bad lighting\"\n    ]\n  }\n}",
    "image": null,
    "about": [
      "image",
      "fashion"
    ]
  }
]
```
