---
title: Image Analysis for Night Portrait in Heavy Snowfall —  Prompt | RunAPI | RunAPI
description: Copy this RunAPI prompt, view agent setup steps, and use API code for .
url: https://runapi.ai/prompts/prm_GqW79wzlyMLeHVGv4Od3m5K1.md
canonical: https://runapi.ai/prompts/prm_GqW79wzlyMLeHVGv4Od3m5K1
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 13587
modality: image
endpoint: "/api/v1/runapi/text_to_image"
---

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


# Image Analysis for Night Portrait in Heavy Snowfall

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

**Prompts** · Image

## Prompt

```text
{
  "image_analysis": {
    "meta": {
      "type": "photorealistic",
      "style": "candid_night_portrait",
      "subject_count": 1
    },
    "environment": {
      "type": "outdoor",
      "location": "residential_complex_parking_lot",
      "weather": "heavy_snowfall",
      "time_of_day": "night",
      "atmosphere": "cold, wintery, urban"
    },
    "camera_settings": {
      "lens_type": "wide_angle_smartphone_lens",
      "perspective": "eye_level",
      "depth_of_field": "moderate_focus_falloff",
      "focus_point": "subject_full_body",
      "grain": "visible_iso_noise"
    },
    "lighting": {
      "summary": "Mixed lighting with strong atmospheric color cast",
      "sources": [
        {
          "id": "light_source_1",
          "type": "sky_glow_light_pollution",
          "color": "deep_orange_red",
          "intensity": "high_ambient",
          "angle": "overhead_diffused",
          "effect": "casts_reddish_hue_on_snow_and_background"
        },
        {
          "id": "light_source_2",
          "type": "street_lamps",
          "color": "warm_yellow",
          "intensity": "moderate",
          "angle": "background_scattered",
          "effect": "illuminates_buildings_and_parked_cars"
        },
        {
          "id": "light_source_3",
          "type": "camera_flash_or_direct_source",
          "color": "cool_white",
          "intensity": "high",
          "angle": "frontal",
          "effect": "highlights_subject_face_legs_and_jacket_texture"
        }
      ]
    },
    "people": [
      {
        "id": "person_1",
        "demographics": {
          "gender": "female",
          "age_group": "young_adult",
          "body_type": "slender_fit"
        },
        "orientation": {
          "body_direction": "facing_camera_angled_right",
          "face_direction": "facing_camera",
          "gaze": "towards_camera_slightly_down"
        },
        "emotion_and_attitude": {
          "primary_emotion": "playful_shy",
          "secondary_emotion": "joyful",
          "sensuality": "moderate_playful_allure",
          "vibe": "candid_winter_fun",
          "posture_impact": "relaxed_stance_conveys_comfort_despite_cold"
        },
        "pose_details": {
          "general": "standing_full_body",
          "feet_position": "left_foot_planted_right_foot_slightly_forward_relaxed",
          "hand_position": {
            "left_hand": "raised_covering_mouth_fingers_curled",
            "right_hand": "hanging_loose_by_side"
          },
          "visible_extent": "full_body_head_to_toe"
        },
        "head_and_face": {
          "hair": {
            "color": "dark_brown",
            "style": "loose_waves_shoulder_length",
            "texture": "thick_voluminous",
            "condition": "speckled_with_snowflakes"
          },
          "face_structure": {
            "shape": "oval",
            "forehead": "partially_covered_by_hair_parting",
            "eyes": "dark_slightly_squinting_smiling",
            "nose": "partially_obscured_by_hand",
            "mouth": "covered_by_hand_hiding_smile",
            "skin_tone": "fair_illuminated_by_flash"
          },
          "makeup": {
            "style": "natural_minimal",
            "visible_details": "red_nail_polish_visible_on_hand"
          }
        },
        "body_analysis": {
          "skin_tone": "fair_tan_on_legs",
          "neck": "covered_by_jacket_collar",
          "shoulders": "broadened_by_oversized_jacket",
          "chest": {
            "ratio_to_body": "obscured_by_thick_outerwear",
            "visibility": "hidden",
            "bra_status": "indeterminate"
          },
          "waist_belly": {
            "ratio": "obscured_by_straight_cut_jacket",
            "visibility": "hidden"
          },
          "hips_glutes": {
            "ratio": "standard_to_slender_frame",
            "visibility": "partially_covered_by_jacket_hem"
          },
          "legs": {
            "description": "prominent_slender_toned",
            "visibility": "exposed_from_mid_thigh_to_knee",
            "ratio": "long_relative_to_torso"
          }
        },
        "clothing_and_accessories": {
          "outerwear": {
            "item": "shearling_aviator_jacket",
            "color": "black_with_white_lining",
            "material": "leather_faux_leather_wool",
            "fit": "oversized_boxy",
            "lighting_effect": "absorbs_light_reflects_snow_flakes"
          },
          "lower_body": {
            "item": "mini_skirt_or_dress_hem",
            "color": "black",
            "visibility": "barely_visible_under_jacket"
          },
          "leg_wear": {
            "item": "pantyhose_tights",
            "finish": "shiny_glossy",
            "color": "nude_beige",
            "lighting_effect": "highly_reflective_of_flash"
          },
          "footwear": {
            "item": "knee_high_boots",
            "color": "black",
            "material": "leather_synthetic",
            "condition": "covered_in_snow_at_base",
            "style": "flat_or_low_heel_practical"
          },
          "accessories": {
            "jewelry": "ring_on_left_ring_finger_silver"
          }
        }
      }
    ],
    "objects_in_scene": [
      {
        "object": "vehicles",
        "description": "sedan_cars_parked_in_rows",
        "state": "stationary_covered_in_snow",
        "colors": ["grey", "white", "silver"],
        "purpose": "background_context_residential_parking",
        "relation": "behind_subject_creating_depth"
      },
      {
        "object": "buildings",
        "description": "multi_story_apartment_complexes",
        "style": "modern_concrete_architecture",
        "colors": ["beige", "brown_trim"],
        "location": "background_left_and_right",
        "purpose": "encloses_scene"
      },
      {
        "object": "snow",
        "description": "ground_cover_and_falling_flakes",
        "texture": "disturbed_by_tire_tracks_and_footprints",
        "color": "white_reflecting_orange_sky",
        "location": "foreground_and_background",
        "purpose": "defines_atmosphere"
      }
    ],
    "negative_prompt": "daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals"
  }
}
```

<!-- 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

Image Analysis for Night Portrait in Heavy Snowfall

### Atmosphere

fashion / Image

### Technical

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

### Style

black, jacket, night, outdoor, photorealistic, snow, standing

<!-- /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 | black, jacket, night, outdoor, photorealistic, snow, standing |

