---
title: Rooftop Lifestyle Portrait Prompt —  Prompt | RunAPI | RunAPI
description: Copy this RunAPI prompt, view agent setup steps, and use API code for .
url: https://runapi.ai/prompts/prm_Eknpxvwl4jrESYww40JVoerg.md
canonical: https://runapi.ai/prompts/prm_Eknpxvwl4jrESYww40JVoerg
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 14542
modality: image
endpoint: "/api/v1/runapi/text_to_image"
---

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


# Rooftop Lifestyle Portrait Prompt

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

**Prompts** · Image

## Prompt

```text
{
  "subject": {
    "description": "A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.",
    "body": {
      "type": "female, slim build",
      "details": "light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin",
      "pose": "reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone"
    },
    "face": {
      "expression": "soft smile, slightly squinting eyes due to sunlight, relaxed and confident",
      "gaze_direction": "towards camera",
      "head_tilt": "slight tilt to the right",
      "skin": "smooth, natural skin with sunlight highlights and minimal imperfections"
    },
    "wardrobe": {
      "top": "white fitted t-shirt",
      "bottom": "light blue ripped jeans with knee tears",
      "outerwear": "black jacket casually draped over shoulders",
      "accessories": "sunglasses resting on top of head, minimal jewelry"
    },
    "hair": "loose blonde hair, naturally falling over shoulders with slight sun highlights"
  },
  "scene": {
    "description": "A rooftop terrace during daytime with urban residential buildings in the background.",
    "location": "Outdoor terrace in a city (Mediterranean/European style architecture).",
    "setting": "Rooftop seating area",
    "background_elements": "wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops",
    "lighting": "strong natural sunlight casting sharp shadows",
    "atmosphere": "casual, sunny, relaxed daytime vibe"
  },
  "environment": {
    "ambience": "bright daylight, outdoor, airy",
    "style": "candid lifestyle moment",
    "depth_of_field": "moderate depth of field, subject in focus, background slightly softened but still readable"
  },
  "camera": {
    "device": "iPhone 13 rear camera",
    "mode": "standard photo mode",
    "lens": "wide lens (~26mm equivalent)",
    "angle": "slightly top-down angle, as if standing above subject",
    "aspect_ratio": "4:5",
    "framing": "full body seated framing, subject centered slightly lower in frame",
    "focus": "sharp focus on subject",
    "stability": "handheld"
  },
  "image_quality": {
    "resolution": "standard mobile resolution",
    "grain": "very subtle grain",
    "sharpness": "natural smartphone sharpening",
    "compression_artifacts": "minimal",
    "dynamic_range": "bright highlights with slight clipping in strongest sunlight areas"
  },
  "lighting": {
    "type": "direct sunlight",
    "quality": "harsh, high contrast lighting with strong shadows",
    "effects": "sunlight highlights on hair and skin, sharp shadow edges on ground and chair"
  },
  "color_grading": {
    "tone": "natural daylight",
    "temperature": "slightly warm",
    "contrast": "moderate to high contrast due to sunlight",
    "saturation": "realistic, slightly vibrant",
    "highlights": "bright, slightly blown in sunlit areas",
    "shadows": "defined and darker"
  },
  "rendering": {
    "style": "photorealistic smartphone photography",
    "quality": "clean, natural, unfiltered look",
    "skin_texture": "natural with sunlight reflections",
    "post_processing": "minimal, straight-out-of-camera feel"
  },
  "artifacts": {
    "lens_flare": "very subtle possible sunlight flare",
    "noise_pattern": "minimal",
    "motion_blur": "none",
    "chromatic_aberration": "slight on high contrast edges"
  },
  "constraints": {
    "focus_priority": "subject must remain primary focal point",
    "avoid": "over-processed skin, artificial lighting, studio look, cinematic grading"
  }
}
```

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

Rooftop Lifestyle Portrait Prompt

### Atmosphere

lifestyle / Image

### Technical

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

### Style

blonde, jeans, photorealistic, rooftop, smartphone, sunglasses, sunlight

<!-- /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 | lifestyle |
| Tags | blonde, jeans, photorealistic, rooftop, smartphone, sunglasses, sunlight |