## 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": {
    "meta": {
      "type": "photorealistic",
      "style": "candid_night_portrait",
      "subject_count": 1
    },
    "environment": {
      "type": "outdoor",
      "location": "residential_complex_parking_lot",
      "weather": "heavy_snowfall",
      "time_of_day": "night",
      "atmosphere": "cold, wintery, urban"
    },
    "camera_settings": {
      "lens_type": "wide_angle_smartphone_lens",
      "perspective": "eye_level",
      "depth_of_field": "moderate_focus_falloff",
      "focus_point": "subject_full_body",
      "grain": "visible_iso_noise"
    },
    "lighting": {
      "summary": "Mixed lighting with strong atmospheric color cast",
      "sources": [
        {
          "id": "light_source_1",
          "type": "sky_glow_light_pollution",
          "color": "deep_orange_red",
          "intensity": "high_ambient",
          "angle": "overhead_diffused",
          "effect": "casts_reddish_hue_on_snow_and_background"
        },
        {
          "id": "light_source_2",
          "type": "street_lamps",
          "color": "warm_yellow",
          "intensity": "moderate",
          "angle": "background_scattered",
          "effect": "illuminates_buildings_and_parked_cars"
        },
        {
          "id": "light_source_3",
          "type": "camera_flash_or_direct_source",
          "color": "cool_white",
          "intensity": "high",
          "angle": "frontal",
          "effect": "highlights_subject_face_legs_and_jacket_texture"
        }
      ]
    },
    "people": [
      {
        "id": "person_1",
        "demographics": {
          "gender": "female",
          "age_group": "young_adult",
          "body_type": "slender_fit"
        },
        "orientation": {
          "body_direction": "facing_camera_angled_right",
          "face_direction": "facing_camera",
          "gaze": "towards_camera_slightly_down"
        },
        "emotion_and_attitude": {
          "primary_emotion": "playful_shy",
          "secondary_emotion": "joyful",
          "sensuality": "moderate_playful_allure",
          "vibe": "candid_winter_fun",
          "posture_impact": "relaxed_stance_conveys_comfort_despite_cold"
        },
        "pose_details": {
          "general": "standing_full_body",
          "feet_position": "left_foot_planted_right_foot_slightly_forward_relaxed",
          "hand_position": {
            "left_hand": "raised_covering_mouth_fingers_curled",
            "right_hand": "hanging_loose_by_side"
          },
          "visible_extent": "full_body_head_to_toe"
        },
        "head_and_face": {
          "hair": {
            "color": "dark_brown",
            "style": "loose_waves_shoulder_length",
            "texture": "thick_voluminous",
            "condition": "speckled_with_snowflakes"
          },
          "face_structure": {
            "shape": "oval",
            "forehead": "partially_covered_by_hair_parting",
            "eyes": "dark_slightly_squinting_smiling",
            "nose": "partially_obscured_by_hand",
            "mouth": "covered_by_hand_hiding_smile",
            "skin_tone": "fair_illuminated_by_flash"
          },
          "makeup": {
            "style": "natural_minimal",
            "visible_details": "red_nail_polish_visible_on_hand"
          }
        },
        "body_analysis": {
          "skin_tone": "fair_tan_on_legs",
          "neck": "covered_by_jacket_collar",
          "shoulders": "broadened_by_oversized_jacket",
          "chest": {
            "ratio_to_body": "obscured_by_thick_outerwear",
            "visibility": "hidden",
            "bra_status": "indeterminate"
          },
          "waist_belly": {
            "ratio": "obscured_by_straight_cut_jacket",
            "visibility": "hidden"
          },
          "hips_glutes": {
            "ratio": "standard_to_slender_frame",
            "visibility": "partially_covered_by_jacket_hem"
          },
          "legs": {
            "description": "prominent_slender_toned",
            "visibility": "exposed_from_mid_thigh_to_knee",
            "ratio": "long_relative_to_torso"
          }
        },
        "clothing_and_accessories": {
          "outerwear": {
            "item": "shearling_aviator_jacket",
            "color": "black_with_white_lining",
            "material": "leather_faux_leather_wool",
            "fit": "oversized_boxy",
            "lighting_effect": "absorbs_light_reflects_snow_flakes"
          },
          "lower_body": {
            "item": "mini_skirt_or_dress_hem",
            "color": "black",
            "visibility": "barely_visible_under_jacket"
          },
          "leg_wear": {
            "item": "pantyhose_tights",
            "finish": "shiny_glossy",
            "color": "nude_beige",
            "lighting_effect": "highly_reflective_of_flash"
          },
          "footwear": {
            "item": "knee_high_boots",
            "color": "black",
            "material": "leather_synthetic",
            "condition": "covered_in_snow_at_base",
            "style": "flat_or_low_heel_practical"
          },
          "accessories": {
            "jewelry": "ring_on_left_ring_finger_silver"
          }
        }
      }
    ],
    "objects_in_scene": [
      {
        "object": "vehicles",
        "description": "sedan_cars_parked_in_rows",
        "state": "stationary_covered_in_snow",
        "colors": ["grey", "white", "silver"],
        "purpose": "background_context_residential_parking",
        "relation": "behind_subject_creating_depth"
      },
      {
        "object": "buildings",
        "description": "multi_story_apartment_complexes",
        "style": "modern_concrete_architecture",
        "colors": ["beige", "brown_trim"],
        "location": "background_left_and_right",
        "purpose": "encloses_scene"
      },
      {
        "object": "snow",
        "description": "ground_cover_and_falling_flakes",
        "texture": "disturbed_by_tire_tracks_and_footprints",
        "color": "white_reflecting_orange_sky",
        "location": "foreground_and_background",
        "purpose": "defines_atmosphere"
      }
    ],
    "negative_prompt": "daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals"
  }
}"

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "meta": {
      "type": "photorealistic",
      "style": "candid_night_portrait",
      "subject_count": 1
    },
    "environment": {
      "type": "outdoor",
      "location": "residential_complex_parking_lot",
      "weather": "heavy_snowfall",
      "time_of_day": "night",
      "atmosphere": "cold, wintery, urban"
    },
    "camera_settings": {
      "lens_type": "wide_angle_smartphone_lens",
      "perspective": "eye_level",
      "depth_of_field": "moderate_focus_falloff",
      "focus_point": "subject_full_body",
      "grain": "visible_iso_noise"
    },
    "lighting": {
      "summary": "Mixed lighting with strong atmospheric color cast",
      "sources": [
        {
          "id": "light_source_1",
          "type": "sky_glow_light_pollution",
          "color": "deep_orange_red",
          "intensity": "high_ambient",
          "angle": "overhead_diffused",
          "effect": "casts_reddish_hue_on_snow_and_background"
        },
        {
          "id": "light_source_2",
          "type": "street_lamps",
          "color": "warm_yellow",
          "intensity": "moderate",
          "angle": "background_scattered",
          "effect": "illuminates_buildings_and_parked_cars"
        },
        {
          "id": "light_source_3",
          "type": "camera_flash_or_direct_source",
          "color": "cool_white",
          "intensity": "high",
          "angle": "frontal",
          "effect": "highlights_subject_face_legs_and_jacket_texture"
        }
      ]
    },
    "people": [
      {
        "id": "person_1",
        "demographics": {
          "gender": "female",
          "age_group": "young_adult",
          "body_type": "slender_fit"
        },
        "orientation": {
          "body_direction": "facing_camera_angled_right",
          "face_direction": "facing_camera",
          "gaze": "towards_camera_slightly_down"
        },
        "emotion_and_attitude": {
          "primary_emotion": "playful_shy",
          "secondary_emotion": "joyful",
          "sensuality": "moderate_playful_allure",
          "vibe": "candid_winter_fun",
          "posture_impact": "relaxed_stance_conveys_comfort_despite_cold"
        },
        "pose_details": {
          "general": "standing_full_body",
          "feet_position": "left_foot_planted_right_foot_slightly_forward_relaxed",
          "hand_position": {
            "left_hand": "raised_covering_mouth_fingers_curled",
            "right_hand": "hanging_loose_by_side"
          },
          "visible_extent": "full_body_head_to_toe"
        },
        "head_and_face": {
          "hair": {
            "color": "dark_brown",
            "style": "loose_waves_shoulder_length",
            "texture": "thick_voluminous",
            "condition": "speckled_with_snowflakes"
          },
          "face_structure": {
            "shape": "oval",
            "forehead": "partially_covered_by_hair_parting",
            "eyes": "dark_slightly_squinting_smiling",
            "nose": "partially_obscured_by_hand",
            "mouth": "covered_by_hand_hiding_smile",
            "skin_tone": "fair_illuminated_by_flash"
          },
          "makeup": {
            "style": "natural_minimal",
            "visible_details": "red_nail_polish_visible_on_hand"
          }
        },
        "body_analysis": {
          "skin_tone": "fair_tan_on_legs",
          "neck": "covered_by_jacket_collar",
          "shoulders": "broadened_by_oversized_jacket",
          "chest": {
            "ratio_to_body": "obscured_by_thick_outerwear",
            "visibility": "hidden",
            "bra_status": "indeterminate"
          },
          "waist_belly": {
            "ratio": "obscured_by_straight_cut_jacket",
            "visibility": "hidden"
          },
          "hips_glutes": {
            "ratio": "standard_to_slender_frame",
            "visibility": "partially_covered_by_jacket_hem"
          },
          "legs": {
            "description": "prominent_slender_toned",
            "visibility": "exposed_from_mid_thigh_to_knee",
            "ratio": "long_relative_to_torso"
          }
        },
        "clothing_and_accessories": {
          "outerwear": {
            "item": "shearling_aviator_jacket",
            "color": "black_with_white_lining",
            "material": "leather_faux_leather_wool",
            "fit": "oversized_boxy",
            "lighting_effect": "absorbs_light_reflects_snow_flakes"
          },
          "lower_body": {
            "item": "mini_skirt_or_dress_hem",
            "color": "black",
            "visibility": "barely_visible_under_jacket"
          },
          "leg_wear": {
            "item": "pantyhose_tights",
            "finish": "shiny_glossy",
            "color": "nude_beige",
            "lighting_effect": "highly_reflective_of_flash"
          },
          "footwear": {
            "item": "knee_high_boots",
            "color": "black",
            "material": "leather_synthetic",
            "condition": "covered_in_snow_at_base",
            "style": "flat_or_low_heel_practical"
          },
          "accessories": {
            "jewelry": "ring_on_left_ring_finger_silver"
          }
        }
      }
    ],
    "objects_in_scene": [
      {
        "object": "vehicles",
        "description": "sedan_cars_parked_in_rows",
        "state": "stationary_covered_in_snow",
        "colors": ["grey", "white", "silver"],
        "purpose": "background_context_residential_parking",
        "relation": "behind_subject_creating_depth"
      },
      {
        "object": "buildings",
        "description": "multi_story_apartment_complexes",
        "style": "modern_concrete_architecture",
        "colors": ["beige", "brown_trim"],
        "location": "background_left_and_right",
        "purpose": "encloses_scene"
      },
      {
        "object": "snow",
        "description": "ground_cover_and_falling_flakes",
        "texture": "disturbed_by_tire_tracks_and_footprints",
        "color": "white_reflecting_orange_sky",
        "location": "foreground_and_background",
        "purpose": "defines_atmosphere"
      }
    ],
    "negative_prompt": "daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals"
  }
}"

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "meta": {
      "type": "photorealistic",
      "style": "candid_night_portrait",
      "subject_count": 1
    },
    "environment": {
      "type": "outdoor",
      "location": "residential_complex_parking_lot",
      "weather": "heavy_snowfall",
      "time_of_day": "night",
      "atmosphere": "cold, wintery, urban"
    },
    "camera_settings": {
      "lens_type": "wide_angle_smartphone_lens",
      "perspective": "eye_level",
      "depth_of_field": "moderate_focus_falloff",
      "focus_point": "subject_full_body",
      "grain": "visible_iso_noise"
    },
    "lighting": {
      "summary": "Mixed lighting with strong atmospheric color cast",
      "sources": [
        {
          "id": "light_source_1",
          "type": "sky_glow_light_pollution",
          "color": "deep_orange_red",
          "intensity": "high_ambient",
          "angle": "overhead_diffused",
          "effect": "casts_reddish_hue_on_snow_and_background"
        },
        {
          "id": "light_source_2",
          "type": "street_lamps",
          "color": "warm_yellow",
          "intensity": "moderate",
          "angle": "background_scattered",
          "effect": "illuminates_buildings_and_parked_cars"
        },
        {
          "id": "light_source_3",
          "type": "camera_flash_or_direct_source",
          "color": "cool_white",
          "intensity": "high",
          "angle": "frontal",
          "effect": "highlights_subject_face_legs_and_jacket_texture"
        }
      ]
    },
    "people": [
      {
        "id": "person_1",
        "demographics": {
          "gender": "female",
          "age_group": "young_adult",
          "body_type": "slender_fit"
        },
        "orientation": {
          "body_direction": "facing_camera_angled_right",
          "face_direction": "facing_camera",
          "gaze": "towards_camera_slightly_down"
        },
        "emotion_and_attitude": {
          "primary_emotion": "playful_shy",
          "secondary_emotion": "joyful",
          "sensuality": "moderate_playful_allure",
          "vibe": "candid_winter_fun",
          "posture_impact": "relaxed_stance_conveys_comfort_despite_cold"
        },
        "pose_details": {
          "general": "standing_full_body",
          "feet_position": "left_foot_planted_right_foot_slightly_forward_relaxed",
          "hand_position": {
            "left_hand": "raised_covering_mouth_fingers_curled",
            "right_hand": "hanging_loose_by_side"
          },
          "visible_extent": "full_body_head_to_toe"
        },
        "head_and_face": {
          "hair": {
            "color": "dark_brown",
            "style": "loose_waves_shoulder_length",
            "texture": "thick_voluminous",
            "condition": "speckled_with_snowflakes"
          },
          "face_structure": {
            "shape": "oval",
            "forehead": "partially_covered_by_hair_parting",
            "eyes": "dark_slightly_squinting_smiling",
            "nose": "partially_obscured_by_hand",
            "mouth": "covered_by_hand_hiding_smile",
            "skin_tone": "fair_illuminated_by_flash"
          },
          "makeup": {
            "style": "natural_minimal",
            "visible_details": "red_nail_polish_visible_on_hand"
          }
        },
        "body_analysis": {
          "skin_tone": "fair_tan_on_legs",
          "neck": "covered_by_jacket_collar",
          "shoulders": "broadened_by_oversized_jacket",
          "chest": {
            "ratio_to_body": "obscured_by_thick_outerwear",
            "visibility": "hidden",
            "bra_status": "indeterminate"
          },
          "waist_belly": {
            "ratio": "obscured_by_straight_cut_jacket",
            "visibility": "hidden"
          },
          "hips_glutes": {
            "ratio": "standard_to_slender_frame",
            "visibility": "partially_covered_by_jacket_hem"
          },
          "legs": {
            "description": "prominent_slender_toned",
            "visibility": "exposed_from_mid_thigh_to_knee",
            "ratio": "long_relative_to_torso"
          }
        },
        "clothing_and_accessories": {
          "outerwear": {
            "item": "shearling_aviator_jacket",
            "color": "black_with_white_lining",
            "material": "leather_faux_leather_wool",
            "fit": "oversized_boxy",
            "lighting_effect": "absorbs_light_reflects_snow_flakes"
          },
          "lower_body": {
            "item": "mini_skirt_or_dress_hem",
            "color": "black",
            "visibility": "barely_visible_under_jacket"
          },
          "leg_wear": {
            "item": "pantyhose_tights",
            "finish": "shiny_glossy",
            "color": "nude_beige",
            "lighting_effect": "highly_reflective_of_flash"
          },
          "footwear": {
            "item": "knee_high_boots",
            "color": "black",
            "material": "leather_synthetic",
            "condition": "covered_in_snow_at_base",
            "style": "flat_or_low_heel_practical"
          },
          "accessories": {
            "jewelry": "ring_on_left_ring_finger_silver"
          }
        }
      }
    ],
    "objects_in_scene": [
      {
        "object": "vehicles",
        "description": "sedan_cars_parked_in_rows",
        "state": "stationary_covered_in_snow",
        "colors": ["grey", "white", "silver"],
        "purpose": "background_context_residential_parking",
        "relation": "behind_subject_creating_depth"
      },
      {
        "object": "buildings",
        "description": "multi_story_apartment_complexes",
        "style": "modern_concrete_architecture",
        "colors": ["beige", "brown_trim"],
        "location": "background_left_and_right",
        "purpose": "encloses_scene"
      },
      {
        "object": "snow",
        "description": "ground_cover_and_falling_flakes",
        "texture": "disturbed_by_tire_tracks_and_footprints",
        "color": "white_reflecting_orange_sky",
        "location": "foreground_and_background",
        "purpose": "defines_atmosphere"
      }
    ],
    "negative_prompt": "daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals"
  }
}"

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate an image: "{
  "image_analysis": {
    "meta": {
      "type": "photorealistic",
      "style": "candid_night_portrait",
      "subject_count": 1
    },
    "environment": {
      "type": "outdoor",
      "location": "residential_complex_parking_lot",
      "weather": "heavy_snowfall",
      "time_of_day": "night",
      "atmosphere": "cold, wintery, urban"
    },
    "camera_settings": {
      "lens_type": "wide_angle_smartphone_lens",
      "perspective": "eye_level",
      "depth_of_field": "moderate_focus_falloff",
      "focus_point": "subject_full_body",
      "grain": "visible_iso_noise"
    },
    "lighting": {
      "summary": "Mixed lighting with strong atmospheric color cast",
      "sources": [
        {
          "id": "light_source_1",
          "type": "sky_glow_light_pollution",
          "color": "deep_orange_red",
          "intensity": "high_ambient",
          "angle": "overhead_diffused",
          "effect": "casts_reddish_hue_on_snow_and_background"
        },
        {
          "id": "light_source_2",
          "type": "street_lamps",
          "color": "warm_yellow",
          "intensity": "moderate",
          "angle": "background_scattered",
          "effect": "illuminates_buildings_and_parked_cars"
        },
        {
          "id": "light_source_3",
          "type": "camera_flash_or_direct_source",
          "color": "cool_white",
          "intensity": "high",
          "angle": "frontal",
          "effect": "highlights_subject_face_legs_and_jacket_texture"
        }
      ]
    },
    "people": [
      {
        "id": "person_1",
        "demographics": {
          "gender": "female",
          "age_group": "young_adult",
          "body_type": "slender_fit"
        },
        "orientation": {
          "body_direction": "facing_camera_angled_right",
          "face_direction": "facing_camera",
          "gaze": "towards_camera_slightly_down"
        },
        "emotion_and_attitude": {
          "primary_emotion": "playful_shy",
          "secondary_emotion": "joyful",
          "sensuality": "moderate_playful_allure",
          "vibe": "candid_winter_fun",
          "posture_impact": "relaxed_stance_conveys_comfort_despite_cold"
        },
        "pose_details": {
          "general": "standing_full_body",
          "feet_position": "left_foot_planted_right_foot_slightly_forward_relaxed",
          "hand_position": {
            "left_hand": "raised_covering_mouth_fingers_curled",
            "right_hand": "hanging_loose_by_side"
          },
          "visible_extent": "full_body_head_to_toe"
        },
        "head_and_face": {
          "hair": {
            "color": "dark_brown",
            "style": "loose_waves_shoulder_length",
            "texture": "thick_voluminous",
            "condition": "speckled_with_snowflakes"
          },
          "face_structure": {
            "shape": "oval",
            "forehead": "partially_covered_by_hair_parting",
            "eyes": "dark_slightly_squinting_smiling",
            "nose": "partially_obscured_by_hand",
            "mouth": "covered_by_hand_hiding_smile",
            "skin_tone": "fair_illuminated_by_flash"
          },
          "makeup": {
            "style": "natural_minimal",
            "visible_details": "red_nail_polish_visible_on_hand"
          }
        },
        "body_analysis": {
          "skin_tone": "fair_tan_on_legs",
          "neck": "covered_by_jacket_collar",
          "shoulders": "broadened_by_oversized_jacket",
          "chest": {
            "ratio_to_body": "obscured_by_thick_outerwear",
            "visibility": "hidden",
            "bra_status": "indeterminate"
          },
          "waist_belly": {
            "ratio": "obscured_by_straight_cut_jacket",
            "visibility": "hidden"
          },
          "hips_glutes": {
            "ratio": "standard_to_slender_frame",
            "visibility": "partially_covered_by_jacket_hem"
          },
          "legs": {
            "description": "prominent_slender_toned",
            "visibility": "exposed_from_mid_thigh_to_knee",
            "ratio": "long_relative_to_torso"
          }
        },
        "clothing_and_accessories": {
          "outerwear": {
            "item": "shearling_aviator_jacket",
            "color": "black_with_white_lining",
            "material": "leather_faux_leather_wool",
            "fit": "oversized_boxy",
            "lighting_effect": "absorbs_light_reflects_snow_flakes"
          },
          "lower_body": {
            "item": "mini_skirt_or_dress_hem",
            "color": "black",
            "visibility": "barely_visible_under_jacket"
          },
          "leg_wear": {
            "item": "pantyhose_tights",
            "finish": "shiny_glossy",
            "color": "nude_beige",
            "lighting_effect": "highly_reflective_of_flash"
          },
          "footwear": {
            "item": "knee_high_boots",
            "color": "black",
            "material": "leather_synthetic",
            "condition": "covered_in_snow_at_base",
            "style": "flat_or_low_heel_practical"
          },
          "accessories": {
            "jewelry": "ring_on_left_ring_finger_silver"
          }
        }
      }
    ],
    "objects_in_scene": [
      {
        "object": "vehicles",
        "description": "sedan_cars_parked_in_rows",
        "state": "stationary_covered_in_snow",
        "colors": ["grey", "white", "silver"],
        "purpose": "background_context_residential_parking",
        "relation": "behind_subject_creating_depth"
      },
      {
        "object": "buildings",
        "description": "multi_story_apartment_complexes",
        "style": "modern_concrete_architecture",
        "colors": ["beige", "brown_trim"],
        "location": "background_left_and_right",
        "purpose": "encloses_scene"
      },
      {
        "object": "snow",
        "description": "ground_cover_and_falling_flakes",
        "texture": "disturbed_by_tire_tracks_and_footprints",
        "color": "white_reflecting_orange_sky",
        "location": "foreground_and_background",
        "purpose": "defines_atmosphere"
      }
    ],
    "negative_prompt": "daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals"
  }
}"