## 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: "{
  "subject": {
    "description": "A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.",
    "body": {
      "type": "female, slim build",
      "details": "light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin",
      "pose": "reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone"
    },
    "face": {
      "expression": "soft smile, slightly squinting eyes due to sunlight, relaxed and confident",
      "gaze_direction": "towards camera",
      "head_tilt": "slight tilt to the right",
      "skin": "smooth, natural skin with sunlight highlights and minimal imperfections"
    },
    "wardrobe": {
      "top": "white fitted t-shirt",
      "bottom": "light blue ripped jeans with knee tears",
      "outerwear": "black jacket casually draped over shoulders",
      "accessories": "sunglasses resting on top of head, minimal jewelry"
    },
    "hair": "loose blonde hair, naturally falling over shoulders with slight sun highlights"
  },
  "scene": {
    "description": "A rooftop terrace during daytime with urban residential buildings in the background.",
    "location": "Outdoor terrace in a city (Mediterranean/European style architecture).",
    "setting": "Rooftop seating area",
    "background_elements": "wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops",
    "lighting": "strong natural sunlight casting sharp shadows",
    "atmosphere": "casual, sunny, relaxed daytime vibe"
  },
  "environment": {
    "ambience": "bright daylight, outdoor, airy",
    "style": "candid lifestyle moment",
    "depth_of_field": "moderate depth of field, subject in focus, background slightly softened but still readable"
  },
  "camera": {
    "device": "iPhone 13 rear camera",
    "mode": "standard photo mode",
    "lens": "wide lens (~26mm equivalent)",
    "angle": "slightly top-down angle, as if standing above subject",
    "aspect_ratio": "4:5",
    "framing": "full body seated framing, subject centered slightly lower in frame",
    "focus": "sharp focus on subject",
    "stability": "handheld"
  },
  "image_quality": {
    "resolution": "standard mobile resolution",
    "grain": "very subtle grain",
    "sharpness": "natural smartphone sharpening",
    "compression_artifacts": "minimal",
    "dynamic_range": "bright highlights with slight clipping in strongest sunlight areas"
  },
  "lighting": {
    "type": "direct sunlight",
    "quality": "harsh, high contrast lighting with strong shadows",
    "effects": "sunlight highlights on hair and skin, sharp shadow edges on ground and chair"
  },
  "color_grading": {
    "tone": "natural daylight",
    "temperature": "slightly warm",
    "contrast": "moderate to high contrast due to sunlight",
    "saturation": "realistic, slightly vibrant",
    "highlights": "bright, slightly blown in sunlit areas",
    "shadows": "defined and darker"
  },
  "rendering": {
    "style": "photorealistic smartphone photography",
    "quality": "clean, natural, unfiltered look",
    "skin_texture": "natural with sunlight reflections",
    "post_processing": "minimal, straight-out-of-camera feel"
  },
  "artifacts": {
    "lens_flare": "very subtle possible sunlight flare",
    "noise_pattern": "minimal",
    "motion_blur": "none",
    "chromatic_aberration": "slight on high contrast edges"
  },
  "constraints": {
    "focus_priority": "subject must remain primary focal point",
    "avoid": "over-processed skin, artificial lighting, studio look, cinematic grading"
  }
}"

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate an image: "{
  "subject": {
    "description": "A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.",
    "body": {
      "type": "female, slim build",
      "details": "light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin",
      "pose": "reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone"
    },
    "face": {
      "expression": "soft smile, slightly squinting eyes due to sunlight, relaxed and confident",
      "gaze_direction": "towards camera",
      "head_tilt": "slight tilt to the right",
      "skin": "smooth, natural skin with sunlight highlights and minimal imperfections"
    },
    "wardrobe": {
      "top": "white fitted t-shirt",
      "bottom": "light blue ripped jeans with knee tears",
      "outerwear": "black jacket casually draped over shoulders",
      "accessories": "sunglasses resting on top of head, minimal jewelry"
    },
    "hair": "loose blonde hair, naturally falling over shoulders with slight sun highlights"
  },
  "scene": {
    "description": "A rooftop terrace during daytime with urban residential buildings in the background.",
    "location": "Outdoor terrace in a city (Mediterranean/European style architecture).",
    "setting": "Rooftop seating area",
    "background_elements": "wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops",
    "lighting": "strong natural sunlight casting sharp shadows",
    "atmosphere": "casual, sunny, relaxed daytime vibe"
  },
  "environment": {
    "ambience": "bright daylight, outdoor, airy",
    "style": "candid lifestyle moment",
    "depth_of_field": "moderate depth of field, subject in focus, background slightly softened but still readable"
  },
  "camera": {
    "device": "iPhone 13 rear camera",
    "mode": "standard photo mode",
    "lens": "wide lens (~26mm equivalent)",
    "angle": "slightly top-down angle, as if standing above subject",
    "aspect_ratio": "4:5",
    "framing": "full body seated framing, subject centered slightly lower in frame",
    "focus": "sharp focus on subject",
    "stability": "handheld"
  },
  "image_quality": {
    "resolution": "standard mobile resolution",
    "grain": "very subtle grain",
    "sharpness": "natural smartphone sharpening",
    "compression_artifacts": "minimal",
    "dynamic_range": "bright highlights with slight clipping in strongest sunlight areas"
  },
  "lighting": {
    "type": "direct sunlight",
    "quality": "harsh, high contrast lighting with strong shadows",
    "effects": "sunlight highlights on hair and skin, sharp shadow edges on ground and chair"
  },
  "color_grading": {
    "tone": "natural daylight",
    "temperature": "slightly warm",
    "contrast": "moderate to high contrast due to sunlight",
    "saturation": "realistic, slightly vibrant",
    "highlights": "bright, slightly blown in sunlit areas",
    "shadows": "defined and darker"
  },
  "rendering": {
    "style": "photorealistic smartphone photography",
    "quality": "clean, natural, unfiltered look",
    "skin_texture": "natural with sunlight reflections",
    "post_processing": "minimal, straight-out-of-camera feel"
  },
  "artifacts": {
    "lens_flare": "very subtle possible sunlight flare",
    "noise_pattern": "minimal",
    "motion_blur": "none",
    "chromatic_aberration": "slight on high contrast edges"
  },
  "constraints": {
    "focus_priority": "subject must remain primary focal point",
    "avoid": "over-processed skin, artificial lighting, studio look, cinematic grading"
  }
}"

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate an image: "{
  "subject": {
    "description": "A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.",
    "body": {
      "type": "female, slim build",
      "details": "light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin",
      "pose": "reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone"
    },
    "face": {
      "expression": "soft smile, slightly squinting eyes due to sunlight, relaxed and confident",
      "gaze_direction": "towards camera",
      "head_tilt": "slight tilt to the right",
      "skin": "smooth, natural skin with sunlight highlights and minimal imperfections"
    },
    "wardrobe": {
      "top": "white fitted t-shirt",
      "bottom": "light blue ripped jeans with knee tears",
      "outerwear": "black jacket casually draped over shoulders",
      "accessories": "sunglasses resting on top of head, minimal jewelry"
    },
    "hair": "loose blonde hair, naturally falling over shoulders with slight sun highlights"
  },
  "scene": {
    "description": "A rooftop terrace during daytime with urban residential buildings in the background.",
    "location": "Outdoor terrace in a city (Mediterranean/European style architecture).",
    "setting": "Rooftop seating area",
    "background_elements": "wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops",
    "lighting": "strong natural sunlight casting sharp shadows",
    "atmosphere": "casual, sunny, relaxed daytime vibe"
  },
  "environment": {
    "ambience": "bright daylight, outdoor, airy",
    "style": "candid lifestyle moment",
    "depth_of_field": "moderate depth of field, subject in focus, background slightly softened but still readable"
  },
  "camera": {
    "device": "iPhone 13 rear camera",
    "mode": "standard photo mode",
    "lens": "wide lens (~26mm equivalent)",
    "angle": "slightly top-down angle, as if standing above subject",
    "aspect_ratio": "4:5",
    "framing": "full body seated framing, subject centered slightly lower in frame",
    "focus": "sharp focus on subject",
    "stability": "handheld"
  },
  "image_quality": {
    "resolution": "standard mobile resolution",
    "grain": "very subtle grain",
    "sharpness": "natural smartphone sharpening",
    "compression_artifacts": "minimal",
    "dynamic_range": "bright highlights with slight clipping in strongest sunlight areas"
  },
  "lighting": {
    "type": "direct sunlight",
    "quality": "harsh, high contrast lighting with strong shadows",
    "effects": "sunlight highlights on hair and skin, sharp shadow edges on ground and chair"
  },
  "color_grading": {
    "tone": "natural daylight",
    "temperature": "slightly warm",
    "contrast": "moderate to high contrast due to sunlight",
    "saturation": "realistic, slightly vibrant",
    "highlights": "bright, slightly blown in sunlit areas",
    "shadows": "defined and darker"
  },
  "rendering": {
    "style": "photorealistic smartphone photography",
    "quality": "clean, natural, unfiltered look",
    "skin_texture": "natural with sunlight reflections",
    "post_processing": "minimal, straight-out-of-camera feel"
  },
  "artifacts": {
    "lens_flare": "very subtle possible sunlight flare",
    "noise_pattern": "minimal",
    "motion_blur": "none",
    "chromatic_aberration": "slight on high contrast edges"
  },
  "constraints": {
    "focus_priority": "subject must remain primary focal point",
    "avoid": "over-processed skin, artificial lighting, studio look, cinematic grading"
  }
}"

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate an image: "{
  "subject": {
    "description": "A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.",
    "body": {
      "type": "female, slim build",
      "details": "light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin",
      "pose": "reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone"
    },
    "face": {
      "expression": "soft smile, slightly squinting eyes due to sunlight, relaxed and confident",
      "gaze_direction": "towards camera",
      "head_tilt": "slight tilt to the right",
      "skin": "smooth, natural skin with sunlight highlights and minimal imperfections"
    },
    "wardrobe": {
      "top": "white fitted t-shirt",
      "bottom": "light blue ripped jeans with knee tears",
      "outerwear": "black jacket casually draped over shoulders",
      "accessories": "sunglasses resting on top of head, minimal jewelry"
    },
    "hair": "loose blonde hair, naturally falling over shoulders with slight sun highlights"
  },
  "scene": {
    "description": "A rooftop terrace during daytime with urban residential buildings in the background.",
    "location": "Outdoor terrace in a city (Mediterranean/European style architecture).",
    "setting": "Rooftop seating area",
    "background_elements": "wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops",
    "lighting": "strong natural sunlight casting sharp shadows",
    "atmosphere": "casual, sunny, relaxed daytime vibe"
  },
  "environment": {
    "ambience": "bright daylight, outdoor, airy",
    "style": "candid lifestyle moment",
    "depth_of_field": "moderate depth of field, subject in focus, background slightly softened but still readable"
  },
  "camera": {
    "device": "iPhone 13 rear camera",
    "mode": "standard photo mode",
    "lens": "wide lens (~26mm equivalent)",
    "angle": "slightly top-down angle, as if standing above subject",
    "aspect_ratio": "4:5",
    "framing": "full body seated framing, subject centered slightly lower in frame",
    "focus": "sharp focus on subject",
    "stability": "handheld"
  },
  "image_quality": {
    "resolution": "standard mobile resolution",
    "grain": "very subtle grain",
    "sharpness": "natural smartphone sharpening",
    "compression_artifacts": "minimal",
    "dynamic_range": "bright highlights with slight clipping in strongest sunlight areas"
  },
  "lighting": {
    "type": "direct sunlight",
    "quality": "harsh, high contrast lighting with strong shadows",
    "effects": "sunlight highlights on hair and skin, sharp shadow edges on ground and chair"
  },
  "color_grading": {
    "tone": "natural daylight",
    "temperature": "slightly warm",
    "contrast": "moderate to high contrast due to sunlight",
    "saturation": "realistic, slightly vibrant",
    "highlights": "bright, slightly blown in sunlit areas",
    "shadows": "defined and darker"
  },
  "rendering": {
    "style": "photorealistic smartphone photography",
    "quality": "clean, natural, unfiltered look",
    "skin_texture": "natural with sunlight reflections",
    "post_processing": "minimal, straight-out-of-camera feel"
  },
  "artifacts": {
    "lens_flare": "very subtle possible sunlight flare",
    "noise_pattern": "minimal",
    "motion_blur": "none",
    "chromatic_aberration": "slight on high contrast edges"
  },
  "constraints": {
    "focus_priority": "subject must remain primary focal point",
    "avoid": "over-processed skin, artificial lighting, studio look, cinematic grading"
  }
}"