<!-- 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    \"meta\": {\n      \"type\": \"photorealistic\",\n      \"style\": \"candid_night_portrait\",\n      \"subject_count\": 1\n    },\n    \"environment\": {\n      \"type\": \"outdoor\",\n      \"location\": \"residential_complex_parking_lot\",\n      \"weather\": \"heavy_snowfall\",\n      \"time_of_day\": \"night\",\n      \"atmosphere\": \"cold, wintery, urban\"\n    },\n    \"camera_settings\": {\n      \"lens_type\": \"wide_angle_smartphone_lens\",\n      \"perspective\": \"eye_level\",\n      \"depth_of_field\": \"moderate_focus_falloff\",\n      \"focus_point\": \"subject_full_body\",\n      \"grain\": \"visible_iso_noise\"\n    },\n    \"lighting\": {\n      \"summary\": \"Mixed lighting with strong atmospheric color cast\",\n      \"sources\": [\n        {\n          \"id\": \"light_source_1\",\n          \"type\": \"sky_glow_light_pollution\",\n          \"color\": \"deep_orange_red\",\n          \"intensity\": \"high_ambient\",\n          \"angle\": \"overhead_diffused\",\n          \"effect\": \"casts_reddish_hue_on_snow_and_background\"\n        },\n        {\n          \"id\": \"light_source_2\",\n          \"type\": \"street_lamps\",\n          \"color\": \"warm_yellow\",\n          \"intensity\": \"moderate\",\n          \"angle\": \"background_scattered\",\n          \"effect\": \"illuminates_buildings_and_parked_cars\"\n        },\n        {\n          \"id\": \"light_source_3\",\n          \"type\": \"camera_flash_or_direct_source\",\n          \"color\": \"cool_white\",\n          \"intensity\": \"high\",\n          \"angle\": \"frontal\",\n          \"effect\": \"highlights_subject_face_legs_and_jacket_texture\"\n        }\n      ]\n    },\n    \"people\": [\n      {\n        \"id\": \"person_1\",\n        \"demographics\": {\n          \"gender\": \"female\",\n          \"age_group\": \"young_adult\",\n          \"body_type\": \"slender_fit\"\n        },\n        \"orientation\": {\n          \"body_direction\": \"facing_camera_angled_right\",\n          \"face_direction\": \"facing_camera\",\n          \"gaze\": \"towards_camera_slightly_down\"\n        },\n        \"emotion_and_attitude\": {\n          \"primary_emotion\": \"playful_shy\",\n          \"secondary_emotion\": \"joyful\",\n          \"sensuality\": \"moderate_playful_allure\",\n          \"vibe\": \"candid_winter_fun\",\n          \"posture_impact\": \"relaxed_stance_conveys_comfort_despite_cold\"\n        },\n        \"pose_details\": {\n          \"general\": \"standing_full_body\",\n          \"feet_position\": \"left_foot_planted_right_foot_slightly_forward_relaxed\",\n          \"hand_position\": {\n            \"left_hand\": \"raised_covering_mouth_fingers_curled\",\n            \"right_hand\": \"hanging_loose_by_side\"\n          },\n          \"visible_extent\": \"full_body_head_to_toe\"\n        },\n        \"head_and_face\": {\n          \"hair\": {\n            \"color\": \"dark_brown\",\n            \"style\": \"loose_waves_shoulder_length\",\n            \"texture\": \"thick_voluminous\",\n            \"condition\": \"speckled_with_snowflakes\"\n          },\n          \"face_structure\": {\n            \"shape\": \"oval\",\n            \"forehead\": \"partially_covered_by_hair_parting\",\n            \"eyes\": \"dark_slightly_squinting_smiling\",\n            \"nose\": \"partially_obscured_by_hand\",\n            \"mouth\": \"covered_by_hand_hiding_smile\",\n            \"skin_tone\": \"fair_illuminated_by_flash\"\n          },\n          \"makeup\": {\n            \"style\": \"natural_minimal\",\n            \"visible_details\": \"red_nail_polish_visible_on_hand\"\n          }\n        },\n        \"body_analysis\": {\n          \"skin_tone\": \"fair_tan_on_legs\",\n          \"neck\": \"covered_by_jacket_collar\",\n          \"shoulders\": \"broadened_by_oversized_jacket\",\n          \"chest\": {\n            \"ratio_to_body\": \"obscured_by_thick_outerwear\",\n            \"visibility\": \"hidden\",\n            \"bra_status\": \"indeterminate\"\n          },\n          \"waist_belly\": {\n            \"ratio\": \"obscured_by_straight_cut_jacket\",\n            \"visibility\": \"hidden\"\n          },\n          \"hips_glutes\": {\n            \"ratio\": \"standard_to_slender_frame\",\n            \"visibility\": \"partially_covered_by_jacket_hem\"\n          },\n          \"legs\": {\n            \"description\": \"prominent_slender_toned\",\n            \"visibility\": \"exposed_from_mid_thigh_to_knee\",\n            \"ratio\": \"long_relative_to_torso\"\n          }\n        },\n        \"clothing_and_accessories\": {\n          \"outerwear\": {\n            \"item\": \"shearling_aviator_jacket\",\n            \"color\": \"black_with_white_lining\",\n            \"material\": \"leather_faux_leather_wool\",\n            \"fit\": \"oversized_boxy\",\n            \"lighting_effect\": \"absorbs_light_reflects_snow_flakes\"\n          },\n          \"lower_body\": {\n            \"item\": \"mini_skirt_or_dress_hem\",\n            \"color\": \"black\",\n            \"visibility\": \"barely_visible_under_jacket\"\n          },\n          \"leg_wear\": {\n            \"item\": \"pantyhose_tights\",\n            \"finish\": \"shiny_glossy\",\n            \"color\": \"nude_beige\",\n            \"lighting_effect\": \"highly_reflective_of_flash\"\n          },\n          \"footwear\": {\n            \"item\": \"knee_high_boots\",\n            \"color\": \"black\",\n            \"material\": \"leather_synthetic\",\n            \"condition\": \"covered_in_snow_at_base\",\n            \"style\": \"flat_or_low_heel_practical\"\n          },\n          \"accessories\": {\n            \"jewelry\": \"ring_on_left_ring_finger_silver\"\n          }\n        }\n      }\n    ],\n    \"objects_in_scene\": [\n      {\n        \"object\": \"vehicles\",\n        \"description\": \"sedan_cars_parked_in_rows\",\n        \"state\": \"stationary_covered_in_snow\",\n        \"colors\": [\"grey\", \"white\", \"silver\"],\n        \"purpose\": \"background_context_residential_parking\",\n        \"relation\": \"behind_subject_creating_depth\"\n      },\n      {\n        \"object\": \"buildings\",\n        \"description\": \"multi_story_apartment_complexes\",\n        \"style\": \"modern_concrete_architecture\",\n        \"colors\": [\"beige\", \"brown_trim\"],\n        \"location\": \"background_left_and_right\",\n        \"purpose\": \"encloses_scene\"\n      },\n      {\n        \"object\": \"snow\",\n        \"description\": \"ground_cover_and_falling_flakes\",\n        \"texture\": \"disturbed_by_tire_tracks_and_footprints\",\n        \"color\": \"white_reflecting_orange_sky\",\n        \"location\": \"foreground_and_background\",\n        \"purpose\": \"defines_atmosphere\"\n      }\n    ],\n    \"negative_prompt\": \"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\"\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    \"meta\": {\n      \"type\": \"photorealistic\",\n      \"style\": \"candid_night_portrait\",\n      \"subject_count\": 1\n    },\n    \"environment\": {\n      \"type\": \"outdoor\",\n      \"location\": \"residential_complex_parking_lot\",\n      \"weather\": \"heavy_snowfall\",\n      \"time_of_day\": \"night\",\n      \"atmosphere\": \"cold, wintery, urban\"\n    },\n    \"camera_settings\": {\n      \"lens_type\": \"wide_angle_smartphone_lens\",\n      \"perspective\": \"eye_level\",\n      \"depth_of_field\": \"moderate_focus_falloff\",\n      \"focus_point\": \"subject_full_body\",\n      \"grain\": \"visible_iso_noise\"\n    },\n    \"lighting\": {\n      \"summary\": \"Mixed lighting with strong atmospheric color cast\",\n      \"sources\": [\n        {\n          \"id\": \"light_source_1\",\n          \"type\": \"sky_glow_light_pollution\",\n          \"color\": \"deep_orange_red\",\n          \"intensity\": \"high_ambient\",\n          \"angle\": \"overhead_diffused\",\n          \"effect\": \"casts_reddish_hue_on_snow_and_background\"\n        },\n        {\n          \"id\": \"light_source_2\",\n          \"type\": \"street_lamps\",\n          \"color\": \"warm_yellow\",\n          \"intensity\": \"moderate\",\n          \"angle\": \"background_scattered\",\n          \"effect\": \"illuminates_buildings_and_parked_cars\"\n        },\n        {\n          \"id\": \"light_source_3\",\n          \"type\": \"camera_flash_or_direct_source\",\n          \"color\": \"cool_white\",\n          \"intensity\": \"high\",\n          \"angle\": \"frontal\",\n          \"effect\": \"highlights_subject_face_legs_and_jacket_texture\"\n        }\n      ]\n    },\n    \"people\": [\n      {\n        \"id\": \"person_1\",\n        \"demographics\": {\n          \"gender\": \"female\",\n          \"age_group\": \"young_adult\",\n          \"body_type\": \"slender_fit\"\n        },\n        \"orientation\": {\n          \"body_direction\": \"facing_camera_angled_right\",\n          \"face_direction\": \"facing_camera\",\n          \"gaze\": \"towards_camera_slightly_down\"\n        },\n        \"emotion_and_attitude\": {\n          \"primary_emotion\": \"playful_shy\",\n          \"secondary_emotion\": \"joyful\",\n          \"sensuality\": \"moderate_playful_allure\",\n          \"vibe\": \"candid_winter_fun\",\n          \"posture_impact\": \"relaxed_stance_conveys_comfort_despite_cold\"\n        },\n        \"pose_details\": {\n          \"general\": \"standing_full_body\",\n          \"feet_position\": \"left_foot_planted_right_foot_slightly_forward_relaxed\",\n          \"hand_position\": {\n            \"left_hand\": \"raised_covering_mouth_fingers_curled\",\n            \"right_hand\": \"hanging_loose_by_side\"\n          },\n          \"visible_extent\": \"full_body_head_to_toe\"\n        },\n        \"head_and_face\": {\n          \"hair\": {\n            \"color\": \"dark_brown\",\n            \"style\": \"loose_waves_shoulder_length\",\n            \"texture\": \"thick_voluminous\",\n            \"condition\": \"speckled_with_snowflakes\"\n          },\n          \"face_structure\": {\n            \"shape\": \"oval\",\n            \"forehead\": \"partially_covered_by_hair_parting\",\n            \"eyes\": \"dark_slightly_squinting_smiling\",\n            \"nose\": \"partially_obscured_by_hand\",\n            \"mouth\": \"covered_by_hand_hiding_smile\",\n            \"skin_tone\": \"fair_illuminated_by_flash\"\n          },\n          \"makeup\": {\n            \"style\": \"natural_minimal\",\n            \"visible_details\": \"red_nail_polish_visible_on_hand\"\n          }\n        },\n        \"body_analysis\": {\n          \"skin_tone\": \"fair_tan_on_legs\",\n          \"neck\": \"covered_by_jacket_collar\",\n          \"shoulders\": \"broadened_by_oversized_jacket\",\n          \"chest\": {\n            \"ratio_to_body\": \"obscured_by_thick_outerwear\",\n            \"visibility\": \"hidden\",\n            \"bra_status\": \"indeterminate\"\n          },\n          \"waist_belly\": {\n            \"ratio\": \"obscured_by_straight_cut_jacket\",\n            \"visibility\": \"hidden\"\n          },\n          \"hips_glutes\": {\n            \"ratio\": \"standard_to_slender_frame\",\n            \"visibility\": \"partially_covered_by_jacket_hem\"\n          },\n          \"legs\": {\n            \"description\": \"prominent_slender_toned\",\n            \"visibility\": \"exposed_from_mid_thigh_to_knee\",\n            \"ratio\": \"long_relative_to_torso\"\n          }\n        },\n        \"clothing_and_accessories\": {\n          \"outerwear\": {\n            \"item\": \"shearling_aviator_jacket\",\n            \"color\": \"black_with_white_lining\",\n            \"material\": \"leather_faux_leather_wool\",\n            \"fit\": \"oversized_boxy\",\n            \"lighting_effect\": \"absorbs_light_reflects_snow_flakes\"\n          },\n          \"lower_body\": {\n            \"item\": \"mini_skirt_or_dress_hem\",\n            \"color\": \"black\",\n            \"visibility\": \"barely_visible_under_jacket\"\n          },\n          \"leg_wear\": {\n            \"item\": \"pantyhose_tights\",\n            \"finish\": \"shiny_glossy\",\n            \"color\": \"nude_beige\",\n            \"lighting_effect\": \"highly_reflective_of_flash\"\n          },\n          \"footwear\": {\n            \"item\": \"knee_high_boots\",\n            \"color\": \"black\",\n            \"material\": \"leather_synthetic\",\n            \"condition\": \"covered_in_snow_at_base\",\n            \"style\": \"flat_or_low_heel_practical\"\n          },\n          \"accessories\": {\n            \"jewelry\": \"ring_on_left_ring_finger_silver\"\n          }\n        }\n      }\n    ],\n    \"objects_in_scene\": [\n      {\n        \"object\": \"vehicles\",\n        \"description\": \"sedan_cars_parked_in_rows\",\n        \"state\": \"stationary_covered_in_snow\",\n        \"colors\": [\"grey\", \"white\", \"silver\"],\n        \"purpose\": \"background_context_residential_parking\",\n        \"relation\": \"behind_subject_creating_depth\"\n      },\n      {\n        \"object\": \"buildings\",\n        \"description\": \"multi_story_apartment_complexes\",\n        \"style\": \"modern_concrete_architecture\",\n        \"colors\": [\"beige\", \"brown_trim\"],\n        \"location\": \"background_left_and_right\",\n        \"purpose\": \"encloses_scene\"\n      },\n      {\n        \"object\": \"snow\",\n        \"description\": \"ground_cover_and_falling_flakes\",\n        \"texture\": \"disturbed_by_tire_tracks_and_footprints\",\n        \"color\": \"white_reflecting_orange_sky\",\n        \"location\": \"foreground_and_background\",\n        \"purpose\": \"defines_atmosphere\"\n      }\n    ],\n    \"negative_prompt\": \"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\"\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    \\\"meta\\\": {\\n      \\\"type\\\": \\\"photorealistic\\\",\\n      \\\"style\\\": \\\"candid_night_portrait\\\",\\n      \\\"subject_count\\\": 1\\n    },\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"outdoor\\\",\\n      \\\"location\\\": \\\"residential_complex_parking_lot\\\",\\n      \\\"weather\\\": \\\"heavy_snowfall\\\",\\n      \\\"time_of_day\\\": \\\"night\\\",\\n      \\\"atmosphere\\\": \\\"cold, wintery, urban\\\"\\n    },\\n    \\\"camera_settings\\\": {\\n      \\\"lens_type\\\": \\\"wide_angle_smartphone_lens\\\",\\n      \\\"perspective\\\": \\\"eye_level\\\",\\n      \\\"depth_of_field\\\": \\\"moderate_focus_falloff\\\",\\n      \\\"focus_point\\\": \\\"subject_full_body\\\",\\n      \\\"grain\\\": \\\"visible_iso_noise\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"summary\\\": \\\"Mixed lighting with strong atmospheric color cast\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"id\\\": \\\"light_source_1\\\",\\n          \\\"type\\\": \\\"sky_glow_light_pollution\\\",\\n          \\\"color\\\": \\\"deep_orange_red\\\",\\n          \\\"intensity\\\": \\\"high_ambient\\\",\\n          \\\"angle\\\": \\\"overhead_diffused\\\",\\n          \\\"effect\\\": \\\"casts_reddish_hue_on_snow_and_background\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_2\\\",\\n          \\\"type\\\": \\\"street_lamps\\\",\\n          \\\"color\\\": \\\"warm_yellow\\\",\\n          \\\"intensity\\\": \\\"moderate\\\",\\n          \\\"angle\\\": \\\"background_scattered\\\",\\n          \\\"effect\\\": \\\"illuminates_buildings_and_parked_cars\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_3\\\",\\n          \\\"type\\\": \\\"camera_flash_or_direct_source\\\",\\n          \\\"color\\\": \\\"cool_white\\\",\\n          \\\"intensity\\\": \\\"high\\\",\\n          \\\"angle\\\": \\\"frontal\\\",\\n          \\\"effect\\\": \\\"highlights_subject_face_legs_and_jacket_texture\\\"\\n        }\\n      ]\\n    },\\n    \\\"people\\\": [\\n      {\\n        \\\"id\\\": \\\"person_1\\\",\\n        \\\"demographics\\\": {\\n          \\\"gender\\\": \\\"female\\\",\\n          \\\"age_group\\\": \\\"young_adult\\\",\\n          \\\"body_type\\\": \\\"slender_fit\\\"\\n        },\\n        \\\"orientation\\\": {\\n          \\\"body_direction\\\": \\\"facing_camera_angled_right\\\",\\n          \\\"face_direction\\\": \\\"facing_camera\\\",\\n          \\\"gaze\\\": \\\"towards_camera_slightly_down\\\"\\n        },\\n        \\\"emotion_and_attitude\\\": {\\n          \\\"primary_emotion\\\": \\\"playful_shy\\\",\\n          \\\"secondary_emotion\\\": \\\"joyful\\\",\\n          \\\"sensuality\\\": \\\"moderate_playful_allure\\\",\\n          \\\"vibe\\\": \\\"candid_winter_fun\\\",\\n          \\\"posture_impact\\\": \\\"relaxed_stance_conveys_comfort_despite_cold\\\"\\n        },\\n        \\\"pose_details\\\": {\\n          \\\"general\\\": \\\"standing_full_body\\\",\\n          \\\"feet_position\\\": \\\"left_foot_planted_right_foot_slightly_forward_relaxed\\\",\\n          \\\"hand_position\\\": {\\n            \\\"left_hand\\\": \\\"raised_covering_mouth_fingers_curled\\\",\\n            \\\"right_hand\\\": \\\"hanging_loose_by_side\\\"\\n          },\\n          \\\"visible_extent\\\": \\\"full_body_head_to_toe\\\"\\n        },\\n        \\\"head_and_face\\\": {\\n          \\\"hair\\\": {\\n            \\\"color\\\": \\\"dark_brown\\\",\\n            \\\"style\\\": \\\"loose_waves_shoulder_length\\\",\\n            \\\"texture\\\": \\\"thick_voluminous\\\",\\n            \\\"condition\\\": \\\"speckled_with_snowflakes\\\"\\n          },\\n          \\\"face_structure\\\": {\\n            \\\"shape\\\": \\\"oval\\\",\\n            \\\"forehead\\\": \\\"partially_covered_by_hair_parting\\\",\\n            \\\"eyes\\\": \\\"dark_slightly_squinting_smiling\\\",\\n            \\\"nose\\\": \\\"partially_obscured_by_hand\\\",\\n            \\\"mouth\\\": \\\"covered_by_hand_hiding_smile\\\",\\n            \\\"skin_tone\\\": \\\"fair_illuminated_by_flash\\\"\\n          },\\n          \\\"makeup\\\": {\\n            \\\"style\\\": \\\"natural_minimal\\\",\\n            \\\"visible_details\\\": \\\"red_nail_polish_visible_on_hand\\\"\\n          }\\n        },\\n        \\\"body_analysis\\\": {\\n          \\\"skin_tone\\\": \\\"fair_tan_on_legs\\\",\\n          \\\"neck\\\": \\\"covered_by_jacket_collar\\\",\\n          \\\"shoulders\\\": \\\"broadened_by_oversized_jacket\\\",\\n          \\\"chest\\\": {\\n            \\\"ratio_to_body\\\": \\\"obscured_by_thick_outerwear\\\",\\n            \\\"visibility\\\": \\\"hidden\\\",\\n            \\\"bra_status\\\": \\\"indeterminate\\\"\\n          },\\n          \\\"waist_belly\\\": {\\n            \\\"ratio\\\": \\\"obscured_by_straight_cut_jacket\\\",\\n            \\\"visibility\\\": \\\"hidden\\\"\\n          },\\n          \\\"hips_glutes\\\": {\\n            \\\"ratio\\\": \\\"standard_to_slender_frame\\\",\\n            \\\"visibility\\\": \\\"partially_covered_by_jacket_hem\\\"\\n          },\\n          \\\"legs\\\": {\\n            \\\"description\\\": \\\"prominent_slender_toned\\\",\\n            \\\"visibility\\\": \\\"exposed_from_mid_thigh_to_knee\\\",\\n            \\\"ratio\\\": \\\"long_relative_to_torso\\\"\\n          }\\n        },\\n        \\\"clothing_and_accessories\\\": {\\n          \\\"outerwear\\\": {\\n            \\\"item\\\": \\\"shearling_aviator_jacket\\\",\\n            \\\"color\\\": \\\"black_with_white_lining\\\",\\n            \\\"material\\\": \\\"leather_faux_leather_wool\\\",\\n            \\\"fit\\\": \\\"oversized_boxy\\\",\\n            \\\"lighting_effect\\\": \\\"absorbs_light_reflects_snow_flakes\\\"\\n          },\\n          \\\"lower_body\\\": {\\n            \\\"item\\\": \\\"mini_skirt_or_dress_hem\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"visibility\\\": \\\"barely_visible_under_jacket\\\"\\n          },\\n          \\\"leg_wear\\\": {\\n            \\\"item\\\": \\\"pantyhose_tights\\\",\\n            \\\"finish\\\": \\\"shiny_glossy\\\",\\n            \\\"color\\\": \\\"nude_beige\\\",\\n            \\\"lighting_effect\\\": \\\"highly_reflective_of_flash\\\"\\n          },\\n          \\\"footwear\\\": {\\n            \\\"item\\\": \\\"knee_high_boots\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"material\\\": \\\"leather_synthetic\\\",\\n            \\\"condition\\\": \\\"covered_in_snow_at_base\\\",\\n            \\\"style\\\": \\\"flat_or_low_heel_practical\\\"\\n          },\\n          \\\"accessories\\\": {\\n            \\\"jewelry\\\": \\\"ring_on_left_ring_finger_silver\\\"\\n          }\\n        }\\n      }\\n    ],\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"vehicles\\\",\\n        \\\"description\\\": \\\"sedan_cars_parked_in_rows\\\",\\n        \\\"state\\\": \\\"stationary_covered_in_snow\\\",\\n        \\\"colors\\\": [\\\"grey\\\", \\\"white\\\", \\\"silver\\\"],\\n        \\\"purpose\\\": \\\"background_context_residential_parking\\\",\\n        \\\"relation\\\": \\\"behind_subject_creating_depth\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"buildings\\\",\\n        \\\"description\\\": \\\"multi_story_apartment_complexes\\\",\\n        \\\"style\\\": \\\"modern_concrete_architecture\\\",\\n        \\\"colors\\\": [\\\"beige\\\", \\\"brown_trim\\\"],\\n        \\\"location\\\": \\\"background_left_and_right\\\",\\n        \\\"purpose\\\": \\\"encloses_scene\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"snow\\\",\\n        \\\"description\\\": \\\"ground_cover_and_falling_flakes\\\",\\n        \\\"texture\\\": \\\"disturbed_by_tire_tracks_and_footprints\\\",\\n        \\\"color\\\": \\\"white_reflecting_orange_sky\\\",\\n        \\\"location\\\": \\\"foreground_and_background\\\",\\n        \\\"purpose\\\": \\\"defines_atmosphere\\\"\\n      }\\n    ],\\n    \\\"negative_prompt\\\": \\\"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\\\"\\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    \\\"meta\\\": {\\n      \\\"type\\\": \\\"photorealistic\\\",\\n      \\\"style\\\": \\\"candid_night_portrait\\\",\\n      \\\"subject_count\\\": 1\\n    },\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"outdoor\\\",\\n      \\\"location\\\": \\\"residential_complex_parking_lot\\\",\\n      \\\"weather\\\": \\\"heavy_snowfall\\\",\\n      \\\"time_of_day\\\": \\\"night\\\",\\n      \\\"atmosphere\\\": \\\"cold, wintery, urban\\\"\\n    },\\n    \\\"camera_settings\\\": {\\n      \\\"lens_type\\\": \\\"wide_angle_smartphone_lens\\\",\\n      \\\"perspective\\\": \\\"eye_level\\\",\\n      \\\"depth_of_field\\\": \\\"moderate_focus_falloff\\\",\\n      \\\"focus_point\\\": \\\"subject_full_body\\\",\\n      \\\"grain\\\": \\\"visible_iso_noise\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"summary\\\": \\\"Mixed lighting with strong atmospheric color cast\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"id\\\": \\\"light_source_1\\\",\\n          \\\"type\\\": \\\"sky_glow_light_pollution\\\",\\n          \\\"color\\\": \\\"deep_orange_red\\\",\\n          \\\"intensity\\\": \\\"high_ambient\\\",\\n          \\\"angle\\\": \\\"overhead_diffused\\\",\\n          \\\"effect\\\": \\\"casts_reddish_hue_on_snow_and_background\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_2\\\",\\n          \\\"type\\\": \\\"street_lamps\\\",\\n          \\\"color\\\": \\\"warm_yellow\\\",\\n          \\\"intensity\\\": \\\"moderate\\\",\\n          \\\"angle\\\": \\\"background_scattered\\\",\\n          \\\"effect\\\": \\\"illuminates_buildings_and_parked_cars\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_3\\\",\\n          \\\"type\\\": \\\"camera_flash_or_direct_source\\\",\\n          \\\"color\\\": \\\"cool_white\\\",\\n          \\\"intensity\\\": \\\"high\\\",\\n          \\\"angle\\\": \\\"frontal\\\",\\n          \\\"effect\\\": \\\"highlights_subject_face_legs_and_jacket_texture\\\"\\n        }\\n      ]\\n    },\\n    \\\"people\\\": [\\n      {\\n        \\\"id\\\": \\\"person_1\\\",\\n        \\\"demographics\\\": {\\n          \\\"gender\\\": \\\"female\\\",\\n          \\\"age_group\\\": \\\"young_adult\\\",\\n          \\\"body_type\\\": \\\"slender_fit\\\"\\n        },\\n        \\\"orientation\\\": {\\n          \\\"body_direction\\\": \\\"facing_camera_angled_right\\\",\\n          \\\"face_direction\\\": \\\"facing_camera\\\",\\n          \\\"gaze\\\": \\\"towards_camera_slightly_down\\\"\\n        },\\n        \\\"emotion_and_attitude\\\": {\\n          \\\"primary_emotion\\\": \\\"playful_shy\\\",\\n          \\\"secondary_emotion\\\": \\\"joyful\\\",\\n          \\\"sensuality\\\": \\\"moderate_playful_allure\\\",\\n          \\\"vibe\\\": \\\"candid_winter_fun\\\",\\n          \\\"posture_impact\\\": \\\"relaxed_stance_conveys_comfort_despite_cold\\\"\\n        },\\n        \\\"pose_details\\\": {\\n          \\\"general\\\": \\\"standing_full_body\\\",\\n          \\\"feet_position\\\": \\\"left_foot_planted_right_foot_slightly_forward_relaxed\\\",\\n          \\\"hand_position\\\": {\\n            \\\"left_hand\\\": \\\"raised_covering_mouth_fingers_curled\\\",\\n            \\\"right_hand\\\": \\\"hanging_loose_by_side\\\"\\n          },\\n          \\\"visible_extent\\\": \\\"full_body_head_to_toe\\\"\\n        },\\n        \\\"head_and_face\\\": {\\n          \\\"hair\\\": {\\n            \\\"color\\\": \\\"dark_brown\\\",\\n            \\\"style\\\": \\\"loose_waves_shoulder_length\\\",\\n            \\\"texture\\\": \\\"thick_voluminous\\\",\\n            \\\"condition\\\": \\\"speckled_with_snowflakes\\\"\\n          },\\n          \\\"face_structure\\\": {\\n            \\\"shape\\\": \\\"oval\\\",\\n            \\\"forehead\\\": \\\"partially_covered_by_hair_parting\\\",\\n            \\\"eyes\\\": \\\"dark_slightly_squinting_smiling\\\",\\n            \\\"nose\\\": \\\"partially_obscured_by_hand\\\",\\n            \\\"mouth\\\": \\\"covered_by_hand_hiding_smile\\\",\\n            \\\"skin_tone\\\": \\\"fair_illuminated_by_flash\\\"\\n          },\\n          \\\"makeup\\\": {\\n            \\\"style\\\": \\\"natural_minimal\\\",\\n            \\\"visible_details\\\": \\\"red_nail_polish_visible_on_hand\\\"\\n          }\\n        },\\n        \\\"body_analysis\\\": {\\n          \\\"skin_tone\\\": \\\"fair_tan_on_legs\\\",\\n          \\\"neck\\\": \\\"covered_by_jacket_collar\\\",\\n          \\\"shoulders\\\": \\\"broadened_by_oversized_jacket\\\",\\n          \\\"chest\\\": {\\n            \\\"ratio_to_body\\\": \\\"obscured_by_thick_outerwear\\\",\\n            \\\"visibility\\\": \\\"hidden\\\",\\n            \\\"bra_status\\\": \\\"indeterminate\\\"\\n          },\\n          \\\"waist_belly\\\": {\\n            \\\"ratio\\\": \\\"obscured_by_straight_cut_jacket\\\",\\n            \\\"visibility\\\": \\\"hidden\\\"\\n          },\\n          \\\"hips_glutes\\\": {\\n            \\\"ratio\\\": \\\"standard_to_slender_frame\\\",\\n            \\\"visibility\\\": \\\"partially_covered_by_jacket_hem\\\"\\n          },\\n          \\\"legs\\\": {\\n            \\\"description\\\": \\\"prominent_slender_toned\\\",\\n            \\\"visibility\\\": \\\"exposed_from_mid_thigh_to_knee\\\",\\n            \\\"ratio\\\": \\\"long_relative_to_torso\\\"\\n          }\\n        },\\n        \\\"clothing_and_accessories\\\": {\\n          \\\"outerwear\\\": {\\n            \\\"item\\\": \\\"shearling_aviator_jacket\\\",\\n            \\\"color\\\": \\\"black_with_white_lining\\\",\\n            \\\"material\\\": \\\"leather_faux_leather_wool\\\",\\n            \\\"fit\\\": \\\"oversized_boxy\\\",\\n            \\\"lighting_effect\\\": \\\"absorbs_light_reflects_snow_flakes\\\"\\n          },\\n          \\\"lower_body\\\": {\\n            \\\"item\\\": \\\"mini_skirt_or_dress_hem\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"visibility\\\": \\\"barely_visible_under_jacket\\\"\\n          },\\n          \\\"leg_wear\\\": {\\n            \\\"item\\\": \\\"pantyhose_tights\\\",\\n            \\\"finish\\\": \\\"shiny_glossy\\\",\\n            \\\"color\\\": \\\"nude_beige\\\",\\n            \\\"lighting_effect\\\": \\\"highly_reflective_of_flash\\\"\\n          },\\n          \\\"footwear\\\": {\\n            \\\"item\\\": \\\"knee_high_boots\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"material\\\": \\\"leather_synthetic\\\",\\n            \\\"condition\\\": \\\"covered_in_snow_at_base\\\",\\n            \\\"style\\\": \\\"flat_or_low_heel_practical\\\"\\n          },\\n          \\\"accessories\\\": {\\n            \\\"jewelry\\\": \\\"ring_on_left_ring_finger_silver\\\"\\n          }\\n        }\\n      }\\n    ],\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"vehicles\\\",\\n        \\\"description\\\": \\\"sedan_cars_parked_in_rows\\\",\\n        \\\"state\\\": \\\"stationary_covered_in_snow\\\",\\n        \\\"colors\\\": [\\\"grey\\\", \\\"white\\\", \\\"silver\\\"],\\n        \\\"purpose\\\": \\\"background_context_residential_parking\\\",\\n        \\\"relation\\\": \\\"behind_subject_creating_depth\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"buildings\\\",\\n        \\\"description\\\": \\\"multi_story_apartment_complexes\\\",\\n        \\\"style\\\": \\\"modern_concrete_architecture\\\",\\n        \\\"colors\\\": [\\\"beige\\\", \\\"brown_trim\\\"],\\n        \\\"location\\\": \\\"background_left_and_right\\\",\\n        \\\"purpose\\\": \\\"encloses_scene\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"snow\\\",\\n        \\\"description\\\": \\\"ground_cover_and_falling_flakes\\\",\\n        \\\"texture\\\": \\\"disturbed_by_tire_tracks_and_footprints\\\",\\n        \\\"color\\\": \\\"white_reflecting_orange_sky\\\",\\n        \\\"location\\\": \\\"foreground_and_background\\\",\\n        \\\"purpose\\\": \\\"defines_atmosphere\\\"\\n      }\\n    ],\\n    \\\"negative_prompt\\\": \\\"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\\\"\\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    \\\"meta\\\": {\\n      \\\"type\\\": \\\"photorealistic\\\",\\n      \\\"style\\\": \\\"candid_night_portrait\\\",\\n      \\\"subject_count\\\": 1\\n    },\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"outdoor\\\",\\n      \\\"location\\\": \\\"residential_complex_parking_lot\\\",\\n      \\\"weather\\\": \\\"heavy_snowfall\\\",\\n      \\\"time_of_day\\\": \\\"night\\\",\\n      \\\"atmosphere\\\": \\\"cold, wintery, urban\\\"\\n    },\\n    \\\"camera_settings\\\": {\\n      \\\"lens_type\\\": \\\"wide_angle_smartphone_lens\\\",\\n      \\\"perspective\\\": \\\"eye_level\\\",\\n      \\\"depth_of_field\\\": \\\"moderate_focus_falloff\\\",\\n      \\\"focus_point\\\": \\\"subject_full_body\\\",\\n      \\\"grain\\\": \\\"visible_iso_noise\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"summary\\\": \\\"Mixed lighting with strong atmospheric color cast\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"id\\\": \\\"light_source_1\\\",\\n          \\\"type\\\": \\\"sky_glow_light_pollution\\\",\\n          \\\"color\\\": \\\"deep_orange_red\\\",\\n          \\\"intensity\\\": \\\"high_ambient\\\",\\n          \\\"angle\\\": \\\"overhead_diffused\\\",\\n          \\\"effect\\\": \\\"casts_reddish_hue_on_snow_and_background\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_2\\\",\\n          \\\"type\\\": \\\"street_lamps\\\",\\n          \\\"color\\\": \\\"warm_yellow\\\",\\n          \\\"intensity\\\": \\\"moderate\\\",\\n          \\\"angle\\\": \\\"background_scattered\\\",\\n          \\\"effect\\\": \\\"illuminates_buildings_and_parked_cars\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_3\\\",\\n          \\\"type\\\": \\\"camera_flash_or_direct_source\\\",\\n          \\\"color\\\": \\\"cool_white\\\",\\n          \\\"intensity\\\": \\\"high\\\",\\n          \\\"angle\\\": \\\"frontal\\\",\\n          \\\"effect\\\": \\\"highlights_subject_face_legs_and_jacket_texture\\\"\\n        }\\n      ]\\n    },\\n    \\\"people\\\": [\\n      {\\n        \\\"id\\\": \\\"person_1\\\",\\n        \\\"demographics\\\": {\\n          \\\"gender\\\": \\\"female\\\",\\n          \\\"age_group\\\": \\\"young_adult\\\",\\n          \\\"body_type\\\": \\\"slender_fit\\\"\\n        },\\n        \\\"orientation\\\": {\\n          \\\"body_direction\\\": \\\"facing_camera_angled_right\\\",\\n          \\\"face_direction\\\": \\\"facing_camera\\\",\\n          \\\"gaze\\\": \\\"towards_camera_slightly_down\\\"\\n        },\\n        \\\"emotion_and_attitude\\\": {\\n          \\\"primary_emotion\\\": \\\"playful_shy\\\",\\n          \\\"secondary_emotion\\\": \\\"joyful\\\",\\n          \\\"sensuality\\\": \\\"moderate_playful_allure\\\",\\n          \\\"vibe\\\": \\\"candid_winter_fun\\\",\\n          \\\"posture_impact\\\": \\\"relaxed_stance_conveys_comfort_despite_cold\\\"\\n        },\\n        \\\"pose_details\\\": {\\n          \\\"general\\\": \\\"standing_full_body\\\",\\n          \\\"feet_position\\\": \\\"left_foot_planted_right_foot_slightly_forward_relaxed\\\",\\n          \\\"hand_position\\\": {\\n            \\\"left_hand\\\": \\\"raised_covering_mouth_fingers_curled\\\",\\n            \\\"right_hand\\\": \\\"hanging_loose_by_side\\\"\\n          },\\n          \\\"visible_extent\\\": \\\"full_body_head_to_toe\\\"\\n        },\\n        \\\"head_and_face\\\": {\\n          \\\"hair\\\": {\\n            \\\"color\\\": \\\"dark_brown\\\",\\n            \\\"style\\\": \\\"loose_waves_shoulder_length\\\",\\n            \\\"texture\\\": \\\"thick_voluminous\\\",\\n            \\\"condition\\\": \\\"speckled_with_snowflakes\\\"\\n          },\\n          \\\"face_structure\\\": {\\n            \\\"shape\\\": \\\"oval\\\",\\n            \\\"forehead\\\": \\\"partially_covered_by_hair_parting\\\",\\n            \\\"eyes\\\": \\\"dark_slightly_squinting_smiling\\\",\\n            \\\"nose\\\": \\\"partially_obscured_by_hand\\\",\\n            \\\"mouth\\\": \\\"covered_by_hand_hiding_smile\\\",\\n            \\\"skin_tone\\\": \\\"fair_illuminated_by_flash\\\"\\n          },\\n          \\\"makeup\\\": {\\n            \\\"style\\\": \\\"natural_minimal\\\",\\n            \\\"visible_details\\\": \\\"red_nail_polish_visible_on_hand\\\"\\n          }\\n        },\\n        \\\"body_analysis\\\": {\\n          \\\"skin_tone\\\": \\\"fair_tan_on_legs\\\",\\n          \\\"neck\\\": \\\"covered_by_jacket_collar\\\",\\n          \\\"shoulders\\\": \\\"broadened_by_oversized_jacket\\\",\\n          \\\"chest\\\": {\\n            \\\"ratio_to_body\\\": \\\"obscured_by_thick_outerwear\\\",\\n            \\\"visibility\\\": \\\"hidden\\\",\\n            \\\"bra_status\\\": \\\"indeterminate\\\"\\n          },\\n          \\\"waist_belly\\\": {\\n            \\\"ratio\\\": \\\"obscured_by_straight_cut_jacket\\\",\\n            \\\"visibility\\\": \\\"hidden\\\"\\n          },\\n          \\\"hips_glutes\\\": {\\n            \\\"ratio\\\": \\\"standard_to_slender_frame\\\",\\n            \\\"visibility\\\": \\\"partially_covered_by_jacket_hem\\\"\\n          },\\n          \\\"legs\\\": {\\n            \\\"description\\\": \\\"prominent_slender_toned\\\",\\n            \\\"visibility\\\": \\\"exposed_from_mid_thigh_to_knee\\\",\\n            \\\"ratio\\\": \\\"long_relative_to_torso\\\"\\n          }\\n        },\\n        \\\"clothing_and_accessories\\\": {\\n          \\\"outerwear\\\": {\\n            \\\"item\\\": \\\"shearling_aviator_jacket\\\",\\n            \\\"color\\\": \\\"black_with_white_lining\\\",\\n            \\\"material\\\": \\\"leather_faux_leather_wool\\\",\\n            \\\"fit\\\": \\\"oversized_boxy\\\",\\n            \\\"lighting_effect\\\": \\\"absorbs_light_reflects_snow_flakes\\\"\\n          },\\n          \\\"lower_body\\\": {\\n            \\\"item\\\": \\\"mini_skirt_or_dress_hem\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"visibility\\\": \\\"barely_visible_under_jacket\\\"\\n          },\\n          \\\"leg_wear\\\": {\\n            \\\"item\\\": \\\"pantyhose_tights\\\",\\n            \\\"finish\\\": \\\"shiny_glossy\\\",\\n            \\\"color\\\": \\\"nude_beige\\\",\\n            \\\"lighting_effect\\\": \\\"highly_reflective_of_flash\\\"\\n          },\\n          \\\"footwear\\\": {\\n            \\\"item\\\": \\\"knee_high_boots\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"material\\\": \\\"leather_synthetic\\\",\\n            \\\"condition\\\": \\\"covered_in_snow_at_base\\\",\\n            \\\"style\\\": \\\"flat_or_low_heel_practical\\\"\\n          },\\n          \\\"accessories\\\": {\\n            \\\"jewelry\\\": \\\"ring_on_left_ring_finger_silver\\\"\\n          }\\n        }\\n      }\\n    ],\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"vehicles\\\",\\n        \\\"description\\\": \\\"sedan_cars_parked_in_rows\\\",\\n        \\\"state\\\": \\\"stationary_covered_in_snow\\\",\\n        \\\"colors\\\": [\\\"grey\\\", \\\"white\\\", \\\"silver\\\"],\\n        \\\"purpose\\\": \\\"background_context_residential_parking\\\",\\n        \\\"relation\\\": \\\"behind_subject_creating_depth\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"buildings\\\",\\n        \\\"description\\\": \\\"multi_story_apartment_complexes\\\",\\n        \\\"style\\\": \\\"modern_concrete_architecture\\\",\\n        \\\"colors\\\": [\\\"beige\\\", \\\"brown_trim\\\"],\\n        \\\"location\\\": \\\"background_left_and_right\\\",\\n        \\\"purpose\\\": \\\"encloses_scene\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"snow\\\",\\n        \\\"description\\\": \\\"ground_cover_and_falling_flakes\\\",\\n        \\\"texture\\\": \\\"disturbed_by_tire_tracks_and_footprints\\\",\\n        \\\"color\\\": \\\"white_reflecting_orange_sky\\\",\\n        \\\"location\\\": \\\"foreground_and_background\\\",\\n        \\\"purpose\\\": \\\"defines_atmosphere\\\"\\n      }\\n    ],\\n    \\\"negative_prompt\\\": \\\"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\\\"\\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    \\\"meta\\\": {\\n      \\\"type\\\": \\\"photorealistic\\\",\\n      \\\"style\\\": \\\"candid_night_portrait\\\",\\n      \\\"subject_count\\\": 1\\n    },\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"outdoor\\\",\\n      \\\"location\\\": \\\"residential_complex_parking_lot\\\",\\n      \\\"weather\\\": \\\"heavy_snowfall\\\",\\n      \\\"time_of_day\\\": \\\"night\\\",\\n      \\\"atmosphere\\\": \\\"cold, wintery, urban\\\"\\n    },\\n    \\\"camera_settings\\\": {\\n      \\\"lens_type\\\": \\\"wide_angle_smartphone_lens\\\",\\n      \\\"perspective\\\": \\\"eye_level\\\",\\n      \\\"depth_of_field\\\": \\\"moderate_focus_falloff\\\",\\n      \\\"focus_point\\\": \\\"subject_full_body\\\",\\n      \\\"grain\\\": \\\"visible_iso_noise\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"summary\\\": \\\"Mixed lighting with strong atmospheric color cast\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"id\\\": \\\"light_source_1\\\",\\n          \\\"type\\\": \\\"sky_glow_light_pollution\\\",\\n          \\\"color\\\": \\\"deep_orange_red\\\",\\n          \\\"intensity\\\": \\\"high_ambient\\\",\\n          \\\"angle\\\": \\\"overhead_diffused\\\",\\n          \\\"effect\\\": \\\"casts_reddish_hue_on_snow_and_background\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_2\\\",\\n          \\\"type\\\": \\\"street_lamps\\\",\\n          \\\"color\\\": \\\"warm_yellow\\\",\\n          \\\"intensity\\\": \\\"moderate\\\",\\n          \\\"angle\\\": \\\"background_scattered\\\",\\n          \\\"effect\\\": \\\"illuminates_buildings_and_parked_cars\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_3\\\",\\n          \\\"type\\\": \\\"camera_flash_or_direct_source\\\",\\n          \\\"color\\\": \\\"cool_white\\\",\\n          \\\"intensity\\\": \\\"high\\\",\\n          \\\"angle\\\": \\\"frontal\\\",\\n          \\\"effect\\\": \\\"highlights_subject_face_legs_and_jacket_texture\\\"\\n        }\\n      ]\\n    },\\n    \\\"people\\\": [\\n      {\\n        \\\"id\\\": \\\"person_1\\\",\\n        \\\"demographics\\\": {\\n          \\\"gender\\\": \\\"female\\\",\\n          \\\"age_group\\\": \\\"young_adult\\\",\\n          \\\"body_type\\\": \\\"slender_fit\\\"\\n        },\\n        \\\"orientation\\\": {\\n          \\\"body_direction\\\": \\\"facing_camera_angled_right\\\",\\n          \\\"face_direction\\\": \\\"facing_camera\\\",\\n          \\\"gaze\\\": \\\"towards_camera_slightly_down\\\"\\n        },\\n        \\\"emotion_and_attitude\\\": {\\n          \\\"primary_emotion\\\": \\\"playful_shy\\\",\\n          \\\"secondary_emotion\\\": \\\"joyful\\\",\\n          \\\"sensuality\\\": \\\"moderate_playful_allure\\\",\\n          \\\"vibe\\\": \\\"candid_winter_fun\\\",\\n          \\\"posture_impact\\\": \\\"relaxed_stance_conveys_comfort_despite_cold\\\"\\n        },\\n        \\\"pose_details\\\": {\\n          \\\"general\\\": \\\"standing_full_body\\\",\\n          \\\"feet_position\\\": \\\"left_foot_planted_right_foot_slightly_forward_relaxed\\\",\\n          \\\"hand_position\\\": {\\n            \\\"left_hand\\\": \\\"raised_covering_mouth_fingers_curled\\\",\\n            \\\"right_hand\\\": \\\"hanging_loose_by_side\\\"\\n          },\\n          \\\"visible_extent\\\": \\\"full_body_head_to_toe\\\"\\n        },\\n        \\\"head_and_face\\\": {\\n          \\\"hair\\\": {\\n            \\\"color\\\": \\\"dark_brown\\\",\\n            \\\"style\\\": \\\"loose_waves_shoulder_length\\\",\\n            \\\"texture\\\": \\\"thick_voluminous\\\",\\n            \\\"condition\\\": \\\"speckled_with_snowflakes\\\"\\n          },\\n          \\\"face_structure\\\": {\\n            \\\"shape\\\": \\\"oval\\\",\\n            \\\"forehead\\\": \\\"partially_covered_by_hair_parting\\\",\\n            \\\"eyes\\\": \\\"dark_slightly_squinting_smiling\\\",\\n            \\\"nose\\\": \\\"partially_obscured_by_hand\\\",\\n            \\\"mouth\\\": \\\"covered_by_hand_hiding_smile\\\",\\n            \\\"skin_tone\\\": \\\"fair_illuminated_by_flash\\\"\\n          },\\n          \\\"makeup\\\": {\\n            \\\"style\\\": \\\"natural_minimal\\\",\\n            \\\"visible_details\\\": \\\"red_nail_polish_visible_on_hand\\\"\\n          }\\n        },\\n        \\\"body_analysis\\\": {\\n          \\\"skin_tone\\\": \\\"fair_tan_on_legs\\\",\\n          \\\"neck\\\": \\\"covered_by_jacket_collar\\\",\\n          \\\"shoulders\\\": \\\"broadened_by_oversized_jacket\\\",\\n          \\\"chest\\\": {\\n            \\\"ratio_to_body\\\": \\\"obscured_by_thick_outerwear\\\",\\n            \\\"visibility\\\": \\\"hidden\\\",\\n            \\\"bra_status\\\": \\\"indeterminate\\\"\\n          },\\n          \\\"waist_belly\\\": {\\n            \\\"ratio\\\": \\\"obscured_by_straight_cut_jacket\\\",\\n            \\\"visibility\\\": \\\"hidden\\\"\\n          },\\n          \\\"hips_glutes\\\": {\\n            \\\"ratio\\\": \\\"standard_to_slender_frame\\\",\\n            \\\"visibility\\\": \\\"partially_covered_by_jacket_hem\\\"\\n          },\\n          \\\"legs\\\": {\\n            \\\"description\\\": \\\"prominent_slender_toned\\\",\\n            \\\"visibility\\\": \\\"exposed_from_mid_thigh_to_knee\\\",\\n            \\\"ratio\\\": \\\"long_relative_to_torso\\\"\\n          }\\n        },\\n        \\\"clothing_and_accessories\\\": {\\n          \\\"outerwear\\\": {\\n            \\\"item\\\": \\\"shearling_aviator_jacket\\\",\\n            \\\"color\\\": \\\"black_with_white_lining\\\",\\n            \\\"material\\\": \\\"leather_faux_leather_wool\\\",\\n            \\\"fit\\\": \\\"oversized_boxy\\\",\\n            \\\"lighting_effect\\\": \\\"absorbs_light_reflects_snow_flakes\\\"\\n          },\\n          \\\"lower_body\\\": {\\n            \\\"item\\\": \\\"mini_skirt_or_dress_hem\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"visibility\\\": \\\"barely_visible_under_jacket\\\"\\n          },\\n          \\\"leg_wear\\\": {\\n            \\\"item\\\": \\\"pantyhose_tights\\\",\\n            \\\"finish\\\": \\\"shiny_glossy\\\",\\n            \\\"color\\\": \\\"nude_beige\\\",\\n            \\\"lighting_effect\\\": \\\"highly_reflective_of_flash\\\"\\n          },\\n          \\\"footwear\\\": {\\n            \\\"item\\\": \\\"knee_high_boots\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"material\\\": \\\"leather_synthetic\\\",\\n            \\\"condition\\\": \\\"covered_in_snow_at_base\\\",\\n            \\\"style\\\": \\\"flat_or_low_heel_practical\\\"\\n          },\\n          \\\"accessories\\\": {\\n            \\\"jewelry\\\": \\\"ring_on_left_ring_finger_silver\\\"\\n          }\\n        }\\n      }\\n    ],\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"vehicles\\\",\\n        \\\"description\\\": \\\"sedan_cars_parked_in_rows\\\",\\n        \\\"state\\\": \\\"stationary_covered_in_snow\\\",\\n        \\\"colors\\\": [\\\"grey\\\", \\\"white\\\", \\\"silver\\\"],\\n        \\\"purpose\\\": \\\"background_context_residential_parking\\\",\\n        \\\"relation\\\": \\\"behind_subject_creating_depth\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"buildings\\\",\\n        \\\"description\\\": \\\"multi_story_apartment_complexes\\\",\\n        \\\"style\\\": \\\"modern_concrete_architecture\\\",\\n        \\\"colors\\\": [\\\"beige\\\", \\\"brown_trim\\\"],\\n        \\\"location\\\": \\\"background_left_and_right\\\",\\n        \\\"purpose\\\": \\\"encloses_scene\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"snow\\\",\\n        \\\"description\\\": \\\"ground_cover_and_falling_flakes\\\",\\n        \\\"texture\\\": \\\"disturbed_by_tire_tracks_and_footprints\\\",\\n        \\\"color\\\": \\\"white_reflecting_orange_sky\\\",\\n        \\\"location\\\": \\\"foreground_and_background\\\",\\n        \\\"purpose\\\": \\\"defines_atmosphere\\\"\\n      }\\n    ],\\n    \\\"negative_prompt\\\": \\\"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\\\"\\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    \\\"meta\\\": {\\n      \\\"type\\\": \\\"photorealistic\\\",\\n      \\\"style\\\": \\\"candid_night_portrait\\\",\\n      \\\"subject_count\\\": 1\\n    },\\n    \\\"environment\\\": {\\n      \\\"type\\\": \\\"outdoor\\\",\\n      \\\"location\\\": \\\"residential_complex_parking_lot\\\",\\n      \\\"weather\\\": \\\"heavy_snowfall\\\",\\n      \\\"time_of_day\\\": \\\"night\\\",\\n      \\\"atmosphere\\\": \\\"cold, wintery, urban\\\"\\n    },\\n    \\\"camera_settings\\\": {\\n      \\\"lens_type\\\": \\\"wide_angle_smartphone_lens\\\",\\n      \\\"perspective\\\": \\\"eye_level\\\",\\n      \\\"depth_of_field\\\": \\\"moderate_focus_falloff\\\",\\n      \\\"focus_point\\\": \\\"subject_full_body\\\",\\n      \\\"grain\\\": \\\"visible_iso_noise\\\"\\n    },\\n    \\\"lighting\\\": {\\n      \\\"summary\\\": \\\"Mixed lighting with strong atmospheric color cast\\\",\\n      \\\"sources\\\": [\\n        {\\n          \\\"id\\\": \\\"light_source_1\\\",\\n          \\\"type\\\": \\\"sky_glow_light_pollution\\\",\\n          \\\"color\\\": \\\"deep_orange_red\\\",\\n          \\\"intensity\\\": \\\"high_ambient\\\",\\n          \\\"angle\\\": \\\"overhead_diffused\\\",\\n          \\\"effect\\\": \\\"casts_reddish_hue_on_snow_and_background\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_2\\\",\\n          \\\"type\\\": \\\"street_lamps\\\",\\n          \\\"color\\\": \\\"warm_yellow\\\",\\n          \\\"intensity\\\": \\\"moderate\\\",\\n          \\\"angle\\\": \\\"background_scattered\\\",\\n          \\\"effect\\\": \\\"illuminates_buildings_and_parked_cars\\\"\\n        },\\n        {\\n          \\\"id\\\": \\\"light_source_3\\\",\\n          \\\"type\\\": \\\"camera_flash_or_direct_source\\\",\\n          \\\"color\\\": \\\"cool_white\\\",\\n          \\\"intensity\\\": \\\"high\\\",\\n          \\\"angle\\\": \\\"frontal\\\",\\n          \\\"effect\\\": \\\"highlights_subject_face_legs_and_jacket_texture\\\"\\n        }\\n      ]\\n    },\\n    \\\"people\\\": [\\n      {\\n        \\\"id\\\": \\\"person_1\\\",\\n        \\\"demographics\\\": {\\n          \\\"gender\\\": \\\"female\\\",\\n          \\\"age_group\\\": \\\"young_adult\\\",\\n          \\\"body_type\\\": \\\"slender_fit\\\"\\n        },\\n        \\\"orientation\\\": {\\n          \\\"body_direction\\\": \\\"facing_camera_angled_right\\\",\\n          \\\"face_direction\\\": \\\"facing_camera\\\",\\n          \\\"gaze\\\": \\\"towards_camera_slightly_down\\\"\\n        },\\n        \\\"emotion_and_attitude\\\": {\\n          \\\"primary_emotion\\\": \\\"playful_shy\\\",\\n          \\\"secondary_emotion\\\": \\\"joyful\\\",\\n          \\\"sensuality\\\": \\\"moderate_playful_allure\\\",\\n          \\\"vibe\\\": \\\"candid_winter_fun\\\",\\n          \\\"posture_impact\\\": \\\"relaxed_stance_conveys_comfort_despite_cold\\\"\\n        },\\n        \\\"pose_details\\\": {\\n          \\\"general\\\": \\\"standing_full_body\\\",\\n          \\\"feet_position\\\": \\\"left_foot_planted_right_foot_slightly_forward_relaxed\\\",\\n          \\\"hand_position\\\": {\\n            \\\"left_hand\\\": \\\"raised_covering_mouth_fingers_curled\\\",\\n            \\\"right_hand\\\": \\\"hanging_loose_by_side\\\"\\n          },\\n          \\\"visible_extent\\\": \\\"full_body_head_to_toe\\\"\\n        },\\n        \\\"head_and_face\\\": {\\n          \\\"hair\\\": {\\n            \\\"color\\\": \\\"dark_brown\\\",\\n            \\\"style\\\": \\\"loose_waves_shoulder_length\\\",\\n            \\\"texture\\\": \\\"thick_voluminous\\\",\\n            \\\"condition\\\": \\\"speckled_with_snowflakes\\\"\\n          },\\n          \\\"face_structure\\\": {\\n            \\\"shape\\\": \\\"oval\\\",\\n            \\\"forehead\\\": \\\"partially_covered_by_hair_parting\\\",\\n            \\\"eyes\\\": \\\"dark_slightly_squinting_smiling\\\",\\n            \\\"nose\\\": \\\"partially_obscured_by_hand\\\",\\n            \\\"mouth\\\": \\\"covered_by_hand_hiding_smile\\\",\\n            \\\"skin_tone\\\": \\\"fair_illuminated_by_flash\\\"\\n          },\\n          \\\"makeup\\\": {\\n            \\\"style\\\": \\\"natural_minimal\\\",\\n            \\\"visible_details\\\": \\\"red_nail_polish_visible_on_hand\\\"\\n          }\\n        },\\n        \\\"body_analysis\\\": {\\n          \\\"skin_tone\\\": \\\"fair_tan_on_legs\\\",\\n          \\\"neck\\\": \\\"covered_by_jacket_collar\\\",\\n          \\\"shoulders\\\": \\\"broadened_by_oversized_jacket\\\",\\n          \\\"chest\\\": {\\n            \\\"ratio_to_body\\\": \\\"obscured_by_thick_outerwear\\\",\\n            \\\"visibility\\\": \\\"hidden\\\",\\n            \\\"bra_status\\\": \\\"indeterminate\\\"\\n          },\\n          \\\"waist_belly\\\": {\\n            \\\"ratio\\\": \\\"obscured_by_straight_cut_jacket\\\",\\n            \\\"visibility\\\": \\\"hidden\\\"\\n          },\\n          \\\"hips_glutes\\\": {\\n            \\\"ratio\\\": \\\"standard_to_slender_frame\\\",\\n            \\\"visibility\\\": \\\"partially_covered_by_jacket_hem\\\"\\n          },\\n          \\\"legs\\\": {\\n            \\\"description\\\": \\\"prominent_slender_toned\\\",\\n            \\\"visibility\\\": \\\"exposed_from_mid_thigh_to_knee\\\",\\n            \\\"ratio\\\": \\\"long_relative_to_torso\\\"\\n          }\\n        },\\n        \\\"clothing_and_accessories\\\": {\\n          \\\"outerwear\\\": {\\n            \\\"item\\\": \\\"shearling_aviator_jacket\\\",\\n            \\\"color\\\": \\\"black_with_white_lining\\\",\\n            \\\"material\\\": \\\"leather_faux_leather_wool\\\",\\n            \\\"fit\\\": \\\"oversized_boxy\\\",\\n            \\\"lighting_effect\\\": \\\"absorbs_light_reflects_snow_flakes\\\"\\n          },\\n          \\\"lower_body\\\": {\\n            \\\"item\\\": \\\"mini_skirt_or_dress_hem\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"visibility\\\": \\\"barely_visible_under_jacket\\\"\\n          },\\n          \\\"leg_wear\\\": {\\n            \\\"item\\\": \\\"pantyhose_tights\\\",\\n            \\\"finish\\\": \\\"shiny_glossy\\\",\\n            \\\"color\\\": \\\"nude_beige\\\",\\n            \\\"lighting_effect\\\": \\\"highly_reflective_of_flash\\\"\\n          },\\n          \\\"footwear\\\": {\\n            \\\"item\\\": \\\"knee_high_boots\\\",\\n            \\\"color\\\": \\\"black\\\",\\n            \\\"material\\\": \\\"leather_synthetic\\\",\\n            \\\"condition\\\": \\\"covered_in_snow_at_base\\\",\\n            \\\"style\\\": \\\"flat_or_low_heel_practical\\\"\\n          },\\n          \\\"accessories\\\": {\\n            \\\"jewelry\\\": \\\"ring_on_left_ring_finger_silver\\\"\\n          }\\n        }\\n      }\\n    ],\\n    \\\"objects_in_scene\\\": [\\n      {\\n        \\\"object\\\": \\\"vehicles\\\",\\n        \\\"description\\\": \\\"sedan_cars_parked_in_rows\\\",\\n        \\\"state\\\": \\\"stationary_covered_in_snow\\\",\\n        \\\"colors\\\": [\\\"grey\\\", \\\"white\\\", \\\"silver\\\"],\\n        \\\"purpose\\\": \\\"background_context_residential_parking\\\",\\n        \\\"relation\\\": \\\"behind_subject_creating_depth\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"buildings\\\",\\n        \\\"description\\\": \\\"multi_story_apartment_complexes\\\",\\n        \\\"style\\\": \\\"modern_concrete_architecture\\\",\\n        \\\"colors\\\": [\\\"beige\\\", \\\"brown_trim\\\"],\\n        \\\"location\\\": \\\"background_left_and_right\\\",\\n        \\\"purpose\\\": \\\"encloses_scene\\\"\\n      },\\n      {\\n        \\\"object\\\": \\\"snow\\\",\\n        \\\"description\\\": \\\"ground_cover_and_falling_flakes\\\",\\n        \\\"texture\\\": \\\"disturbed_by_tire_tracks_and_footprints\\\",\\n        \\\"color\\\": \\\"white_reflecting_orange_sky\\\",\\n        \\\"location\\\": \\\"foreground_and_background\\\",\\n        \\\"purpose\\\": \\\"defines_atmosphere\\\"\\n      }\\n    ],\\n    \\\"negative_prompt\\\": \\\"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\\\"\\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    \"meta\": {\n      \"type\": \"photorealistic\",\n      \"style\": \"candid_night_portrait\",\n      \"subject_count\": 1\n    },\n    \"environment\": {\n      \"type\": \"outdoor\",\n      \"location\": \"residential_complex_parking_lot\",\n      \"weather\": \"heavy_snowfall\",\n      \"time_of_day\": \"night\",\n      \"atmosphere\": \"cold, wintery, urban\"\n    },\n    \"camera_settings\": {\n      \"lens_type\": \"wide_angle_smartphone_lens\",\n      \"perspective\": \"eye_level\",\n      \"depth_of_field\": \"moderate_focus_falloff\",\n      \"focus_point\": \"subject_full_body\",\n      \"grain\": \"visible_iso_noise\"\n    },\n    \"lighting\": {\n      \"summary\": \"Mixed lighting with strong atmospheric color cast\",\n      \"sources\": [\n        {\n          \"id\": \"light_source_1\",\n          \"type\": \"sky_glow_light_pollution\",\n          \"color\": \"deep_orange_red\",\n          \"intensity\": \"high_ambient\",\n          \"angle\": \"overhead_diffused\",\n          \"effect\": \"casts_reddish_hue_on_snow_and_background\"\n        },\n        {\n          \"id\": \"light_source_2\",\n          \"type\": \"street_lamps\",\n          \"color\": \"warm_yellow\",\n          \"intensity\": \"moderate\",\n          \"angle\": \"background_scattered\",\n          \"effect\": \"illuminates_buildings_and_parked_cars\"\n        },\n        {\n          \"id\": \"light_source_3\",\n          \"type\": \"camera_flash_or_direct_source\",\n          \"color\": \"cool_white\",\n          \"intensity\": \"high\",\n          \"angle\": \"frontal\",\n          \"effect\": \"highlights_subject_face_legs_and_jacket_texture\"\n        }\n      ]\n    },\n    \"people\": [\n      {\n        \"id\": \"person_1\",\n        \"demographics\": {\n          \"gender\": \"female\",\n          \"age_group\": \"young_adult\",\n          \"body_type\": \"slender_fit\"\n        },\n        \"orientation\": {\n          \"body_direction\": \"facing_camera_angled_right\",\n          \"face_direction\": \"facing_camera\",\n          \"gaze\": \"towards_camera_slightly_down\"\n        },\n        \"emotion_and_attitude\": {\n          \"primary_emotion\": \"playful_shy\",\n          \"secondary_emotion\": \"joyful\",\n          \"sensuality\": \"moderate_playful_allure\",\n          \"vibe\": \"candid_winter_fun\",\n          \"posture_impact\": \"relaxed_stance_conveys_comfort_despite_cold\"\n        },\n        \"pose_details\": {\n          \"general\": \"standing_full_body\",\n          \"feet_position\": \"left_foot_planted_right_foot_slightly_forward_relaxed\",\n          \"hand_position\": {\n            \"left_hand\": \"raised_covering_mouth_fingers_curled\",\n            \"right_hand\": \"hanging_loose_by_side\"\n          },\n          \"visible_extent\": \"full_body_head_to_toe\"\n        },\n        \"head_and_face\": {\n          \"hair\": {\n            \"color\": \"dark_brown\",\n            \"style\": \"loose_waves_shoulder_length\",\n            \"texture\": \"thick_voluminous\",\n            \"condition\": \"speckled_with_snowflakes\"\n          },\n          \"face_structure\": {\n            \"shape\": \"oval\",\n            \"forehead\": \"partially_covered_by_hair_parting\",\n            \"eyes\": \"dark_slightly_squinting_smiling\",\n            \"nose\": \"partially_obscured_by_hand\",\n            \"mouth\": \"covered_by_hand_hiding_smile\",\n            \"skin_tone\": \"fair_illuminated_by_flash\"\n          },\n          \"makeup\": {\n            \"style\": \"natural_minimal\",\n            \"visible_details\": \"red_nail_polish_visible_on_hand\"\n          }\n        },\n        \"body_analysis\": {\n          \"skin_tone\": \"fair_tan_on_legs\",\n          \"neck\": \"covered_by_jacket_collar\",\n          \"shoulders\": \"broadened_by_oversized_jacket\",\n          \"chest\": {\n            \"ratio_to_body\": \"obscured_by_thick_outerwear\",\n            \"visibility\": \"hidden\",\n            \"bra_status\": \"indeterminate\"\n          },\n          \"waist_belly\": {\n            \"ratio\": \"obscured_by_straight_cut_jacket\",\n            \"visibility\": \"hidden\"\n          },\n          \"hips_glutes\": {\n            \"ratio\": \"standard_to_slender_frame\",\n            \"visibility\": \"partially_covered_by_jacket_hem\"\n          },\n          \"legs\": {\n            \"description\": \"prominent_slender_toned\",\n            \"visibility\": \"exposed_from_mid_thigh_to_knee\",\n            \"ratio\": \"long_relative_to_torso\"\n          }\n        },\n        \"clothing_and_accessories\": {\n          \"outerwear\": {\n            \"item\": \"shearling_aviator_jacket\",\n            \"color\": \"black_with_white_lining\",\n            \"material\": \"leather_faux_leather_wool\",\n            \"fit\": \"oversized_boxy\",\n            \"lighting_effect\": \"absorbs_light_reflects_snow_flakes\"\n          },\n          \"lower_body\": {\n            \"item\": \"mini_skirt_or_dress_hem\",\n            \"color\": \"black\",\n            \"visibility\": \"barely_visible_under_jacket\"\n          },\n          \"leg_wear\": {\n            \"item\": \"pantyhose_tights\",\n            \"finish\": \"shiny_glossy\",\n            \"color\": \"nude_beige\",\n            \"lighting_effect\": \"highly_reflective_of_flash\"\n          },\n          \"footwear\": {\n            \"item\": \"knee_high_boots\",\n            \"color\": \"black\",\n            \"material\": \"leather_synthetic\",\n            \"condition\": \"covered_in_snow_at_base\",\n            \"style\": \"flat_or_low_heel_practical\"\n          },\n          \"accessories\": {\n            \"jewelry\": \"ring_on_left_ring_finger_silver\"\n          }\n        }\n      }\n    ],\n    \"objects_in_scene\": [\n      {\n        \"object\": \"vehicles\",\n        \"description\": \"sedan_cars_parked_in_rows\",\n        \"state\": \"stationary_covered_in_snow\",\n        \"colors\": [\"grey\", \"white\", \"silver\"],\n        \"purpose\": \"background_context_residential_parking\",\n        \"relation\": \"behind_subject_creating_depth\"\n      },\n      {\n        \"object\": \"buildings\",\n        \"description\": \"multi_story_apartment_complexes\",\n        \"style\": \"modern_concrete_architecture\",\n        \"colors\": [\"beige\", \"brown_trim\"],\n        \"location\": \"background_left_and_right\",\n        \"purpose\": \"encloses_scene\"\n      },\n      {\n        \"object\": \"snow\",\n        \"description\": \"ground_cover_and_falling_flakes\",\n        \"texture\": \"disturbed_by_tire_tracks_and_footprints\",\n        \"color\": \"white_reflecting_orange_sky\",\n        \"location\": \"foreground_and_background\",\n        \"purpose\": \"defines_atmosphere\"\n      }\n    ],\n    \"negative_prompt\": \"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\"\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": "Image Analysis for Night Portrait in Heavy Snowfall",
        "item": "https://runapi.ai/prompts/prm_GqW79wzlyMLeHVGv4Od3m5K1"
      }
    ]
  },
  {
    "@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": "Image Analysis for Night Portrait in Heavy Snowfall",
    "text": "{\n  \"image_analysis\": {\n    \"meta\": {\n      \"type\": \"photorealistic\",\n      \"style\": \"candid_night_portrait\",\n      \"subject_count\": 1\n    },\n    \"environment\": {\n      \"type\": \"outdoor\",\n      \"location\": \"residential_complex_parking_lot\",\n      \"weather\": \"heavy_snowfall\",\n      \"time_of_day\": \"night\",\n      \"atmosphere\": \"cold, wintery, urban\"\n    },\n    \"camera_settings\": {\n      \"lens_type\": \"wide_angle_smartphone_lens\",\n      \"perspective\": \"eye_level\",\n      \"depth_of_field\": \"moderate_focus_falloff\",\n      \"focus_point\": \"subject_full_body\",\n      \"grain\": \"visible_iso_noise\"\n    },\n    \"lighting\": {\n      \"summary\": \"Mixed lighting with strong atmospheric color cast\",\n      \"sources\": [\n        {\n          \"id\": \"light_source_1\",\n          \"type\": \"sky_glow_light_pollution\",\n          \"color\": \"deep_orange_red\",\n          \"intensity\": \"high_ambient\",\n          \"angle\": \"overhead_diffused\",\n          \"effect\": \"casts_reddish_hue_on_snow_and_background\"\n        },\n        {\n          \"id\": \"light_source_2\",\n          \"type\": \"street_lamps\",\n          \"color\": \"warm_yellow\",\n          \"intensity\": \"moderate\",\n          \"angle\": \"background_scattered\",\n          \"effect\": \"illuminates_buildings_and_parked_cars\"\n        },\n        {\n          \"id\": \"light_source_3\",\n          \"type\": \"camera_flash_or_direct_source\",\n          \"color\": \"cool_white\",\n          \"intensity\": \"high\",\n          \"angle\": \"frontal\",\n          \"effect\": \"highlights_subject_face_legs_and_jacket_texture\"\n        }\n      ]\n    },\n    \"people\": [\n      {\n        \"id\": \"person_1\",\n        \"demographics\": {\n          \"gender\": \"female\",\n          \"age_group\": \"young_adult\",\n          \"body_type\": \"slender_fit\"\n        },\n        \"orientation\": {\n          \"body_direction\": \"facing_camera_angled_right\",\n          \"face_direction\": \"facing_camera\",\n          \"gaze\": \"towards_camera_slightly_down\"\n        },\n        \"emotion_and_attitude\": {\n          \"primary_emotion\": \"playful_shy\",\n          \"secondary_emotion\": \"joyful\",\n          \"sensuality\": \"moderate_playful_allure\",\n          \"vibe\": \"candid_winter_fun\",\n          \"posture_impact\": \"relaxed_stance_conveys_comfort_despite_cold\"\n        },\n        \"pose_details\": {\n          \"general\": \"standing_full_body\",\n          \"feet_position\": \"left_foot_planted_right_foot_slightly_forward_relaxed\",\n          \"hand_position\": {\n            \"left_hand\": \"raised_covering_mouth_fingers_curled\",\n            \"right_hand\": \"hanging_loose_by_side\"\n          },\n          \"visible_extent\": \"full_body_head_to_toe\"\n        },\n        \"head_and_face\": {\n          \"hair\": {\n            \"color\": \"dark_brown\",\n            \"style\": \"loose_waves_shoulder_length\",\n            \"texture\": \"thick_voluminous\",\n            \"condition\": \"speckled_with_snowflakes\"\n          },\n          \"face_structure\": {\n            \"shape\": \"oval\",\n            \"forehead\": \"partially_covered_by_hair_parting\",\n            \"eyes\": \"dark_slightly_squinting_smiling\",\n            \"nose\": \"partially_obscured_by_hand\",\n            \"mouth\": \"covered_by_hand_hiding_smile\",\n            \"skin_tone\": \"fair_illuminated_by_flash\"\n          },\n          \"makeup\": {\n            \"style\": \"natural_minimal\",\n            \"visible_details\": \"red_nail_polish_visible_on_hand\"\n          }\n        },\n        \"body_analysis\": {\n          \"skin_tone\": \"fair_tan_on_legs\",\n          \"neck\": \"covered_by_jacket_collar\",\n          \"shoulders\": \"broadened_by_oversized_jacket\",\n          \"chest\": {\n            \"ratio_to_body\": \"obscured_by_thick_outerwear\",\n            \"visibility\": \"hidden\",\n            \"bra_status\": \"indeterminate\"\n          },\n          \"waist_belly\": {\n            \"ratio\": \"obscured_by_straight_cut_jacket\",\n            \"visibility\": \"hidden\"\n          },\n          \"hips_glutes\": {\n            \"ratio\": \"standard_to_slender_frame\",\n            \"visibility\": \"partially_covered_by_jacket_hem\"\n          },\n          \"legs\": {\n            \"description\": \"prominent_slender_toned\",\n            \"visibility\": \"exposed_from_mid_thigh_to_knee\",\n            \"ratio\": \"long_relative_to_torso\"\n          }\n        },\n        \"clothing_and_accessories\": {\n          \"outerwear\": {\n            \"item\": \"shearling_aviator_jacket\",\n            \"color\": \"black_with_white_lining\",\n            \"material\": \"leather_faux_leather_wool\",\n            \"fit\": \"oversized_boxy\",\n            \"lighting_effect\": \"absorbs_light_reflects_snow_flakes\"\n          },\n          \"lower_body\": {\n            \"item\": \"mini_skirt_or_dress_hem\",\n            \"color\": \"black\",\n            \"visibility\": \"barely_visible_under_jacket\"\n          },\n          \"leg_wear\": {\n            \"item\": \"pantyhose_tights\",\n            \"finish\": \"shiny_glossy\",\n            \"color\": \"nude_beige\",\n            \"lighting_effect\": \"highly_reflective_of_flash\"\n          },\n          \"footwear\": {\n            \"item\": \"knee_high_boots\",\n            \"color\": \"black\",\n            \"material\": \"leather_synthetic\",\n            \"condition\": \"covered_in_snow_at_base\",\n            \"style\": \"flat_or_low_heel_practical\"\n          },\n          \"accessories\": {\n            \"jewelry\": \"ring_on_left_ring_finger_silver\"\n          }\n        }\n      }\n    ],\n    \"objects_in_scene\": [\n      {\n        \"object\": \"vehicles\",\n        \"description\": \"sedan_cars_parked_in_rows\",\n        \"state\": \"stationary_covered_in_snow\",\n        \"colors\": [\"grey\", \"white\", \"silver\"],\n        \"purpose\": \"background_context_residential_parking\",\n        \"relation\": \"behind_subject_creating_depth\"\n      },\n      {\n        \"object\": \"buildings\",\n        \"description\": \"multi_story_apartment_complexes\",\n        \"style\": \"modern_concrete_architecture\",\n        \"colors\": [\"beige\", \"brown_trim\"],\n        \"location\": \"background_left_and_right\",\n        \"purpose\": \"encloses_scene\"\n      },\n      {\n        \"object\": \"snow\",\n        \"description\": \"ground_cover_and_falling_flakes\",\n        \"texture\": \"disturbed_by_tire_tracks_and_footprints\",\n        \"color\": \"white_reflecting_orange_sky\",\n        \"location\": \"foreground_and_background\",\n        \"purpose\": \"defines_atmosphere\"\n      }\n    ],\n    \"negative_prompt\": \"daylight, summer, sunshine, dry ground, indoor, studio, blurry face, distorted hands, extra fingers, low resolution, cartoon, painting, illustration, nudity, bikini, swimwear, green grass, blue sky, crowd, men, animals\"\n  }\n}",
    "image": null,
    "about": [
      "image",
      "fashion"
    ]
  }
]
```