<!-- 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  \"subject\": {\n    \"description\": \"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\",\n    \"body\": {\n      \"type\": \"female, slim build\",\n      \"details\": \"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\",\n      \"pose\": \"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\"\n    },\n    \"face\": {\n      \"expression\": \"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\",\n      \"gaze_direction\": \"towards camera\",\n      \"head_tilt\": \"slight tilt to the right\",\n      \"skin\": \"smooth, natural skin with sunlight highlights and minimal imperfections\"\n    },\n    \"wardrobe\": {\n      \"top\": \"white fitted t-shirt\",\n      \"bottom\": \"light blue ripped jeans with knee tears\",\n      \"outerwear\": \"black jacket casually draped over shoulders\",\n      \"accessories\": \"sunglasses resting on top of head, minimal jewelry\"\n    },\n    \"hair\": \"loose blonde hair, naturally falling over shoulders with slight sun highlights\"\n  },\n  \"scene\": {\n    \"description\": \"A rooftop terrace during daytime with urban residential buildings in the background.\",\n    \"location\": \"Outdoor terrace in a city (Mediterranean/European style architecture).\",\n    \"setting\": \"Rooftop seating area\",\n    \"background_elements\": \"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\",\n    \"lighting\": \"strong natural sunlight casting sharp shadows\",\n    \"atmosphere\": \"casual, sunny, relaxed daytime vibe\"\n  },\n  \"environment\": {\n    \"ambience\": \"bright daylight, outdoor, airy\",\n    \"style\": \"candid lifestyle moment\",\n    \"depth_of_field\": \"moderate depth of field, subject in focus, background slightly softened but still readable\"\n  },\n  \"camera\": {\n    \"device\": \"iPhone 13 rear camera\",\n    \"mode\": \"standard photo mode\",\n    \"lens\": \"wide lens (~26mm equivalent)\",\n    \"angle\": \"slightly top-down angle, as if standing above subject\",\n    \"aspect_ratio\": \"4:5\",\n    \"framing\": \"full body seated framing, subject centered slightly lower in frame\",\n    \"focus\": \"sharp focus on subject\",\n    \"stability\": \"handheld\"\n  },\n  \"image_quality\": {\n    \"resolution\": \"standard mobile resolution\",\n    \"grain\": \"very subtle grain\",\n    \"sharpness\": \"natural smartphone sharpening\",\n    \"compression_artifacts\": \"minimal\",\n    \"dynamic_range\": \"bright highlights with slight clipping in strongest sunlight areas\"\n  },\n  \"lighting\": {\n    \"type\": \"direct sunlight\",\n    \"quality\": \"harsh, high contrast lighting with strong shadows\",\n    \"effects\": \"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\"\n  },\n  \"color_grading\": {\n    \"tone\": \"natural daylight\",\n    \"temperature\": \"slightly warm\",\n    \"contrast\": \"moderate to high contrast due to sunlight\",\n    \"saturation\": \"realistic, slightly vibrant\",\n    \"highlights\": \"bright, slightly blown in sunlit areas\",\n    \"shadows\": \"defined and darker\"\n  },\n  \"rendering\": {\n    \"style\": \"photorealistic smartphone photography\",\n    \"quality\": \"clean, natural, unfiltered look\",\n    \"skin_texture\": \"natural with sunlight reflections\",\n    \"post_processing\": \"minimal, straight-out-of-camera feel\"\n  },\n  \"artifacts\": {\n    \"lens_flare\": \"very subtle possible sunlight flare\",\n    \"noise_pattern\": \"minimal\",\n    \"motion_blur\": \"none\",\n    \"chromatic_aberration\": \"slight on high contrast edges\"\n  },\n  \"constraints\": {\n    \"focus_priority\": \"subject must remain primary focal point\",\n    \"avoid\": \"over-processed skin, artificial lighting, studio look, cinematic grading\"\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  \"subject\": {\n    \"description\": \"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\",\n    \"body\": {\n      \"type\": \"female, slim build\",\n      \"details\": \"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\",\n      \"pose\": \"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\"\n    },\n    \"face\": {\n      \"expression\": \"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\",\n      \"gaze_direction\": \"towards camera\",\n      \"head_tilt\": \"slight tilt to the right\",\n      \"skin\": \"smooth, natural skin with sunlight highlights and minimal imperfections\"\n    },\n    \"wardrobe\": {\n      \"top\": \"white fitted t-shirt\",\n      \"bottom\": \"light blue ripped jeans with knee tears\",\n      \"outerwear\": \"black jacket casually draped over shoulders\",\n      \"accessories\": \"sunglasses resting on top of head, minimal jewelry\"\n    },\n    \"hair\": \"loose blonde hair, naturally falling over shoulders with slight sun highlights\"\n  },\n  \"scene\": {\n    \"description\": \"A rooftop terrace during daytime with urban residential buildings in the background.\",\n    \"location\": \"Outdoor terrace in a city (Mediterranean/European style architecture).\",\n    \"setting\": \"Rooftop seating area\",\n    \"background_elements\": \"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\",\n    \"lighting\": \"strong natural sunlight casting sharp shadows\",\n    \"atmosphere\": \"casual, sunny, relaxed daytime vibe\"\n  },\n  \"environment\": {\n    \"ambience\": \"bright daylight, outdoor, airy\",\n    \"style\": \"candid lifestyle moment\",\n    \"depth_of_field\": \"moderate depth of field, subject in focus, background slightly softened but still readable\"\n  },\n  \"camera\": {\n    \"device\": \"iPhone 13 rear camera\",\n    \"mode\": \"standard photo mode\",\n    \"lens\": \"wide lens (~26mm equivalent)\",\n    \"angle\": \"slightly top-down angle, as if standing above subject\",\n    \"aspect_ratio\": \"4:5\",\n    \"framing\": \"full body seated framing, subject centered slightly lower in frame\",\n    \"focus\": \"sharp focus on subject\",\n    \"stability\": \"handheld\"\n  },\n  \"image_quality\": {\n    \"resolution\": \"standard mobile resolution\",\n    \"grain\": \"very subtle grain\",\n    \"sharpness\": \"natural smartphone sharpening\",\n    \"compression_artifacts\": \"minimal\",\n    \"dynamic_range\": \"bright highlights with slight clipping in strongest sunlight areas\"\n  },\n  \"lighting\": {\n    \"type\": \"direct sunlight\",\n    \"quality\": \"harsh, high contrast lighting with strong shadows\",\n    \"effects\": \"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\"\n  },\n  \"color_grading\": {\n    \"tone\": \"natural daylight\",\n    \"temperature\": \"slightly warm\",\n    \"contrast\": \"moderate to high contrast due to sunlight\",\n    \"saturation\": \"realistic, slightly vibrant\",\n    \"highlights\": \"bright, slightly blown in sunlit areas\",\n    \"shadows\": \"defined and darker\"\n  },\n  \"rendering\": {\n    \"style\": \"photorealistic smartphone photography\",\n    \"quality\": \"clean, natural, unfiltered look\",\n    \"skin_texture\": \"natural with sunlight reflections\",\n    \"post_processing\": \"minimal, straight-out-of-camera feel\"\n  },\n  \"artifacts\": {\n    \"lens_flare\": \"very subtle possible sunlight flare\",\n    \"noise_pattern\": \"minimal\",\n    \"motion_blur\": \"none\",\n    \"chromatic_aberration\": \"slight on high contrast edges\"\n  },\n  \"constraints\": {\n    \"focus_priority\": \"subject must remain primary focal point\",\n    \"avoid\": \"over-processed skin, artificial lighting, studio look, cinematic grading\"\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  \\\"subject\\\": {\\n    \\\"description\\\": \\\"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\\\",\\n    \\\"body\\\": {\\n      \\\"type\\\": \\\"female, slim build\\\",\\n      \\\"details\\\": \\\"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\\\",\\n      \\\"pose\\\": \\\"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\\\"\\n    },\\n    \\\"face\\\": {\\n      \\\"expression\\\": \\\"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\\\",\\n      \\\"gaze_direction\\\": \\\"towards camera\\\",\\n      \\\"head_tilt\\\": \\\"slight tilt to the right\\\",\\n      \\\"skin\\\": \\\"smooth, natural skin with sunlight highlights and minimal imperfections\\\"\\n    },\\n    \\\"wardrobe\\\": {\\n      \\\"top\\\": \\\"white fitted t-shirt\\\",\\n      \\\"bottom\\\": \\\"light blue ripped jeans with knee tears\\\",\\n      \\\"outerwear\\\": \\\"black jacket casually draped over shoulders\\\",\\n      \\\"accessories\\\": \\\"sunglasses resting on top of head, minimal jewelry\\\"\\n    },\\n    \\\"hair\\\": \\\"loose blonde hair, naturally falling over shoulders with slight sun highlights\\\"\\n  },\\n  \\\"scene\\\": {\\n    \\\"description\\\": \\\"A rooftop terrace during daytime with urban residential buildings in the background.\\\",\\n    \\\"location\\\": \\\"Outdoor terrace in a city (Mediterranean/European style architecture).\\\",\\n    \\\"setting\\\": \\\"Rooftop seating area\\\",\\n    \\\"background_elements\\\": \\\"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\\\",\\n    \\\"lighting\\\": \\\"strong natural sunlight casting sharp shadows\\\",\\n    \\\"atmosphere\\\": \\\"casual, sunny, relaxed daytime vibe\\\"\\n  },\\n  \\\"environment\\\": {\\n    \\\"ambience\\\": \\\"bright daylight, outdoor, airy\\\",\\n    \\\"style\\\": \\\"candid lifestyle moment\\\",\\n    \\\"depth_of_field\\\": \\\"moderate depth of field, subject in focus, background slightly softened but still readable\\\"\\n  },\\n  \\\"camera\\\": {\\n    \\\"device\\\": \\\"iPhone 13 rear camera\\\",\\n    \\\"mode\\\": \\\"standard photo mode\\\",\\n    \\\"lens\\\": \\\"wide lens (~26mm equivalent)\\\",\\n    \\\"angle\\\": \\\"slightly top-down angle, as if standing above subject\\\",\\n    \\\"aspect_ratio\\\": \\\"4:5\\\",\\n    \\\"framing\\\": \\\"full body seated framing, subject centered slightly lower in frame\\\",\\n    \\\"focus\\\": \\\"sharp focus on subject\\\",\\n    \\\"stability\\\": \\\"handheld\\\"\\n  },\\n  \\\"image_quality\\\": {\\n    \\\"resolution\\\": \\\"standard mobile resolution\\\",\\n    \\\"grain\\\": \\\"very subtle grain\\\",\\n    \\\"sharpness\\\": \\\"natural smartphone sharpening\\\",\\n    \\\"compression_artifacts\\\": \\\"minimal\\\",\\n    \\\"dynamic_range\\\": \\\"bright highlights with slight clipping in strongest sunlight areas\\\"\\n  },\\n  \\\"lighting\\\": {\\n    \\\"type\\\": \\\"direct sunlight\\\",\\n    \\\"quality\\\": \\\"harsh, high contrast lighting with strong shadows\\\",\\n    \\\"effects\\\": \\\"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\\\"\\n  },\\n  \\\"color_grading\\\": {\\n    \\\"tone\\\": \\\"natural daylight\\\",\\n    \\\"temperature\\\": \\\"slightly warm\\\",\\n    \\\"contrast\\\": \\\"moderate to high contrast due to sunlight\\\",\\n    \\\"saturation\\\": \\\"realistic, slightly vibrant\\\",\\n    \\\"highlights\\\": \\\"bright, slightly blown in sunlit areas\\\",\\n    \\\"shadows\\\": \\\"defined and darker\\\"\\n  },\\n  \\\"rendering\\\": {\\n    \\\"style\\\": \\\"photorealistic smartphone photography\\\",\\n    \\\"quality\\\": \\\"clean, natural, unfiltered look\\\",\\n    \\\"skin_texture\\\": \\\"natural with sunlight reflections\\\",\\n    \\\"post_processing\\\": \\\"minimal, straight-out-of-camera feel\\\"\\n  },\\n  \\\"artifacts\\\": {\\n    \\\"lens_flare\\\": \\\"very subtle possible sunlight flare\\\",\\n    \\\"noise_pattern\\\": \\\"minimal\\\",\\n    \\\"motion_blur\\\": \\\"none\\\",\\n    \\\"chromatic_aberration\\\": \\\"slight on high contrast edges\\\"\\n  },\\n  \\\"constraints\\\": {\\n    \\\"focus_priority\\\": \\\"subject must remain primary focal point\\\",\\n    \\\"avoid\\\": \\\"over-processed skin, artificial lighting, studio look, cinematic grading\\\"\\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  \\\"subject\\\": {\\n    \\\"description\\\": \\\"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\\\",\\n    \\\"body\\\": {\\n      \\\"type\\\": \\\"female, slim build\\\",\\n      \\\"details\\\": \\\"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\\\",\\n      \\\"pose\\\": \\\"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\\\"\\n    },\\n    \\\"face\\\": {\\n      \\\"expression\\\": \\\"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\\\",\\n      \\\"gaze_direction\\\": \\\"towards camera\\\",\\n      \\\"head_tilt\\\": \\\"slight tilt to the right\\\",\\n      \\\"skin\\\": \\\"smooth, natural skin with sunlight highlights and minimal imperfections\\\"\\n    },\\n    \\\"wardrobe\\\": {\\n      \\\"top\\\": \\\"white fitted t-shirt\\\",\\n      \\\"bottom\\\": \\\"light blue ripped jeans with knee tears\\\",\\n      \\\"outerwear\\\": \\\"black jacket casually draped over shoulders\\\",\\n      \\\"accessories\\\": \\\"sunglasses resting on top of head, minimal jewelry\\\"\\n    },\\n    \\\"hair\\\": \\\"loose blonde hair, naturally falling over shoulders with slight sun highlights\\\"\\n  },\\n  \\\"scene\\\": {\\n    \\\"description\\\": \\\"A rooftop terrace during daytime with urban residential buildings in the background.\\\",\\n    \\\"location\\\": \\\"Outdoor terrace in a city (Mediterranean/European style architecture).\\\",\\n    \\\"setting\\\": \\\"Rooftop seating area\\\",\\n    \\\"background_elements\\\": \\\"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\\\",\\n    \\\"lighting\\\": \\\"strong natural sunlight casting sharp shadows\\\",\\n    \\\"atmosphere\\\": \\\"casual, sunny, relaxed daytime vibe\\\"\\n  },\\n  \\\"environment\\\": {\\n    \\\"ambience\\\": \\\"bright daylight, outdoor, airy\\\",\\n    \\\"style\\\": \\\"candid lifestyle moment\\\",\\n    \\\"depth_of_field\\\": \\\"moderate depth of field, subject in focus, background slightly softened but still readable\\\"\\n  },\\n  \\\"camera\\\": {\\n    \\\"device\\\": \\\"iPhone 13 rear camera\\\",\\n    \\\"mode\\\": \\\"standard photo mode\\\",\\n    \\\"lens\\\": \\\"wide lens (~26mm equivalent)\\\",\\n    \\\"angle\\\": \\\"slightly top-down angle, as if standing above subject\\\",\\n    \\\"aspect_ratio\\\": \\\"4:5\\\",\\n    \\\"framing\\\": \\\"full body seated framing, subject centered slightly lower in frame\\\",\\n    \\\"focus\\\": \\\"sharp focus on subject\\\",\\n    \\\"stability\\\": \\\"handheld\\\"\\n  },\\n  \\\"image_quality\\\": {\\n    \\\"resolution\\\": \\\"standard mobile resolution\\\",\\n    \\\"grain\\\": \\\"very subtle grain\\\",\\n    \\\"sharpness\\\": \\\"natural smartphone sharpening\\\",\\n    \\\"compression_artifacts\\\": \\\"minimal\\\",\\n    \\\"dynamic_range\\\": \\\"bright highlights with slight clipping in strongest sunlight areas\\\"\\n  },\\n  \\\"lighting\\\": {\\n    \\\"type\\\": \\\"direct sunlight\\\",\\n    \\\"quality\\\": \\\"harsh, high contrast lighting with strong shadows\\\",\\n    \\\"effects\\\": \\\"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\\\"\\n  },\\n  \\\"color_grading\\\": {\\n    \\\"tone\\\": \\\"natural daylight\\\",\\n    \\\"temperature\\\": \\\"slightly warm\\\",\\n    \\\"contrast\\\": \\\"moderate to high contrast due to sunlight\\\",\\n    \\\"saturation\\\": \\\"realistic, slightly vibrant\\\",\\n    \\\"highlights\\\": \\\"bright, slightly blown in sunlit areas\\\",\\n    \\\"shadows\\\": \\\"defined and darker\\\"\\n  },\\n  \\\"rendering\\\": {\\n    \\\"style\\\": \\\"photorealistic smartphone photography\\\",\\n    \\\"quality\\\": \\\"clean, natural, unfiltered look\\\",\\n    \\\"skin_texture\\\": \\\"natural with sunlight reflections\\\",\\n    \\\"post_processing\\\": \\\"minimal, straight-out-of-camera feel\\\"\\n  },\\n  \\\"artifacts\\\": {\\n    \\\"lens_flare\\\": \\\"very subtle possible sunlight flare\\\",\\n    \\\"noise_pattern\\\": \\\"minimal\\\",\\n    \\\"motion_blur\\\": \\\"none\\\",\\n    \\\"chromatic_aberration\\\": \\\"slight on high contrast edges\\\"\\n  },\\n  \\\"constraints\\\": {\\n    \\\"focus_priority\\\": \\\"subject must remain primary focal point\\\",\\n    \\\"avoid\\\": \\\"over-processed skin, artificial lighting, studio look, cinematic grading\\\"\\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  \\\"subject\\\": {\\n    \\\"description\\\": \\\"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\\\",\\n    \\\"body\\\": {\\n      \\\"type\\\": \\\"female, slim build\\\",\\n      \\\"details\\\": \\\"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\\\",\\n      \\\"pose\\\": \\\"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\\\"\\n    },\\n    \\\"face\\\": {\\n      \\\"expression\\\": \\\"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\\\",\\n      \\\"gaze_direction\\\": \\\"towards camera\\\",\\n      \\\"head_tilt\\\": \\\"slight tilt to the right\\\",\\n      \\\"skin\\\": \\\"smooth, natural skin with sunlight highlights and minimal imperfections\\\"\\n    },\\n    \\\"wardrobe\\\": {\\n      \\\"top\\\": \\\"white fitted t-shirt\\\",\\n      \\\"bottom\\\": \\\"light blue ripped jeans with knee tears\\\",\\n      \\\"outerwear\\\": \\\"black jacket casually draped over shoulders\\\",\\n      \\\"accessories\\\": \\\"sunglasses resting on top of head, minimal jewelry\\\"\\n    },\\n    \\\"hair\\\": \\\"loose blonde hair, naturally falling over shoulders with slight sun highlights\\\"\\n  },\\n  \\\"scene\\\": {\\n    \\\"description\\\": \\\"A rooftop terrace during daytime with urban residential buildings in the background.\\\",\\n    \\\"location\\\": \\\"Outdoor terrace in a city (Mediterranean/European style architecture).\\\",\\n    \\\"setting\\\": \\\"Rooftop seating area\\\",\\n    \\\"background_elements\\\": \\\"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\\\",\\n    \\\"lighting\\\": \\\"strong natural sunlight casting sharp shadows\\\",\\n    \\\"atmosphere\\\": \\\"casual, sunny, relaxed daytime vibe\\\"\\n  },\\n  \\\"environment\\\": {\\n    \\\"ambience\\\": \\\"bright daylight, outdoor, airy\\\",\\n    \\\"style\\\": \\\"candid lifestyle moment\\\",\\n    \\\"depth_of_field\\\": \\\"moderate depth of field, subject in focus, background slightly softened but still readable\\\"\\n  },\\n  \\\"camera\\\": {\\n    \\\"device\\\": \\\"iPhone 13 rear camera\\\",\\n    \\\"mode\\\": \\\"standard photo mode\\\",\\n    \\\"lens\\\": \\\"wide lens (~26mm equivalent)\\\",\\n    \\\"angle\\\": \\\"slightly top-down angle, as if standing above subject\\\",\\n    \\\"aspect_ratio\\\": \\\"4:5\\\",\\n    \\\"framing\\\": \\\"full body seated framing, subject centered slightly lower in frame\\\",\\n    \\\"focus\\\": \\\"sharp focus on subject\\\",\\n    \\\"stability\\\": \\\"handheld\\\"\\n  },\\n  \\\"image_quality\\\": {\\n    \\\"resolution\\\": \\\"standard mobile resolution\\\",\\n    \\\"grain\\\": \\\"very subtle grain\\\",\\n    \\\"sharpness\\\": \\\"natural smartphone sharpening\\\",\\n    \\\"compression_artifacts\\\": \\\"minimal\\\",\\n    \\\"dynamic_range\\\": \\\"bright highlights with slight clipping in strongest sunlight areas\\\"\\n  },\\n  \\\"lighting\\\": {\\n    \\\"type\\\": \\\"direct sunlight\\\",\\n    \\\"quality\\\": \\\"harsh, high contrast lighting with strong shadows\\\",\\n    \\\"effects\\\": \\\"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\\\"\\n  },\\n  \\\"color_grading\\\": {\\n    \\\"tone\\\": \\\"natural daylight\\\",\\n    \\\"temperature\\\": \\\"slightly warm\\\",\\n    \\\"contrast\\\": \\\"moderate to high contrast due to sunlight\\\",\\n    \\\"saturation\\\": \\\"realistic, slightly vibrant\\\",\\n    \\\"highlights\\\": \\\"bright, slightly blown in sunlit areas\\\",\\n    \\\"shadows\\\": \\\"defined and darker\\\"\\n  },\\n  \\\"rendering\\\": {\\n    \\\"style\\\": \\\"photorealistic smartphone photography\\\",\\n    \\\"quality\\\": \\\"clean, natural, unfiltered look\\\",\\n    \\\"skin_texture\\\": \\\"natural with sunlight reflections\\\",\\n    \\\"post_processing\\\": \\\"minimal, straight-out-of-camera feel\\\"\\n  },\\n  \\\"artifacts\\\": {\\n    \\\"lens_flare\\\": \\\"very subtle possible sunlight flare\\\",\\n    \\\"noise_pattern\\\": \\\"minimal\\\",\\n    \\\"motion_blur\\\": \\\"none\\\",\\n    \\\"chromatic_aberration\\\": \\\"slight on high contrast edges\\\"\\n  },\\n  \\\"constraints\\\": {\\n    \\\"focus_priority\\\": \\\"subject must remain primary focal point\\\",\\n    \\\"avoid\\\": \\\"over-processed skin, artificial lighting, studio look, cinematic grading\\\"\\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  \\\"subject\\\": {\\n    \\\"description\\\": \\\"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\\\",\\n    \\\"body\\\": {\\n      \\\"type\\\": \\\"female, slim build\\\",\\n      \\\"details\\\": \\\"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\\\",\\n      \\\"pose\\\": \\\"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\\\"\\n    },\\n    \\\"face\\\": {\\n      \\\"expression\\\": \\\"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\\\",\\n      \\\"gaze_direction\\\": \\\"towards camera\\\",\\n      \\\"head_tilt\\\": \\\"slight tilt to the right\\\",\\n      \\\"skin\\\": \\\"smooth, natural skin with sunlight highlights and minimal imperfections\\\"\\n    },\\n    \\\"wardrobe\\\": {\\n      \\\"top\\\": \\\"white fitted t-shirt\\\",\\n      \\\"bottom\\\": \\\"light blue ripped jeans with knee tears\\\",\\n      \\\"outerwear\\\": \\\"black jacket casually draped over shoulders\\\",\\n      \\\"accessories\\\": \\\"sunglasses resting on top of head, minimal jewelry\\\"\\n    },\\n    \\\"hair\\\": \\\"loose blonde hair, naturally falling over shoulders with slight sun highlights\\\"\\n  },\\n  \\\"scene\\\": {\\n    \\\"description\\\": \\\"A rooftop terrace during daytime with urban residential buildings in the background.\\\",\\n    \\\"location\\\": \\\"Outdoor terrace in a city (Mediterranean/European style architecture).\\\",\\n    \\\"setting\\\": \\\"Rooftop seating area\\\",\\n    \\\"background_elements\\\": \\\"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\\\",\\n    \\\"lighting\\\": \\\"strong natural sunlight casting sharp shadows\\\",\\n    \\\"atmosphere\\\": \\\"casual, sunny, relaxed daytime vibe\\\"\\n  },\\n  \\\"environment\\\": {\\n    \\\"ambience\\\": \\\"bright daylight, outdoor, airy\\\",\\n    \\\"style\\\": \\\"candid lifestyle moment\\\",\\n    \\\"depth_of_field\\\": \\\"moderate depth of field, subject in focus, background slightly softened but still readable\\\"\\n  },\\n  \\\"camera\\\": {\\n    \\\"device\\\": \\\"iPhone 13 rear camera\\\",\\n    \\\"mode\\\": \\\"standard photo mode\\\",\\n    \\\"lens\\\": \\\"wide lens (~26mm equivalent)\\\",\\n    \\\"angle\\\": \\\"slightly top-down angle, as if standing above subject\\\",\\n    \\\"aspect_ratio\\\": \\\"4:5\\\",\\n    \\\"framing\\\": \\\"full body seated framing, subject centered slightly lower in frame\\\",\\n    \\\"focus\\\": \\\"sharp focus on subject\\\",\\n    \\\"stability\\\": \\\"handheld\\\"\\n  },\\n  \\\"image_quality\\\": {\\n    \\\"resolution\\\": \\\"standard mobile resolution\\\",\\n    \\\"grain\\\": \\\"very subtle grain\\\",\\n    \\\"sharpness\\\": \\\"natural smartphone sharpening\\\",\\n    \\\"compression_artifacts\\\": \\\"minimal\\\",\\n    \\\"dynamic_range\\\": \\\"bright highlights with slight clipping in strongest sunlight areas\\\"\\n  },\\n  \\\"lighting\\\": {\\n    \\\"type\\\": \\\"direct sunlight\\\",\\n    \\\"quality\\\": \\\"harsh, high contrast lighting with strong shadows\\\",\\n    \\\"effects\\\": \\\"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\\\"\\n  },\\n  \\\"color_grading\\\": {\\n    \\\"tone\\\": \\\"natural daylight\\\",\\n    \\\"temperature\\\": \\\"slightly warm\\\",\\n    \\\"contrast\\\": \\\"moderate to high contrast due to sunlight\\\",\\n    \\\"saturation\\\": \\\"realistic, slightly vibrant\\\",\\n    \\\"highlights\\\": \\\"bright, slightly blown in sunlit areas\\\",\\n    \\\"shadows\\\": \\\"defined and darker\\\"\\n  },\\n  \\\"rendering\\\": {\\n    \\\"style\\\": \\\"photorealistic smartphone photography\\\",\\n    \\\"quality\\\": \\\"clean, natural, unfiltered look\\\",\\n    \\\"skin_texture\\\": \\\"natural with sunlight reflections\\\",\\n    \\\"post_processing\\\": \\\"minimal, straight-out-of-camera feel\\\"\\n  },\\n  \\\"artifacts\\\": {\\n    \\\"lens_flare\\\": \\\"very subtle possible sunlight flare\\\",\\n    \\\"noise_pattern\\\": \\\"minimal\\\",\\n    \\\"motion_blur\\\": \\\"none\\\",\\n    \\\"chromatic_aberration\\\": \\\"slight on high contrast edges\\\"\\n  },\\n  \\\"constraints\\\": {\\n    \\\"focus_priority\\\": \\\"subject must remain primary focal point\\\",\\n    \\\"avoid\\\": \\\"over-processed skin, artificial lighting, studio look, cinematic grading\\\"\\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  \\\"subject\\\": {\\n    \\\"description\\\": \\\"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\\\",\\n    \\\"body\\\": {\\n      \\\"type\\\": \\\"female, slim build\\\",\\n      \\\"details\\\": \\\"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\\\",\\n      \\\"pose\\\": \\\"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\\\"\\n    },\\n    \\\"face\\\": {\\n      \\\"expression\\\": \\\"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\\\",\\n      \\\"gaze_direction\\\": \\\"towards camera\\\",\\n      \\\"head_tilt\\\": \\\"slight tilt to the right\\\",\\n      \\\"skin\\\": \\\"smooth, natural skin with sunlight highlights and minimal imperfections\\\"\\n    },\\n    \\\"wardrobe\\\": {\\n      \\\"top\\\": \\\"white fitted t-shirt\\\",\\n      \\\"bottom\\\": \\\"light blue ripped jeans with knee tears\\\",\\n      \\\"outerwear\\\": \\\"black jacket casually draped over shoulders\\\",\\n      \\\"accessories\\\": \\\"sunglasses resting on top of head, minimal jewelry\\\"\\n    },\\n    \\\"hair\\\": \\\"loose blonde hair, naturally falling over shoulders with slight sun highlights\\\"\\n  },\\n  \\\"scene\\\": {\\n    \\\"description\\\": \\\"A rooftop terrace during daytime with urban residential buildings in the background.\\\",\\n    \\\"location\\\": \\\"Outdoor terrace in a city (Mediterranean/European style architecture).\\\",\\n    \\\"setting\\\": \\\"Rooftop seating area\\\",\\n    \\\"background_elements\\\": \\\"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\\\",\\n    \\\"lighting\\\": \\\"strong natural sunlight casting sharp shadows\\\",\\n    \\\"atmosphere\\\": \\\"casual, sunny, relaxed daytime vibe\\\"\\n  },\\n  \\\"environment\\\": {\\n    \\\"ambience\\\": \\\"bright daylight, outdoor, airy\\\",\\n    \\\"style\\\": \\\"candid lifestyle moment\\\",\\n    \\\"depth_of_field\\\": \\\"moderate depth of field, subject in focus, background slightly softened but still readable\\\"\\n  },\\n  \\\"camera\\\": {\\n    \\\"device\\\": \\\"iPhone 13 rear camera\\\",\\n    \\\"mode\\\": \\\"standard photo mode\\\",\\n    \\\"lens\\\": \\\"wide lens (~26mm equivalent)\\\",\\n    \\\"angle\\\": \\\"slightly top-down angle, as if standing above subject\\\",\\n    \\\"aspect_ratio\\\": \\\"4:5\\\",\\n    \\\"framing\\\": \\\"full body seated framing, subject centered slightly lower in frame\\\",\\n    \\\"focus\\\": \\\"sharp focus on subject\\\",\\n    \\\"stability\\\": \\\"handheld\\\"\\n  },\\n  \\\"image_quality\\\": {\\n    \\\"resolution\\\": \\\"standard mobile resolution\\\",\\n    \\\"grain\\\": \\\"very subtle grain\\\",\\n    \\\"sharpness\\\": \\\"natural smartphone sharpening\\\",\\n    \\\"compression_artifacts\\\": \\\"minimal\\\",\\n    \\\"dynamic_range\\\": \\\"bright highlights with slight clipping in strongest sunlight areas\\\"\\n  },\\n  \\\"lighting\\\": {\\n    \\\"type\\\": \\\"direct sunlight\\\",\\n    \\\"quality\\\": \\\"harsh, high contrast lighting with strong shadows\\\",\\n    \\\"effects\\\": \\\"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\\\"\\n  },\\n  \\\"color_grading\\\": {\\n    \\\"tone\\\": \\\"natural daylight\\\",\\n    \\\"temperature\\\": \\\"slightly warm\\\",\\n    \\\"contrast\\\": \\\"moderate to high contrast due to sunlight\\\",\\n    \\\"saturation\\\": \\\"realistic, slightly vibrant\\\",\\n    \\\"highlights\\\": \\\"bright, slightly blown in sunlit areas\\\",\\n    \\\"shadows\\\": \\\"defined and darker\\\"\\n  },\\n  \\\"rendering\\\": {\\n    \\\"style\\\": \\\"photorealistic smartphone photography\\\",\\n    \\\"quality\\\": \\\"clean, natural, unfiltered look\\\",\\n    \\\"skin_texture\\\": \\\"natural with sunlight reflections\\\",\\n    \\\"post_processing\\\": \\\"minimal, straight-out-of-camera feel\\\"\\n  },\\n  \\\"artifacts\\\": {\\n    \\\"lens_flare\\\": \\\"very subtle possible sunlight flare\\\",\\n    \\\"noise_pattern\\\": \\\"minimal\\\",\\n    \\\"motion_blur\\\": \\\"none\\\",\\n    \\\"chromatic_aberration\\\": \\\"slight on high contrast edges\\\"\\n  },\\n  \\\"constraints\\\": {\\n    \\\"focus_priority\\\": \\\"subject must remain primary focal point\\\",\\n    \\\"avoid\\\": \\\"over-processed skin, artificial lighting, studio look, cinematic grading\\\"\\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  \"subject\": {\n    \"description\": \"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\",\n    \"body\": {\n      \"type\": \"female, slim build\",\n      \"details\": \"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\",\n      \"pose\": \"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\"\n    },\n    \"face\": {\n      \"expression\": \"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\",\n      \"gaze_direction\": \"towards camera\",\n      \"head_tilt\": \"slight tilt to the right\",\n      \"skin\": \"smooth, natural skin with sunlight highlights and minimal imperfections\"\n    },\n    \"wardrobe\": {\n      \"top\": \"white fitted t-shirt\",\n      \"bottom\": \"light blue ripped jeans with knee tears\",\n      \"outerwear\": \"black jacket casually draped over shoulders\",\n      \"accessories\": \"sunglasses resting on top of head, minimal jewelry\"\n    },\n    \"hair\": \"loose blonde hair, naturally falling over shoulders with slight sun highlights\"\n  },\n  \"scene\": {\n    \"description\": \"A rooftop terrace during daytime with urban residential buildings in the background.\",\n    \"location\": \"Outdoor terrace in a city (Mediterranean/European style architecture).\",\n    \"setting\": \"Rooftop seating area\",\n    \"background_elements\": \"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\",\n    \"lighting\": \"strong natural sunlight casting sharp shadows\",\n    \"atmosphere\": \"casual, sunny, relaxed daytime vibe\"\n  },\n  \"environment\": {\n    \"ambience\": \"bright daylight, outdoor, airy\",\n    \"style\": \"candid lifestyle moment\",\n    \"depth_of_field\": \"moderate depth of field, subject in focus, background slightly softened but still readable\"\n  },\n  \"camera\": {\n    \"device\": \"iPhone 13 rear camera\",\n    \"mode\": \"standard photo mode\",\n    \"lens\": \"wide lens (~26mm equivalent)\",\n    \"angle\": \"slightly top-down angle, as if standing above subject\",\n    \"aspect_ratio\": \"4:5\",\n    \"framing\": \"full body seated framing, subject centered slightly lower in frame\",\n    \"focus\": \"sharp focus on subject\",\n    \"stability\": \"handheld\"\n  },\n  \"image_quality\": {\n    \"resolution\": \"standard mobile resolution\",\n    \"grain\": \"very subtle grain\",\n    \"sharpness\": \"natural smartphone sharpening\",\n    \"compression_artifacts\": \"minimal\",\n    \"dynamic_range\": \"bright highlights with slight clipping in strongest sunlight areas\"\n  },\n  \"lighting\": {\n    \"type\": \"direct sunlight\",\n    \"quality\": \"harsh, high contrast lighting with strong shadows\",\n    \"effects\": \"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\"\n  },\n  \"color_grading\": {\n    \"tone\": \"natural daylight\",\n    \"temperature\": \"slightly warm\",\n    \"contrast\": \"moderate to high contrast due to sunlight\",\n    \"saturation\": \"realistic, slightly vibrant\",\n    \"highlights\": \"bright, slightly blown in sunlit areas\",\n    \"shadows\": \"defined and darker\"\n  },\n  \"rendering\": {\n    \"style\": \"photorealistic smartphone photography\",\n    \"quality\": \"clean, natural, unfiltered look\",\n    \"skin_texture\": \"natural with sunlight reflections\",\n    \"post_processing\": \"minimal, straight-out-of-camera feel\"\n  },\n  \"artifacts\": {\n    \"lens_flare\": \"very subtle possible sunlight flare\",\n    \"noise_pattern\": \"minimal\",\n    \"motion_blur\": \"none\",\n    \"chromatic_aberration\": \"slight on high contrast edges\"\n  },\n  \"constraints\": {\n    \"focus_priority\": \"subject must remain primary focal point\",\n    \"avoid\": \"over-processed skin, artificial lighting, studio look, cinematic grading\"\n  }\n}" \
    --wait
```

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

## More prompts like this

- [Educative video](https://runapi.ai/prompts/prm_GqW79wzlyMLeH9Ya4Od3m5K1.md)
- [Man black.](https://runapi.ai/prompts/prm_9vxNwzoeD3O3sMKKDd6XAVO7.md)
- [Vintage Tiled Portrait Poster With Handwritten Sticky Notes (JSON, 3:4)](https://runapi.ai/prompts/prm_zXJ0gpnA8WgocLGE817Qqe9w.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": "Rooftop Lifestyle Portrait Prompt",
        "item": "https://runapi.ai/prompts/prm_Eknpxvwl4jrESYww40JVoerg"
      }
    ]
  },
  {
    "@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": "Rooftop Lifestyle Portrait Prompt",
    "text": "{\n  \"subject\": {\n    \"description\": \"A young blonde woman with fair skin sitting outdoors in direct sunlight, relaxed and slightly smiling with a soft squint due to bright light.\",\n    \"body\": {\n      \"type\": \"female, slim build\",\n      \"details\": \"light skin tone, straight blonde hair worn loose, natural makeup, slightly sunlit skin\",\n      \"pose\": \"reclining on a modern outdoor chair, body angled slightly to the right, legs extended forward, hands resting near her lap holding a phone\"\n    },\n    \"face\": {\n      \"expression\": \"soft smile, slightly squinting eyes due to sunlight, relaxed and confident\",\n      \"gaze_direction\": \"towards camera\",\n      \"head_tilt\": \"slight tilt to the right\",\n      \"skin\": \"smooth, natural skin with sunlight highlights and minimal imperfections\"\n    },\n    \"wardrobe\": {\n      \"top\": \"white fitted t-shirt\",\n      \"bottom\": \"light blue ripped jeans with knee tears\",\n      \"outerwear\": \"black jacket casually draped over shoulders\",\n      \"accessories\": \"sunglasses resting on top of head, minimal jewelry\"\n    },\n    \"hair\": \"loose blonde hair, naturally falling over shoulders with slight sun highlights\"\n  },\n  \"scene\": {\n    \"description\": \"A rooftop terrace during daytime with urban residential buildings in the background.\",\n    \"location\": \"Outdoor terrace in a city (Mediterranean/European style architecture).\",\n    \"setting\": \"Rooftop seating area\",\n    \"background_elements\": \"wooden planter boxes with green plants, concrete floor tiles, nearby buildings with windows and rooftops\",\n    \"lighting\": \"strong natural sunlight casting sharp shadows\",\n    \"atmosphere\": \"casual, sunny, relaxed daytime vibe\"\n  },\n  \"environment\": {\n    \"ambience\": \"bright daylight, outdoor, airy\",\n    \"style\": \"candid lifestyle moment\",\n    \"depth_of_field\": \"moderate depth of field, subject in focus, background slightly softened but still readable\"\n  },\n  \"camera\": {\n    \"device\": \"iPhone 13 rear camera\",\n    \"mode\": \"standard photo mode\",\n    \"lens\": \"wide lens (~26mm equivalent)\",\n    \"angle\": \"slightly top-down angle, as if standing above subject\",\n    \"aspect_ratio\": \"4:5\",\n    \"framing\": \"full body seated framing, subject centered slightly lower in frame\",\n    \"focus\": \"sharp focus on subject\",\n    \"stability\": \"handheld\"\n  },\n  \"image_quality\": {\n    \"resolution\": \"standard mobile resolution\",\n    \"grain\": \"very subtle grain\",\n    \"sharpness\": \"natural smartphone sharpening\",\n    \"compression_artifacts\": \"minimal\",\n    \"dynamic_range\": \"bright highlights with slight clipping in strongest sunlight areas\"\n  },\n  \"lighting\": {\n    \"type\": \"direct sunlight\",\n    \"quality\": \"harsh, high contrast lighting with strong shadows\",\n    \"effects\": \"sunlight highlights on hair and skin, sharp shadow edges on ground and chair\"\n  },\n  \"color_grading\": {\n    \"tone\": \"natural daylight\",\n    \"temperature\": \"slightly warm\",\n    \"contrast\": \"moderate to high contrast due to sunlight\",\n    \"saturation\": \"realistic, slightly vibrant\",\n    \"highlights\": \"bright, slightly blown in sunlit areas\",\n    \"shadows\": \"defined and darker\"\n  },\n  \"rendering\": {\n    \"style\": \"photorealistic smartphone photography\",\n    \"quality\": \"clean, natural, unfiltered look\",\n    \"skin_texture\": \"natural with sunlight reflections\",\n    \"post_processing\": \"minimal, straight-out-of-camera feel\"\n  },\n  \"artifacts\": {\n    \"lens_flare\": \"very subtle possible sunlight flare\",\n    \"noise_pattern\": \"minimal\",\n    \"motion_blur\": \"none\",\n    \"chromatic_aberration\": \"slight on high contrast edges\"\n  },\n  \"constraints\": {\n    \"focus_priority\": \"subject must remain primary focal point\",\n    \"avoid\": \"over-processed skin, artificial lighting, studio look, cinematic grading\"\n  }\n}",
    "image": null,
    "about": [
      "image",
      "lifestyle"
    ]
  }
]
```
