---
title: "From Photo to LEGO Minifigure \U0001F9F1 —  Prompt | RunAPI | RunAPI"
description: Copy this RunAPI prompt, view agent setup steps, and use API code for .
url: https://runapi.ai/prompts/prm_3z60e7LoydQ5TMWXDxKdZqMw.md
canonical: https://runapi.ai/prompts/prm_3z60e7LoydQ5TMWXDxKdZqMw
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 49285
modality: image
endpoint: "/api/v1/runapi/text_to_image"
---

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


# From Photo to LEGO Minifigure 🧱

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

**Prompts** · Image

## Prompt

```text
{
  "prompt": {
    "title": "Personalized LEGO Minifigure Collectible Generator",
    "concept": "Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.",

    "reference_image_analysis": {
      "instruction": "Analyze the reference photograph before designing the minifigure.",
      "identify_and_preserve": [
        "Distinctive facial characteristics",
        "Face shape and proportions",
        "Hair color, hairstyle, and hair volume",
        "Eyebrows and characteristic expression",
        "Glasses and eyewear",
        "Facial hair, beard, and moustache",
        "Original clothing and dominant colors",
        "Logos, typography, and recognizable clothing graphics",
        "Jewelry, watches, bags, and personal accessories",
        "Other distinctive visual characteristics"
      ],
      "identity_priority": "The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design."
    },

    "character_construction": {
      "design_language": "Authentic classic LEGO minifigure construction with premium collectible detailing.",
      "head": {
        "shape": "Classic cylindrical LEGO minifigure head",
        "material": "Glossy injection-molded plastic",
        "color": "Traditional LEGO yellow or appropriate LEGO skin-tone color",
        "face": "Printed LEGO facial graphics",
        "eyes": "Classic expressive LEGO eyes with black pupils and white highlights",
        "eyebrows": "Printed eyebrows matching the subject",
        "expression": "Friendly, confident, natural expression",
        "facial_hair": "Precisely printed stubble, beard, or moustache when present"
      },

      "hair": {
        "construction": "Separate molded LEGO hairpiece",
        "material": "Glossy ABS plastic",
        "style": "Reproduce the reference hairstyle using recognizable molded hair geometry",
        "details": "Individual molded hair sections, realistic plastic reflections, accurate hair color"
      },

      "eyewear": {
        "instruction": "Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.",
        "style": "Accurate frame shape, color, and proportions."
      },

      "torso": {
        "shape": "Classic LEGO minifigure torso",
        "clothing": "Reproduce the original outfit using clean printed graphics.",
        "graphics": "Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.",
        "texture": "Smooth plastic with printed designs. Never use realistic fabric textures.",
        "finish": "Premium glossy molded plastic."
      },

      "arms": {
        "shape": "Classic cylindrical LEGO arms",
        "proportions": "Authentic minifigure dimensions",
        "color": "Match the reference clothing"
      },

      "hands": {
        "shape": "Traditional C-shaped LEGO hands",
        "color": "Match the minifigure head color"
      },

      "legs": {
        "shape": "Classic rigid LEGO minifigure legs",
        "proportions": "Short, blocky, connected LEGO legs",
        "details": "Printed trousers, shoes, and other recognizable clothing details where appropriate"
      },

      "accessories": {
        "instruction": "Recreate recognizable personal accessories as miniature molded LEGO elements.",
        "examples": [
          "Glasses",
          "Watches",
          "Headphones",
          "Backpacks",
          "Bags",
          "Hats",
          "Jewelry",
          "Professional equipment",
          "Personal objects"
        ],
        "rule": "Only include accessories supported by the reference photograph."
      }
    },

    "material_and_rendering": {
      "material": "High-quality injection-molded ABS plastic",
      "surface": "Smooth, polished, glossy plastic",
      "reflections": "Subtle controlled studio reflections",
      "edges": "Precise molded edges and authentic LEGO geometry",
      "printing": "Sharp, clean, high-resolution printed graphics",
      "realism": "Photorealistic physical toy rendering",
      "quality": "Premium collectible product visualization"
    },

    "composition": {
      "subject_count": 1,
      "position": "Precisely centered in the frame",
      "pose": "Standing upright in a natural neutral minifigure pose",
      "orientation": "Front-facing with a subtle three-quarter angle",
      "framing": "Complete character visible from hair to feet",
      "scale": "Character occupies approximately 75 to 85 percent of the image height",
      "symmetry": "Balanced composition with equal visual breathing room",
      "camera": "Professional product photography, slightly elevated three-quarter perspective"
    },

    "background": {
      "type": "Pure white seamless studio background",
      "color": "#FFFFFF",
      "environment": "No scenery, no diorama, no LEGO bricks, no furniture, no props",
      "shadows": "Very subtle natural contact shadow beneath the character",
      "distractions": "Absolutely none"
    },

    "lighting": {
      "style": "Premium commercial studio lighting",
      "key_light": "Large softbox positioned at 45 degrees",
      "fill_light": "Soft frontal fill light",
      "rim_light": "Subtle highlights around the hair and shoulders",
      "shadows": "Soft realistic shadows",
      "exposure": "Bright, balanced, clean exposure"
    },

    "miniature_effect": {
      "concept": "The character must look like a real, tiny physical collectible toy photographed using professional macro photography.",
      "camera_style": "Macro product photography",
      "lens": "90mm to 105mm macro lens aesthetic",
      "depth_of_field": "Moderately shallow depth of field, keeping the entire minifigure sharp.",
      "focus": "Sharp focus on the face, hair, torso, and clothing details.",
      "perspective": "Natural miniature toy photography perspective",
      "scale_illusion": "Subtle optical characteristics that communicate physical miniature scale without distorting the character.",
      "background_blur": "Not applicable to the pure white seamless background."
    },

    "visual_consistency": {
      "priority_1": "Authentic LEGO minifigure anatomy",
      "priority_2": "Recognizable personal identity",
      "priority_3": "Accurate clothing and accessories",
      "priority_4": "Premium glossy plastic materials",
      "priority_5": "Consistent studio product photography",
      "rule": "Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character."
    },

    "negative_prompt": [
      "Realistic human anatomy",
      "Human skin texture",
      "Photorealistic human face",
      "Funko Pop proportions",
      "Action figure anatomy",
      "Soft organic body shapes",
      "Long human-like legs",
      "Realistic fabric",
      "Cloth wrinkles",
      "Oversized hands",
      "Deformed LEGO parts",
      "Missing accessories",
      "Incorrect hairstyle",
      "Unrecognizable facial characteristics",
      "Extra limbs",
      "Multiple characters",
      "Background scenery",
      "LEGO diorama",
      "Colored background",
      "Text outside the character",
      "Watermarks",
      "Packaging",
      "Display stands",
      "Cropped feet",
      "Cropped hair"
    ],

    "output_settings": {
      "format": "Photorealistic 3D render",
      "aspect_ratio": "2:3",
      "resolution": "High resolution",
      "background": "Pure white",
      "subject": "One complete centered LEGO minifigure",
      "presentation": "Premium collectible studio product photograph"
    }
  }
}
```

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

From Photo to LEGO Minifigure 🧱

### Atmosphere

advertising / Image

### Technical

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

### Style

collectible, glossy-plastic, lego-minifigure, product-photography

<!-- /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 | advertising |
| Tags | collectible, glossy-plastic, lego-minifigure, product-photography |

## 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: "{
  "prompt": {
    "title": "Personalized LEGO Minifigure Collectible Generator",
    "concept": "Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.",

    "reference_image_analysis": {
      "instruction": "Analyze the reference photograph before designing the minifigure.",
      "identify_and_preserve": [
        "Distinctive facial characteristics",
        "Face shape and proportions",
        "Hair color, hairstyle, and hair volume",
        "Eyebrows and characteristic expression",
        "Glasses and eyewear",
        "Facial hair, beard, and moustache",
        "Original clothing and dominant colors",
        "Logos, typography, and recognizable clothing graphics",
        "Jewelry, watches, bags, and personal accessories",
        "Other distinctive visual characteristics"
      ],
      "identity_priority": "The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design."
    },

    "character_construction": {
      "design_language": "Authentic classic LEGO minifigure construction with premium collectible detailing.",
      "head": {
        "shape": "Classic cylindrical LEGO minifigure head",
        "material": "Glossy injection-molded plastic",
        "color": "Traditional LEGO yellow or appropriate LEGO skin-tone color",
        "face": "Printed LEGO facial graphics",
        "eyes": "Classic expressive LEGO eyes with black pupils and white highlights",
        "eyebrows": "Printed eyebrows matching the subject",
        "expression": "Friendly, confident, natural expression",
        "facial_hair": "Precisely printed stubble, beard, or moustache when present"
      },

      "hair": {
        "construction": "Separate molded LEGO hairpiece",
        "material": "Glossy ABS plastic",
        "style": "Reproduce the reference hairstyle using recognizable molded hair geometry",
        "details": "Individual molded hair sections, realistic plastic reflections, accurate hair color"
      },

      "eyewear": {
        "instruction": "Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.",
        "style": "Accurate frame shape, color, and proportions."
      },

      "torso": {
        "shape": "Classic LEGO minifigure torso",
        "clothing": "Reproduce the original outfit using clean printed graphics.",
        "graphics": "Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.",
        "texture": "Smooth plastic with printed designs. Never use realistic fabric textures.",
        "finish": "Premium glossy molded plastic."
      },

      "arms": {
        "shape": "Classic cylindrical LEGO arms",
        "proportions": "Authentic minifigure dimensions",
        "color": "Match the reference clothing"
      },

      "hands": {
        "shape": "Traditional C-shaped LEGO hands",
        "color": "Match the minifigure head color"
      },

      "legs": {
        "shape": "Classic rigid LEGO minifigure legs",
        "proportions": "Short, blocky, connected LEGO legs",
        "details": "Printed trousers, shoes, and other recognizable clothing details where appropriate"
      },

      "accessories": {
        "instruction": "Recreate recognizable personal accessories as miniature molded LEGO elements.",
        "examples": [
          "Glasses",
          "Watches",
          "Headphones",
          "Backpacks",
          "Bags",
          "Hats",
          "Jewelry",
          "Professional equipment",
          "Personal objects"
        ],
        "rule": "Only include accessories supported by the reference photograph."
      }
    },

    "material_and_rendering": {
      "material": "High-quality injection-molded ABS plastic",
      "surface": "Smooth, polished, glossy plastic",
      "reflections": "Subtle controlled studio reflections",
      "edges": "Precise molded edges and authentic LEGO geometry",
      "printing": "Sharp, clean, high-resolution printed graphics",
      "realism": "Photorealistic physical toy rendering",
      "quality": "Premium collectible product visualization"
    },

    "composition": {
      "subject_count": 1,
      "position": "Precisely centered in the frame",
      "pose": "Standing upright in a natural neutral minifigure pose",
      "orientation": "Front-facing with a subtle three-quarter angle",
      "framing": "Complete character visible from hair to feet",
      "scale": "Character occupies approximately 75 to 85 percent of the image height",
      "symmetry": "Balanced composition with equal visual breathing room",
      "camera": "Professional product photography, slightly elevated three-quarter perspective"
    },

    "background": {
      "type": "Pure white seamless studio background",
      "color": "#FFFFFF",
      "environment": "No scenery, no diorama, no LEGO bricks, no furniture, no props",
      "shadows": "Very subtle natural contact shadow beneath the character",
      "distractions": "Absolutely none"
    },

    "lighting": {
      "style": "Premium commercial studio lighting",
      "key_light": "Large softbox positioned at 45 degrees",
      "fill_light": "Soft frontal fill light",
      "rim_light": "Subtle highlights around the hair and shoulders",
      "shadows": "Soft realistic shadows",
      "exposure": "Bright, balanced, clean exposure"
    },

    "miniature_effect": {
      "concept": "The character must look like a real, tiny physical collectible toy photographed using professional macro photography.",
      "camera_style": "Macro product photography",
      "lens": "90mm to 105mm macro lens aesthetic",
      "depth_of_field": "Moderately shallow depth of field, keeping the entire minifigure sharp.",
      "focus": "Sharp focus on the face, hair, torso, and clothing details.",
      "perspective": "Natural miniature toy photography perspective",
      "scale_illusion": "Subtle optical characteristics that communicate physical miniature scale without distorting the character.",
      "background_blur": "Not applicable to the pure white seamless background."
    },

    "visual_consistency": {
      "priority_1": "Authentic LEGO minifigure anatomy",
      "priority_2": "Recognizable personal identity",
      "priority_3": "Accurate clothing and accessories",
      "priority_4": "Premium glossy plastic materials",
      "priority_5": "Consistent studio product photography",
      "rule": "Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character."
    },

    "negative_prompt": [
      "Realistic human anatomy",
      "Human skin texture",
      "Photorealistic human face",
      "Funko Pop proportions",
      "Action figure anatomy",
      "Soft organic body shapes",
      "Long human-like legs",
      "Realistic fabric",
      "Cloth wrinkles",
      "Oversized hands",
      "Deformed LEGO parts",
      "Missing accessories",
      "Incorrect hairstyle",
      "Unrecognizable facial characteristics",
      "Extra limbs",
      "Multiple characters",
      "Background scenery",
      "LEGO diorama",
      "Colored background",
      "Text outside the character",
      "Watermarks",
      "Packaging",
      "Display stands",
      "Cropped feet",
      "Cropped hair"
    ],

    "output_settings": {
      "format": "Photorealistic 3D render",
      "aspect_ratio": "2:3",
      "resolution": "High resolution",
      "background": "Pure white",
      "subject": "One complete centered LEGO minifigure",
      "presentation": "Premium collectible studio product photograph"
    }
  }
}"

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate an image: "{
  "prompt": {
    "title": "Personalized LEGO Minifigure Collectible Generator",
    "concept": "Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.",

    "reference_image_analysis": {
      "instruction": "Analyze the reference photograph before designing the minifigure.",
      "identify_and_preserve": [
        "Distinctive facial characteristics",
        "Face shape and proportions",
        "Hair color, hairstyle, and hair volume",
        "Eyebrows and characteristic expression",
        "Glasses and eyewear",
        "Facial hair, beard, and moustache",
        "Original clothing and dominant colors",
        "Logos, typography, and recognizable clothing graphics",
        "Jewelry, watches, bags, and personal accessories",
        "Other distinctive visual characteristics"
      ],
      "identity_priority": "The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design."
    },

    "character_construction": {
      "design_language": "Authentic classic LEGO minifigure construction with premium collectible detailing.",
      "head": {
        "shape": "Classic cylindrical LEGO minifigure head",
        "material": "Glossy injection-molded plastic",
        "color": "Traditional LEGO yellow or appropriate LEGO skin-tone color",
        "face": "Printed LEGO facial graphics",
        "eyes": "Classic expressive LEGO eyes with black pupils and white highlights",
        "eyebrows": "Printed eyebrows matching the subject",
        "expression": "Friendly, confident, natural expression",
        "facial_hair": "Precisely printed stubble, beard, or moustache when present"
      },

      "hair": {
        "construction": "Separate molded LEGO hairpiece",
        "material": "Glossy ABS plastic",
        "style": "Reproduce the reference hairstyle using recognizable molded hair geometry",
        "details": "Individual molded hair sections, realistic plastic reflections, accurate hair color"
      },

      "eyewear": {
        "instruction": "Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.",
        "style": "Accurate frame shape, color, and proportions."
      },

      "torso": {
        "shape": "Classic LEGO minifigure torso",
        "clothing": "Reproduce the original outfit using clean printed graphics.",
        "graphics": "Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.",
        "texture": "Smooth plastic with printed designs. Never use realistic fabric textures.",
        "finish": "Premium glossy molded plastic."
      },

      "arms": {
        "shape": "Classic cylindrical LEGO arms",
        "proportions": "Authentic minifigure dimensions",
        "color": "Match the reference clothing"
      },

      "hands": {
        "shape": "Traditional C-shaped LEGO hands",
        "color": "Match the minifigure head color"
      },

      "legs": {
        "shape": "Classic rigid LEGO minifigure legs",
        "proportions": "Short, blocky, connected LEGO legs",
        "details": "Printed trousers, shoes, and other recognizable clothing details where appropriate"
      },

      "accessories": {
        "instruction": "Recreate recognizable personal accessories as miniature molded LEGO elements.",
        "examples": [
          "Glasses",
          "Watches",
          "Headphones",
          "Backpacks",
          "Bags",
          "Hats",
          "Jewelry",
          "Professional equipment",
          "Personal objects"
        ],
        "rule": "Only include accessories supported by the reference photograph."
      }
    },

    "material_and_rendering": {
      "material": "High-quality injection-molded ABS plastic",
      "surface": "Smooth, polished, glossy plastic",
      "reflections": "Subtle controlled studio reflections",
      "edges": "Precise molded edges and authentic LEGO geometry",
      "printing": "Sharp, clean, high-resolution printed graphics",
      "realism": "Photorealistic physical toy rendering",
      "quality": "Premium collectible product visualization"
    },

    "composition": {
      "subject_count": 1,
      "position": "Precisely centered in the frame",
      "pose": "Standing upright in a natural neutral minifigure pose",
      "orientation": "Front-facing with a subtle three-quarter angle",
      "framing": "Complete character visible from hair to feet",
      "scale": "Character occupies approximately 75 to 85 percent of the image height",
      "symmetry": "Balanced composition with equal visual breathing room",
      "camera": "Professional product photography, slightly elevated three-quarter perspective"
    },

    "background": {
      "type": "Pure white seamless studio background",
      "color": "#FFFFFF",
      "environment": "No scenery, no diorama, no LEGO bricks, no furniture, no props",
      "shadows": "Very subtle natural contact shadow beneath the character",
      "distractions": "Absolutely none"
    },

    "lighting": {
      "style": "Premium commercial studio lighting",
      "key_light": "Large softbox positioned at 45 degrees",
      "fill_light": "Soft frontal fill light",
      "rim_light": "Subtle highlights around the hair and shoulders",
      "shadows": "Soft realistic shadows",
      "exposure": "Bright, balanced, clean exposure"
    },

    "miniature_effect": {
      "concept": "The character must look like a real, tiny physical collectible toy photographed using professional macro photography.",
      "camera_style": "Macro product photography",
      "lens": "90mm to 105mm macro lens aesthetic",
      "depth_of_field": "Moderately shallow depth of field, keeping the entire minifigure sharp.",
      "focus": "Sharp focus on the face, hair, torso, and clothing details.",
      "perspective": "Natural miniature toy photography perspective",
      "scale_illusion": "Subtle optical characteristics that communicate physical miniature scale without distorting the character.",
      "background_blur": "Not applicable to the pure white seamless background."
    },

    "visual_consistency": {
      "priority_1": "Authentic LEGO minifigure anatomy",
      "priority_2": "Recognizable personal identity",
      "priority_3": "Accurate clothing and accessories",
      "priority_4": "Premium glossy plastic materials",
      "priority_5": "Consistent studio product photography",
      "rule": "Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character."
    },

    "negative_prompt": [
      "Realistic human anatomy",
      "Human skin texture",
      "Photorealistic human face",
      "Funko Pop proportions",
      "Action figure anatomy",
      "Soft organic body shapes",
      "Long human-like legs",
      "Realistic fabric",
      "Cloth wrinkles",
      "Oversized hands",
      "Deformed LEGO parts",
      "Missing accessories",
      "Incorrect hairstyle",
      "Unrecognizable facial characteristics",
      "Extra limbs",
      "Multiple characters",
      "Background scenery",
      "LEGO diorama",
      "Colored background",
      "Text outside the character",
      "Watermarks",
      "Packaging",
      "Display stands",
      "Cropped feet",
      "Cropped hair"
    ],

    "output_settings": {
      "format": "Photorealistic 3D render",
      "aspect_ratio": "2:3",
      "resolution": "High resolution",
      "background": "Pure white",
      "subject": "One complete centered LEGO minifigure",
      "presentation": "Premium collectible studio product photograph"
    }
  }
}"

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate an image: "{
  "prompt": {
    "title": "Personalized LEGO Minifigure Collectible Generator",
    "concept": "Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.",

    "reference_image_analysis": {
      "instruction": "Analyze the reference photograph before designing the minifigure.",
      "identify_and_preserve": [
        "Distinctive facial characteristics",
        "Face shape and proportions",
        "Hair color, hairstyle, and hair volume",
        "Eyebrows and characteristic expression",
        "Glasses and eyewear",
        "Facial hair, beard, and moustache",
        "Original clothing and dominant colors",
        "Logos, typography, and recognizable clothing graphics",
        "Jewelry, watches, bags, and personal accessories",
        "Other distinctive visual characteristics"
      ],
      "identity_priority": "The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design."
    },

    "character_construction": {
      "design_language": "Authentic classic LEGO minifigure construction with premium collectible detailing.",
      "head": {
        "shape": "Classic cylindrical LEGO minifigure head",
        "material": "Glossy injection-molded plastic",
        "color": "Traditional LEGO yellow or appropriate LEGO skin-tone color",
        "face": "Printed LEGO facial graphics",
        "eyes": "Classic expressive LEGO eyes with black pupils and white highlights",
        "eyebrows": "Printed eyebrows matching the subject",
        "expression": "Friendly, confident, natural expression",
        "facial_hair": "Precisely printed stubble, beard, or moustache when present"
      },

      "hair": {
        "construction": "Separate molded LEGO hairpiece",
        "material": "Glossy ABS plastic",
        "style": "Reproduce the reference hairstyle using recognizable molded hair geometry",
        "details": "Individual molded hair sections, realistic plastic reflections, accurate hair color"
      },

      "eyewear": {
        "instruction": "Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.",
        "style": "Accurate frame shape, color, and proportions."
      },

      "torso": {
        "shape": "Classic LEGO minifigure torso",
        "clothing": "Reproduce the original outfit using clean printed graphics.",
        "graphics": "Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.",
        "texture": "Smooth plastic with printed designs. Never use realistic fabric textures.",
        "finish": "Premium glossy molded plastic."
      },

      "arms": {
        "shape": "Classic cylindrical LEGO arms",
        "proportions": "Authentic minifigure dimensions",
        "color": "Match the reference clothing"
      },

      "hands": {
        "shape": "Traditional C-shaped LEGO hands",
        "color": "Match the minifigure head color"
      },

      "legs": {
        "shape": "Classic rigid LEGO minifigure legs",
        "proportions": "Short, blocky, connected LEGO legs",
        "details": "Printed trousers, shoes, and other recognizable clothing details where appropriate"
      },

      "accessories": {
        "instruction": "Recreate recognizable personal accessories as miniature molded LEGO elements.",
        "examples": [
          "Glasses",
          "Watches",
          "Headphones",
          "Backpacks",
          "Bags",
          "Hats",
          "Jewelry",
          "Professional equipment",
          "Personal objects"
        ],
        "rule": "Only include accessories supported by the reference photograph."
      }
    },

    "material_and_rendering": {
      "material": "High-quality injection-molded ABS plastic",
      "surface": "Smooth, polished, glossy plastic",
      "reflections": "Subtle controlled studio reflections",
      "edges": "Precise molded edges and authentic LEGO geometry",
      "printing": "Sharp, clean, high-resolution printed graphics",
      "realism": "Photorealistic physical toy rendering",
      "quality": "Premium collectible product visualization"
    },

    "composition": {
      "subject_count": 1,
      "position": "Precisely centered in the frame",
      "pose": "Standing upright in a natural neutral minifigure pose",
      "orientation": "Front-facing with a subtle three-quarter angle",
      "framing": "Complete character visible from hair to feet",
      "scale": "Character occupies approximately 75 to 85 percent of the image height",
      "symmetry": "Balanced composition with equal visual breathing room",
      "camera": "Professional product photography, slightly elevated three-quarter perspective"
    },

    "background": {
      "type": "Pure white seamless studio background",
      "color": "#FFFFFF",
      "environment": "No scenery, no diorama, no LEGO bricks, no furniture, no props",
      "shadows": "Very subtle natural contact shadow beneath the character",
      "distractions": "Absolutely none"
    },

    "lighting": {
      "style": "Premium commercial studio lighting",
      "key_light": "Large softbox positioned at 45 degrees",
      "fill_light": "Soft frontal fill light",
      "rim_light": "Subtle highlights around the hair and shoulders",
      "shadows": "Soft realistic shadows",
      "exposure": "Bright, balanced, clean exposure"
    },

    "miniature_effect": {
      "concept": "The character must look like a real, tiny physical collectible toy photographed using professional macro photography.",
      "camera_style": "Macro product photography",
      "lens": "90mm to 105mm macro lens aesthetic",
      "depth_of_field": "Moderately shallow depth of field, keeping the entire minifigure sharp.",
      "focus": "Sharp focus on the face, hair, torso, and clothing details.",
      "perspective": "Natural miniature toy photography perspective",
      "scale_illusion": "Subtle optical characteristics that communicate physical miniature scale without distorting the character.",
      "background_blur": "Not applicable to the pure white seamless background."
    },

    "visual_consistency": {
      "priority_1": "Authentic LEGO minifigure anatomy",
      "priority_2": "Recognizable personal identity",
      "priority_3": "Accurate clothing and accessories",
      "priority_4": "Premium glossy plastic materials",
      "priority_5": "Consistent studio product photography",
      "rule": "Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character."
    },

    "negative_prompt": [
      "Realistic human anatomy",
      "Human skin texture",
      "Photorealistic human face",
      "Funko Pop proportions",
      "Action figure anatomy",
      "Soft organic body shapes",
      "Long human-like legs",
      "Realistic fabric",
      "Cloth wrinkles",
      "Oversized hands",
      "Deformed LEGO parts",
      "Missing accessories",
      "Incorrect hairstyle",
      "Unrecognizable facial characteristics",
      "Extra limbs",
      "Multiple characters",
      "Background scenery",
      "LEGO diorama",
      "Colored background",
      "Text outside the character",
      "Watermarks",
      "Packaging",
      "Display stands",
      "Cropped feet",
      "Cropped hair"
    ],

    "output_settings": {
      "format": "Photorealistic 3D render",
      "aspect_ratio": "2:3",
      "resolution": "High resolution",
      "background": "Pure white",
      "subject": "One complete centered LEGO minifigure",
      "presentation": "Premium collectible studio product photograph"
    }
  }
}"

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate an image: "{
  "prompt": {
    "title": "Personalized LEGO Minifigure Collectible Generator",
    "concept": "Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.",

    "reference_image_analysis": {
      "instruction": "Analyze the reference photograph before designing the minifigure.",
      "identify_and_preserve": [
        "Distinctive facial characteristics",
        "Face shape and proportions",
        "Hair color, hairstyle, and hair volume",
        "Eyebrows and characteristic expression",
        "Glasses and eyewear",
        "Facial hair, beard, and moustache",
        "Original clothing and dominant colors",
        "Logos, typography, and recognizable clothing graphics",
        "Jewelry, watches, bags, and personal accessories",
        "Other distinctive visual characteristics"
      ],
      "identity_priority": "The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design."
    },

    "character_construction": {
      "design_language": "Authentic classic LEGO minifigure construction with premium collectible detailing.",
      "head": {
        "shape": "Classic cylindrical LEGO minifigure head",
        "material": "Glossy injection-molded plastic",
        "color": "Traditional LEGO yellow or appropriate LEGO skin-tone color",
        "face": "Printed LEGO facial graphics",
        "eyes": "Classic expressive LEGO eyes with black pupils and white highlights",
        "eyebrows": "Printed eyebrows matching the subject",
        "expression": "Friendly, confident, natural expression",
        "facial_hair": "Precisely printed stubble, beard, or moustache when present"
      },

      "hair": {
        "construction": "Separate molded LEGO hairpiece",
        "material": "Glossy ABS plastic",
        "style": "Reproduce the reference hairstyle using recognizable molded hair geometry",
        "details": "Individual molded hair sections, realistic plastic reflections, accurate hair color"
      },

      "eyewear": {
        "instruction": "Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.",
        "style": "Accurate frame shape, color, and proportions."
      },

      "torso": {
        "shape": "Classic LEGO minifigure torso",
        "clothing": "Reproduce the original outfit using clean printed graphics.",
        "graphics": "Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.",
        "texture": "Smooth plastic with printed designs. Never use realistic fabric textures.",
        "finish": "Premium glossy molded plastic."
      },

      "arms": {
        "shape": "Classic cylindrical LEGO arms",
        "proportions": "Authentic minifigure dimensions",
        "color": "Match the reference clothing"
      },

      "hands": {
        "shape": "Traditional C-shaped LEGO hands",
        "color": "Match the minifigure head color"
      },

      "legs": {
        "shape": "Classic rigid LEGO minifigure legs",
        "proportions": "Short, blocky, connected LEGO legs",
        "details": "Printed trousers, shoes, and other recognizable clothing details where appropriate"
      },

      "accessories": {
        "instruction": "Recreate recognizable personal accessories as miniature molded LEGO elements.",
        "examples": [
          "Glasses",
          "Watches",
          "Headphones",
          "Backpacks",
          "Bags",
          "Hats",
          "Jewelry",
          "Professional equipment",
          "Personal objects"
        ],
        "rule": "Only include accessories supported by the reference photograph."
      }
    },

    "material_and_rendering": {
      "material": "High-quality injection-molded ABS plastic",
      "surface": "Smooth, polished, glossy plastic",
      "reflections": "Subtle controlled studio reflections",
      "edges": "Precise molded edges and authentic LEGO geometry",
      "printing": "Sharp, clean, high-resolution printed graphics",
      "realism": "Photorealistic physical toy rendering",
      "quality": "Premium collectible product visualization"
    },

    "composition": {
      "subject_count": 1,
      "position": "Precisely centered in the frame",
      "pose": "Standing upright in a natural neutral minifigure pose",
      "orientation": "Front-facing with a subtle three-quarter angle",
      "framing": "Complete character visible from hair to feet",
      "scale": "Character occupies approximately 75 to 85 percent of the image height",
      "symmetry": "Balanced composition with equal visual breathing room",
      "camera": "Professional product photography, slightly elevated three-quarter perspective"
    },

    "background": {
      "type": "Pure white seamless studio background",
      "color": "#FFFFFF",
      "environment": "No scenery, no diorama, no LEGO bricks, no furniture, no props",
      "shadows": "Very subtle natural contact shadow beneath the character",
      "distractions": "Absolutely none"
    },

    "lighting": {
      "style": "Premium commercial studio lighting",
      "key_light": "Large softbox positioned at 45 degrees",
      "fill_light": "Soft frontal fill light",
      "rim_light": "Subtle highlights around the hair and shoulders",
      "shadows": "Soft realistic shadows",
      "exposure": "Bright, balanced, clean exposure"
    },

    "miniature_effect": {
      "concept": "The character must look like a real, tiny physical collectible toy photographed using professional macro photography.",
      "camera_style": "Macro product photography",
      "lens": "90mm to 105mm macro lens aesthetic",
      "depth_of_field": "Moderately shallow depth of field, keeping the entire minifigure sharp.",
      "focus": "Sharp focus on the face, hair, torso, and clothing details.",
      "perspective": "Natural miniature toy photography perspective",
      "scale_illusion": "Subtle optical characteristics that communicate physical miniature scale without distorting the character.",
      "background_blur": "Not applicable to the pure white seamless background."
    },

    "visual_consistency": {
      "priority_1": "Authentic LEGO minifigure anatomy",
      "priority_2": "Recognizable personal identity",
      "priority_3": "Accurate clothing and accessories",
      "priority_4": "Premium glossy plastic materials",
      "priority_5": "Consistent studio product photography",
      "rule": "Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character."
    },

    "negative_prompt": [
      "Realistic human anatomy",
      "Human skin texture",
      "Photorealistic human face",
      "Funko Pop proportions",
      "Action figure anatomy",
      "Soft organic body shapes",
      "Long human-like legs",
      "Realistic fabric",
      "Cloth wrinkles",
      "Oversized hands",
      "Deformed LEGO parts",
      "Missing accessories",
      "Incorrect hairstyle",
      "Unrecognizable facial characteristics",
      "Extra limbs",
      "Multiple characters",
      "Background scenery",
      "LEGO diorama",
      "Colored background",
      "Text outside the character",
      "Watermarks",
      "Packaging",
      "Display stands",
      "Cropped feet",
      "Cropped hair"
    ],

    "output_settings": {
      "format": "Photorealistic 3D render",
      "aspect_ratio": "2:3",
      "resolution": "High resolution",
      "background": "Pure white",
      "subject": "One complete centered LEGO minifigure",
      "presentation": "Premium collectible studio product photograph"
    }
  }
}"

<!-- 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  \"prompt\": {\n    \"title\": \"Personalized LEGO Minifigure Collectible Generator\",\n    \"concept\": \"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\",\n\n    \"reference_image_analysis\": {\n      \"instruction\": \"Analyze the reference photograph before designing the minifigure.\",\n      \"identify_and_preserve\": [\n        \"Distinctive facial characteristics\",\n        \"Face shape and proportions\",\n        \"Hair color, hairstyle, and hair volume\",\n        \"Eyebrows and characteristic expression\",\n        \"Glasses and eyewear\",\n        \"Facial hair, beard, and moustache\",\n        \"Original clothing and dominant colors\",\n        \"Logos, typography, and recognizable clothing graphics\",\n        \"Jewelry, watches, bags, and personal accessories\",\n        \"Other distinctive visual characteristics\"\n      ],\n      \"identity_priority\": \"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\"\n    },\n\n    \"character_construction\": {\n      \"design_language\": \"Authentic classic LEGO minifigure construction with premium collectible detailing.\",\n      \"head\": {\n        \"shape\": \"Classic cylindrical LEGO minifigure head\",\n        \"material\": \"Glossy injection-molded plastic\",\n        \"color\": \"Traditional LEGO yellow or appropriate LEGO skin-tone color\",\n        \"face\": \"Printed LEGO facial graphics\",\n        \"eyes\": \"Classic expressive LEGO eyes with black pupils and white highlights\",\n        \"eyebrows\": \"Printed eyebrows matching the subject\",\n        \"expression\": \"Friendly, confident, natural expression\",\n        \"facial_hair\": \"Precisely printed stubble, beard, or moustache when present\"\n      },\n\n      \"hair\": {\n        \"construction\": \"Separate molded LEGO hairpiece\",\n        \"material\": \"Glossy ABS plastic\",\n        \"style\": \"Reproduce the reference hairstyle using recognizable molded hair geometry\",\n        \"details\": \"Individual molded hair sections, realistic plastic reflections, accurate hair color\"\n      },\n\n      \"eyewear\": {\n        \"instruction\": \"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\",\n        \"style\": \"Accurate frame shape, color, and proportions.\"\n      },\n\n      \"torso\": {\n        \"shape\": \"Classic LEGO minifigure torso\",\n        \"clothing\": \"Reproduce the original outfit using clean printed graphics.\",\n        \"graphics\": \"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\",\n        \"texture\": \"Smooth plastic with printed designs. Never use realistic fabric textures.\",\n        \"finish\": \"Premium glossy molded plastic.\"\n      },\n\n      \"arms\": {\n        \"shape\": \"Classic cylindrical LEGO arms\",\n        \"proportions\": \"Authentic minifigure dimensions\",\n        \"color\": \"Match the reference clothing\"\n      },\n\n      \"hands\": {\n        \"shape\": \"Traditional C-shaped LEGO hands\",\n        \"color\": \"Match the minifigure head color\"\n      },\n\n      \"legs\": {\n        \"shape\": \"Classic rigid LEGO minifigure legs\",\n        \"proportions\": \"Short, blocky, connected LEGO legs\",\n        \"details\": \"Printed trousers, shoes, and other recognizable clothing details where appropriate\"\n      },\n\n      \"accessories\": {\n        \"instruction\": \"Recreate recognizable personal accessories as miniature molded LEGO elements.\",\n        \"examples\": [\n          \"Glasses\",\n          \"Watches\",\n          \"Headphones\",\n          \"Backpacks\",\n          \"Bags\",\n          \"Hats\",\n          \"Jewelry\",\n          \"Professional equipment\",\n          \"Personal objects\"\n        ],\n        \"rule\": \"Only include accessories supported by the reference photograph.\"\n      }\n    },\n\n    \"material_and_rendering\": {\n      \"material\": \"High-quality injection-molded ABS plastic\",\n      \"surface\": \"Smooth, polished, glossy plastic\",\n      \"reflections\": \"Subtle controlled studio reflections\",\n      \"edges\": \"Precise molded edges and authentic LEGO geometry\",\n      \"printing\": \"Sharp, clean, high-resolution printed graphics\",\n      \"realism\": \"Photorealistic physical toy rendering\",\n      \"quality\": \"Premium collectible product visualization\"\n    },\n\n    \"composition\": {\n      \"subject_count\": 1,\n      \"position\": \"Precisely centered in the frame\",\n      \"pose\": \"Standing upright in a natural neutral minifigure pose\",\n      \"orientation\": \"Front-facing with a subtle three-quarter angle\",\n      \"framing\": \"Complete character visible from hair to feet\",\n      \"scale\": \"Character occupies approximately 75 to 85 percent of the image height\",\n      \"symmetry\": \"Balanced composition with equal visual breathing room\",\n      \"camera\": \"Professional product photography, slightly elevated three-quarter perspective\"\n    },\n\n    \"background\": {\n      \"type\": \"Pure white seamless studio background\",\n      \"color\": \"#FFFFFF\",\n      \"environment\": \"No scenery, no diorama, no LEGO bricks, no furniture, no props\",\n      \"shadows\": \"Very subtle natural contact shadow beneath the character\",\n      \"distractions\": \"Absolutely none\"\n    },\n\n    \"lighting\": {\n      \"style\": \"Premium commercial studio lighting\",\n      \"key_light\": \"Large softbox positioned at 45 degrees\",\n      \"fill_light\": \"Soft frontal fill light\",\n      \"rim_light\": \"Subtle highlights around the hair and shoulders\",\n      \"shadows\": \"Soft realistic shadows\",\n      \"exposure\": \"Bright, balanced, clean exposure\"\n    },\n\n    \"miniature_effect\": {\n      \"concept\": \"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\",\n      \"camera_style\": \"Macro product photography\",\n      \"lens\": \"90mm to 105mm macro lens aesthetic\",\n      \"depth_of_field\": \"Moderately shallow depth of field, keeping the entire minifigure sharp.\",\n      \"focus\": \"Sharp focus on the face, hair, torso, and clothing details.\",\n      \"perspective\": \"Natural miniature toy photography perspective\",\n      \"scale_illusion\": \"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\",\n      \"background_blur\": \"Not applicable to the pure white seamless background.\"\n    },\n\n    \"visual_consistency\": {\n      \"priority_1\": \"Authentic LEGO minifigure anatomy\",\n      \"priority_2\": \"Recognizable personal identity\",\n      \"priority_3\": \"Accurate clothing and accessories\",\n      \"priority_4\": \"Premium glossy plastic materials\",\n      \"priority_5\": \"Consistent studio product photography\",\n      \"rule\": \"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\"\n    },\n\n    \"negative_prompt\": [\n      \"Realistic human anatomy\",\n      \"Human skin texture\",\n      \"Photorealistic human face\",\n      \"Funko Pop proportions\",\n      \"Action figure anatomy\",\n      \"Soft organic body shapes\",\n      \"Long human-like legs\",\n      \"Realistic fabric\",\n      \"Cloth wrinkles\",\n      \"Oversized hands\",\n      \"Deformed LEGO parts\",\n      \"Missing accessories\",\n      \"Incorrect hairstyle\",\n      \"Unrecognizable facial characteristics\",\n      \"Extra limbs\",\n      \"Multiple characters\",\n      \"Background scenery\",\n      \"LEGO diorama\",\n      \"Colored background\",\n      \"Text outside the character\",\n      \"Watermarks\",\n      \"Packaging\",\n      \"Display stands\",\n      \"Cropped feet\",\n      \"Cropped hair\"\n    ],\n\n    \"output_settings\": {\n      \"format\": \"Photorealistic 3D render\",\n      \"aspect_ratio\": \"2:3\",\n      \"resolution\": \"High resolution\",\n      \"background\": \"Pure white\",\n      \"subject\": \"One complete centered LEGO minifigure\",\n      \"presentation\": \"Premium collectible studio product photograph\"\n    }\n  }\n}"
}
JSON
```

### Node.js

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

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

const result = await client.textToImage.run({
  "prompt": "{\n  \"prompt\": {\n    \"title\": \"Personalized LEGO Minifigure Collectible Generator\",\n    \"concept\": \"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\",\n\n    \"reference_image_analysis\": {\n      \"instruction\": \"Analyze the reference photograph before designing the minifigure.\",\n      \"identify_and_preserve\": [\n        \"Distinctive facial characteristics\",\n        \"Face shape and proportions\",\n        \"Hair color, hairstyle, and hair volume\",\n        \"Eyebrows and characteristic expression\",\n        \"Glasses and eyewear\",\n        \"Facial hair, beard, and moustache\",\n        \"Original clothing and dominant colors\",\n        \"Logos, typography, and recognizable clothing graphics\",\n        \"Jewelry, watches, bags, and personal accessories\",\n        \"Other distinctive visual characteristics\"\n      ],\n      \"identity_priority\": \"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\"\n    },\n\n    \"character_construction\": {\n      \"design_language\": \"Authentic classic LEGO minifigure construction with premium collectible detailing.\",\n      \"head\": {\n        \"shape\": \"Classic cylindrical LEGO minifigure head\",\n        \"material\": \"Glossy injection-molded plastic\",\n        \"color\": \"Traditional LEGO yellow or appropriate LEGO skin-tone color\",\n        \"face\": \"Printed LEGO facial graphics\",\n        \"eyes\": \"Classic expressive LEGO eyes with black pupils and white highlights\",\n        \"eyebrows\": \"Printed eyebrows matching the subject\",\n        \"expression\": \"Friendly, confident, natural expression\",\n        \"facial_hair\": \"Precisely printed stubble, beard, or moustache when present\"\n      },\n\n      \"hair\": {\n        \"construction\": \"Separate molded LEGO hairpiece\",\n        \"material\": \"Glossy ABS plastic\",\n        \"style\": \"Reproduce the reference hairstyle using recognizable molded hair geometry\",\n        \"details\": \"Individual molded hair sections, realistic plastic reflections, accurate hair color\"\n      },\n\n      \"eyewear\": {\n        \"instruction\": \"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\",\n        \"style\": \"Accurate frame shape, color, and proportions.\"\n      },\n\n      \"torso\": {\n        \"shape\": \"Classic LEGO minifigure torso\",\n        \"clothing\": \"Reproduce the original outfit using clean printed graphics.\",\n        \"graphics\": \"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\",\n        \"texture\": \"Smooth plastic with printed designs. Never use realistic fabric textures.\",\n        \"finish\": \"Premium glossy molded plastic.\"\n      },\n\n      \"arms\": {\n        \"shape\": \"Classic cylindrical LEGO arms\",\n        \"proportions\": \"Authentic minifigure dimensions\",\n        \"color\": \"Match the reference clothing\"\n      },\n\n      \"hands\": {\n        \"shape\": \"Traditional C-shaped LEGO hands\",\n        \"color\": \"Match the minifigure head color\"\n      },\n\n      \"legs\": {\n        \"shape\": \"Classic rigid LEGO minifigure legs\",\n        \"proportions\": \"Short, blocky, connected LEGO legs\",\n        \"details\": \"Printed trousers, shoes, and other recognizable clothing details where appropriate\"\n      },\n\n      \"accessories\": {\n        \"instruction\": \"Recreate recognizable personal accessories as miniature molded LEGO elements.\",\n        \"examples\": [\n          \"Glasses\",\n          \"Watches\",\n          \"Headphones\",\n          \"Backpacks\",\n          \"Bags\",\n          \"Hats\",\n          \"Jewelry\",\n          \"Professional equipment\",\n          \"Personal objects\"\n        ],\n        \"rule\": \"Only include accessories supported by the reference photograph.\"\n      }\n    },\n\n    \"material_and_rendering\": {\n      \"material\": \"High-quality injection-molded ABS plastic\",\n      \"surface\": \"Smooth, polished, glossy plastic\",\n      \"reflections\": \"Subtle controlled studio reflections\",\n      \"edges\": \"Precise molded edges and authentic LEGO geometry\",\n      \"printing\": \"Sharp, clean, high-resolution printed graphics\",\n      \"realism\": \"Photorealistic physical toy rendering\",\n      \"quality\": \"Premium collectible product visualization\"\n    },\n\n    \"composition\": {\n      \"subject_count\": 1,\n      \"position\": \"Precisely centered in the frame\",\n      \"pose\": \"Standing upright in a natural neutral minifigure pose\",\n      \"orientation\": \"Front-facing with a subtle three-quarter angle\",\n      \"framing\": \"Complete character visible from hair to feet\",\n      \"scale\": \"Character occupies approximately 75 to 85 percent of the image height\",\n      \"symmetry\": \"Balanced composition with equal visual breathing room\",\n      \"camera\": \"Professional product photography, slightly elevated three-quarter perspective\"\n    },\n\n    \"background\": {\n      \"type\": \"Pure white seamless studio background\",\n      \"color\": \"#FFFFFF\",\n      \"environment\": \"No scenery, no diorama, no LEGO bricks, no furniture, no props\",\n      \"shadows\": \"Very subtle natural contact shadow beneath the character\",\n      \"distractions\": \"Absolutely none\"\n    },\n\n    \"lighting\": {\n      \"style\": \"Premium commercial studio lighting\",\n      \"key_light\": \"Large softbox positioned at 45 degrees\",\n      \"fill_light\": \"Soft frontal fill light\",\n      \"rim_light\": \"Subtle highlights around the hair and shoulders\",\n      \"shadows\": \"Soft realistic shadows\",\n      \"exposure\": \"Bright, balanced, clean exposure\"\n    },\n\n    \"miniature_effect\": {\n      \"concept\": \"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\",\n      \"camera_style\": \"Macro product photography\",\n      \"lens\": \"90mm to 105mm macro lens aesthetic\",\n      \"depth_of_field\": \"Moderately shallow depth of field, keeping the entire minifigure sharp.\",\n      \"focus\": \"Sharp focus on the face, hair, torso, and clothing details.\",\n      \"perspective\": \"Natural miniature toy photography perspective\",\n      \"scale_illusion\": \"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\",\n      \"background_blur\": \"Not applicable to the pure white seamless background.\"\n    },\n\n    \"visual_consistency\": {\n      \"priority_1\": \"Authentic LEGO minifigure anatomy\",\n      \"priority_2\": \"Recognizable personal identity\",\n      \"priority_3\": \"Accurate clothing and accessories\",\n      \"priority_4\": \"Premium glossy plastic materials\",\n      \"priority_5\": \"Consistent studio product photography\",\n      \"rule\": \"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\"\n    },\n\n    \"negative_prompt\": [\n      \"Realistic human anatomy\",\n      \"Human skin texture\",\n      \"Photorealistic human face\",\n      \"Funko Pop proportions\",\n      \"Action figure anatomy\",\n      \"Soft organic body shapes\",\n      \"Long human-like legs\",\n      \"Realistic fabric\",\n      \"Cloth wrinkles\",\n      \"Oversized hands\",\n      \"Deformed LEGO parts\",\n      \"Missing accessories\",\n      \"Incorrect hairstyle\",\n      \"Unrecognizable facial characteristics\",\n      \"Extra limbs\",\n      \"Multiple characters\",\n      \"Background scenery\",\n      \"LEGO diorama\",\n      \"Colored background\",\n      \"Text outside the character\",\n      \"Watermarks\",\n      \"Packaging\",\n      \"Display stands\",\n      \"Cropped feet\",\n      \"Cropped hair\"\n    ],\n\n    \"output_settings\": {\n      \"format\": \"Photorealistic 3D render\",\n      \"aspect_ratio\": \"2:3\",\n      \"resolution\": \"High resolution\",\n      \"background\": \"Pure white\",\n      \"subject\": \"One complete centered LEGO minifigure\",\n      \"presentation\": \"Premium collectible studio product photograph\"\n    }\n  }\n}"
});
console.log(result.id);
```

### Python

```python
import json
import os
import requests

response = requests.post(
    "https://runapi.ai/api/v1/runapi/text_to_image",
    headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
    json=json.loads("{\n  \"prompt\": \"{\\n  \\\"prompt\\\": {\\n    \\\"title\\\": \\\"Personalized LEGO Minifigure Collectible Generator\\\",\\n    \\\"concept\\\": \\\"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\\\",\\n\\n    \\\"reference_image_analysis\\\": {\\n      \\\"instruction\\\": \\\"Analyze the reference photograph before designing the minifigure.\\\",\\n      \\\"identify_and_preserve\\\": [\\n        \\\"Distinctive facial characteristics\\\",\\n        \\\"Face shape and proportions\\\",\\n        \\\"Hair color, hairstyle, and hair volume\\\",\\n        \\\"Eyebrows and characteristic expression\\\",\\n        \\\"Glasses and eyewear\\\",\\n        \\\"Facial hair, beard, and moustache\\\",\\n        \\\"Original clothing and dominant colors\\\",\\n        \\\"Logos, typography, and recognizable clothing graphics\\\",\\n        \\\"Jewelry, watches, bags, and personal accessories\\\",\\n        \\\"Other distinctive visual characteristics\\\"\\n      ],\\n      \\\"identity_priority\\\": \\\"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\\\"\\n    },\\n\\n    \\\"character_construction\\\": {\\n      \\\"design_language\\\": \\\"Authentic classic LEGO minifigure construction with premium collectible detailing.\\\",\\n      \\\"head\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO minifigure head\\\",\\n        \\\"material\\\": \\\"Glossy injection-molded plastic\\\",\\n        \\\"color\\\": \\\"Traditional LEGO yellow or appropriate LEGO skin-tone color\\\",\\n        \\\"face\\\": \\\"Printed LEGO facial graphics\\\",\\n        \\\"eyes\\\": \\\"Classic expressive LEGO eyes with black pupils and white highlights\\\",\\n        \\\"eyebrows\\\": \\\"Printed eyebrows matching the subject\\\",\\n        \\\"expression\\\": \\\"Friendly, confident, natural expression\\\",\\n        \\\"facial_hair\\\": \\\"Precisely printed stubble, beard, or moustache when present\\\"\\n      },\\n\\n      \\\"hair\\\": {\\n        \\\"construction\\\": \\\"Separate molded LEGO hairpiece\\\",\\n        \\\"material\\\": \\\"Glossy ABS plastic\\\",\\n        \\\"style\\\": \\\"Reproduce the reference hairstyle using recognizable molded hair geometry\\\",\\n        \\\"details\\\": \\\"Individual molded hair sections, realistic plastic reflections, accurate hair color\\\"\\n      },\\n\\n      \\\"eyewear\\\": {\\n        \\\"instruction\\\": \\\"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\\\",\\n        \\\"style\\\": \\\"Accurate frame shape, color, and proportions.\\\"\\n      },\\n\\n      \\\"torso\\\": {\\n        \\\"shape\\\": \\\"Classic LEGO minifigure torso\\\",\\n        \\\"clothing\\\": \\\"Reproduce the original outfit using clean printed graphics.\\\",\\n        \\\"graphics\\\": \\\"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\\\",\\n        \\\"texture\\\": \\\"Smooth plastic with printed designs. Never use realistic fabric textures.\\\",\\n        \\\"finish\\\": \\\"Premium glossy molded plastic.\\\"\\n      },\\n\\n      \\\"arms\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO arms\\\",\\n        \\\"proportions\\\": \\\"Authentic minifigure dimensions\\\",\\n        \\\"color\\\": \\\"Match the reference clothing\\\"\\n      },\\n\\n      \\\"hands\\\": {\\n        \\\"shape\\\": \\\"Traditional C-shaped LEGO hands\\\",\\n        \\\"color\\\": \\\"Match the minifigure head color\\\"\\n      },\\n\\n      \\\"legs\\\": {\\n        \\\"shape\\\": \\\"Classic rigid LEGO minifigure legs\\\",\\n        \\\"proportions\\\": \\\"Short, blocky, connected LEGO legs\\\",\\n        \\\"details\\\": \\\"Printed trousers, shoes, and other recognizable clothing details where appropriate\\\"\\n      },\\n\\n      \\\"accessories\\\": {\\n        \\\"instruction\\\": \\\"Recreate recognizable personal accessories as miniature molded LEGO elements.\\\",\\n        \\\"examples\\\": [\\n          \\\"Glasses\\\",\\n          \\\"Watches\\\",\\n          \\\"Headphones\\\",\\n          \\\"Backpacks\\\",\\n          \\\"Bags\\\",\\n          \\\"Hats\\\",\\n          \\\"Jewelry\\\",\\n          \\\"Professional equipment\\\",\\n          \\\"Personal objects\\\"\\n        ],\\n        \\\"rule\\\": \\\"Only include accessories supported by the reference photograph.\\\"\\n      }\\n    },\\n\\n    \\\"material_and_rendering\\\": {\\n      \\\"material\\\": \\\"High-quality injection-molded ABS plastic\\\",\\n      \\\"surface\\\": \\\"Smooth, polished, glossy plastic\\\",\\n      \\\"reflections\\\": \\\"Subtle controlled studio reflections\\\",\\n      \\\"edges\\\": \\\"Precise molded edges and authentic LEGO geometry\\\",\\n      \\\"printing\\\": \\\"Sharp, clean, high-resolution printed graphics\\\",\\n      \\\"realism\\\": \\\"Photorealistic physical toy rendering\\\",\\n      \\\"quality\\\": \\\"Premium collectible product visualization\\\"\\n    },\\n\\n    \\\"composition\\\": {\\n      \\\"subject_count\\\": 1,\\n      \\\"position\\\": \\\"Precisely centered in the frame\\\",\\n      \\\"pose\\\": \\\"Standing upright in a natural neutral minifigure pose\\\",\\n      \\\"orientation\\\": \\\"Front-facing with a subtle three-quarter angle\\\",\\n      \\\"framing\\\": \\\"Complete character visible from hair to feet\\\",\\n      \\\"scale\\\": \\\"Character occupies approximately 75 to 85 percent of the image height\\\",\\n      \\\"symmetry\\\": \\\"Balanced composition with equal visual breathing room\\\",\\n      \\\"camera\\\": \\\"Professional product photography, slightly elevated three-quarter perspective\\\"\\n    },\\n\\n    \\\"background\\\": {\\n      \\\"type\\\": \\\"Pure white seamless studio background\\\",\\n      \\\"color\\\": \\\"#FFFFFF\\\",\\n      \\\"environment\\\": \\\"No scenery, no diorama, no LEGO bricks, no furniture, no props\\\",\\n      \\\"shadows\\\": \\\"Very subtle natural contact shadow beneath the character\\\",\\n      \\\"distractions\\\": \\\"Absolutely none\\\"\\n    },\\n\\n    \\\"lighting\\\": {\\n      \\\"style\\\": \\\"Premium commercial studio lighting\\\",\\n      \\\"key_light\\\": \\\"Large softbox positioned at 45 degrees\\\",\\n      \\\"fill_light\\\": \\\"Soft frontal fill light\\\",\\n      \\\"rim_light\\\": \\\"Subtle highlights around the hair and shoulders\\\",\\n      \\\"shadows\\\": \\\"Soft realistic shadows\\\",\\n      \\\"exposure\\\": \\\"Bright, balanced, clean exposure\\\"\\n    },\\n\\n    \\\"miniature_effect\\\": {\\n      \\\"concept\\\": \\\"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\\\",\\n      \\\"camera_style\\\": \\\"Macro product photography\\\",\\n      \\\"lens\\\": \\\"90mm to 105mm macro lens aesthetic\\\",\\n      \\\"depth_of_field\\\": \\\"Moderately shallow depth of field, keeping the entire minifigure sharp.\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the face, hair, torso, and clothing details.\\\",\\n      \\\"perspective\\\": \\\"Natural miniature toy photography perspective\\\",\\n      \\\"scale_illusion\\\": \\\"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\\\",\\n      \\\"background_blur\\\": \\\"Not applicable to the pure white seamless background.\\\"\\n    },\\n\\n    \\\"visual_consistency\\\": {\\n      \\\"priority_1\\\": \\\"Authentic LEGO minifigure anatomy\\\",\\n      \\\"priority_2\\\": \\\"Recognizable personal identity\\\",\\n      \\\"priority_3\\\": \\\"Accurate clothing and accessories\\\",\\n      \\\"priority_4\\\": \\\"Premium glossy plastic materials\\\",\\n      \\\"priority_5\\\": \\\"Consistent studio product photography\\\",\\n      \\\"rule\\\": \\\"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\\\"\\n    },\\n\\n    \\\"negative_prompt\\\": [\\n      \\\"Realistic human anatomy\\\",\\n      \\\"Human skin texture\\\",\\n      \\\"Photorealistic human face\\\",\\n      \\\"Funko Pop proportions\\\",\\n      \\\"Action figure anatomy\\\",\\n      \\\"Soft organic body shapes\\\",\\n      \\\"Long human-like legs\\\",\\n      \\\"Realistic fabric\\\",\\n      \\\"Cloth wrinkles\\\",\\n      \\\"Oversized hands\\\",\\n      \\\"Deformed LEGO parts\\\",\\n      \\\"Missing accessories\\\",\\n      \\\"Incorrect hairstyle\\\",\\n      \\\"Unrecognizable facial characteristics\\\",\\n      \\\"Extra limbs\\\",\\n      \\\"Multiple characters\\\",\\n      \\\"Background scenery\\\",\\n      \\\"LEGO diorama\\\",\\n      \\\"Colored background\\\",\\n      \\\"Text outside the character\\\",\\n      \\\"Watermarks\\\",\\n      \\\"Packaging\\\",\\n      \\\"Display stands\\\",\\n      \\\"Cropped feet\\\",\\n      \\\"Cropped hair\\\"\\n    ],\\n\\n    \\\"output_settings\\\": {\\n      \\\"format\\\": \\\"Photorealistic 3D render\\\",\\n      \\\"aspect_ratio\\\": \\\"2:3\\\",\\n      \\\"resolution\\\": \\\"High resolution\\\",\\n      \\\"background\\\": \\\"Pure white\\\",\\n      \\\"subject\\\": \\\"One complete centered LEGO minifigure\\\",\\n      \\\"presentation\\\": \\\"Premium collectible studio product photograph\\\"\\n    }\\n  }\\n}\"\n}")
)
response.raise_for_status()
print(response.json()["id"])
```

### PHP

```php
<?php

$ch = curl_init("https://runapi.ai/api/v1/runapi/text_to_image");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("RUNAPI_API_KEY"),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => "{\n  \"prompt\": \"{\\n  \\\"prompt\\\": {\\n    \\\"title\\\": \\\"Personalized LEGO Minifigure Collectible Generator\\\",\\n    \\\"concept\\\": \\\"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\\\",\\n\\n    \\\"reference_image_analysis\\\": {\\n      \\\"instruction\\\": \\\"Analyze the reference photograph before designing the minifigure.\\\",\\n      \\\"identify_and_preserve\\\": [\\n        \\\"Distinctive facial characteristics\\\",\\n        \\\"Face shape and proportions\\\",\\n        \\\"Hair color, hairstyle, and hair volume\\\",\\n        \\\"Eyebrows and characteristic expression\\\",\\n        \\\"Glasses and eyewear\\\",\\n        \\\"Facial hair, beard, and moustache\\\",\\n        \\\"Original clothing and dominant colors\\\",\\n        \\\"Logos, typography, and recognizable clothing graphics\\\",\\n        \\\"Jewelry, watches, bags, and personal accessories\\\",\\n        \\\"Other distinctive visual characteristics\\\"\\n      ],\\n      \\\"identity_priority\\\": \\\"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\\\"\\n    },\\n\\n    \\\"character_construction\\\": {\\n      \\\"design_language\\\": \\\"Authentic classic LEGO minifigure construction with premium collectible detailing.\\\",\\n      \\\"head\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO minifigure head\\\",\\n        \\\"material\\\": \\\"Glossy injection-molded plastic\\\",\\n        \\\"color\\\": \\\"Traditional LEGO yellow or appropriate LEGO skin-tone color\\\",\\n        \\\"face\\\": \\\"Printed LEGO facial graphics\\\",\\n        \\\"eyes\\\": \\\"Classic expressive LEGO eyes with black pupils and white highlights\\\",\\n        \\\"eyebrows\\\": \\\"Printed eyebrows matching the subject\\\",\\n        \\\"expression\\\": \\\"Friendly, confident, natural expression\\\",\\n        \\\"facial_hair\\\": \\\"Precisely printed stubble, beard, or moustache when present\\\"\\n      },\\n\\n      \\\"hair\\\": {\\n        \\\"construction\\\": \\\"Separate molded LEGO hairpiece\\\",\\n        \\\"material\\\": \\\"Glossy ABS plastic\\\",\\n        \\\"style\\\": \\\"Reproduce the reference hairstyle using recognizable molded hair geometry\\\",\\n        \\\"details\\\": \\\"Individual molded hair sections, realistic plastic reflections, accurate hair color\\\"\\n      },\\n\\n      \\\"eyewear\\\": {\\n        \\\"instruction\\\": \\\"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\\\",\\n        \\\"style\\\": \\\"Accurate frame shape, color, and proportions.\\\"\\n      },\\n\\n      \\\"torso\\\": {\\n        \\\"shape\\\": \\\"Classic LEGO minifigure torso\\\",\\n        \\\"clothing\\\": \\\"Reproduce the original outfit using clean printed graphics.\\\",\\n        \\\"graphics\\\": \\\"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\\\",\\n        \\\"texture\\\": \\\"Smooth plastic with printed designs. Never use realistic fabric textures.\\\",\\n        \\\"finish\\\": \\\"Premium glossy molded plastic.\\\"\\n      },\\n\\n      \\\"arms\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO arms\\\",\\n        \\\"proportions\\\": \\\"Authentic minifigure dimensions\\\",\\n        \\\"color\\\": \\\"Match the reference clothing\\\"\\n      },\\n\\n      \\\"hands\\\": {\\n        \\\"shape\\\": \\\"Traditional C-shaped LEGO hands\\\",\\n        \\\"color\\\": \\\"Match the minifigure head color\\\"\\n      },\\n\\n      \\\"legs\\\": {\\n        \\\"shape\\\": \\\"Classic rigid LEGO minifigure legs\\\",\\n        \\\"proportions\\\": \\\"Short, blocky, connected LEGO legs\\\",\\n        \\\"details\\\": \\\"Printed trousers, shoes, and other recognizable clothing details where appropriate\\\"\\n      },\\n\\n      \\\"accessories\\\": {\\n        \\\"instruction\\\": \\\"Recreate recognizable personal accessories as miniature molded LEGO elements.\\\",\\n        \\\"examples\\\": [\\n          \\\"Glasses\\\",\\n          \\\"Watches\\\",\\n          \\\"Headphones\\\",\\n          \\\"Backpacks\\\",\\n          \\\"Bags\\\",\\n          \\\"Hats\\\",\\n          \\\"Jewelry\\\",\\n          \\\"Professional equipment\\\",\\n          \\\"Personal objects\\\"\\n        ],\\n        \\\"rule\\\": \\\"Only include accessories supported by the reference photograph.\\\"\\n      }\\n    },\\n\\n    \\\"material_and_rendering\\\": {\\n      \\\"material\\\": \\\"High-quality injection-molded ABS plastic\\\",\\n      \\\"surface\\\": \\\"Smooth, polished, glossy plastic\\\",\\n      \\\"reflections\\\": \\\"Subtle controlled studio reflections\\\",\\n      \\\"edges\\\": \\\"Precise molded edges and authentic LEGO geometry\\\",\\n      \\\"printing\\\": \\\"Sharp, clean, high-resolution printed graphics\\\",\\n      \\\"realism\\\": \\\"Photorealistic physical toy rendering\\\",\\n      \\\"quality\\\": \\\"Premium collectible product visualization\\\"\\n    },\\n\\n    \\\"composition\\\": {\\n      \\\"subject_count\\\": 1,\\n      \\\"position\\\": \\\"Precisely centered in the frame\\\",\\n      \\\"pose\\\": \\\"Standing upright in a natural neutral minifigure pose\\\",\\n      \\\"orientation\\\": \\\"Front-facing with a subtle three-quarter angle\\\",\\n      \\\"framing\\\": \\\"Complete character visible from hair to feet\\\",\\n      \\\"scale\\\": \\\"Character occupies approximately 75 to 85 percent of the image height\\\",\\n      \\\"symmetry\\\": \\\"Balanced composition with equal visual breathing room\\\",\\n      \\\"camera\\\": \\\"Professional product photography, slightly elevated three-quarter perspective\\\"\\n    },\\n\\n    \\\"background\\\": {\\n      \\\"type\\\": \\\"Pure white seamless studio background\\\",\\n      \\\"color\\\": \\\"#FFFFFF\\\",\\n      \\\"environment\\\": \\\"No scenery, no diorama, no LEGO bricks, no furniture, no props\\\",\\n      \\\"shadows\\\": \\\"Very subtle natural contact shadow beneath the character\\\",\\n      \\\"distractions\\\": \\\"Absolutely none\\\"\\n    },\\n\\n    \\\"lighting\\\": {\\n      \\\"style\\\": \\\"Premium commercial studio lighting\\\",\\n      \\\"key_light\\\": \\\"Large softbox positioned at 45 degrees\\\",\\n      \\\"fill_light\\\": \\\"Soft frontal fill light\\\",\\n      \\\"rim_light\\\": \\\"Subtle highlights around the hair and shoulders\\\",\\n      \\\"shadows\\\": \\\"Soft realistic shadows\\\",\\n      \\\"exposure\\\": \\\"Bright, balanced, clean exposure\\\"\\n    },\\n\\n    \\\"miniature_effect\\\": {\\n      \\\"concept\\\": \\\"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\\\",\\n      \\\"camera_style\\\": \\\"Macro product photography\\\",\\n      \\\"lens\\\": \\\"90mm to 105mm macro lens aesthetic\\\",\\n      \\\"depth_of_field\\\": \\\"Moderately shallow depth of field, keeping the entire minifigure sharp.\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the face, hair, torso, and clothing details.\\\",\\n      \\\"perspective\\\": \\\"Natural miniature toy photography perspective\\\",\\n      \\\"scale_illusion\\\": \\\"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\\\",\\n      \\\"background_blur\\\": \\\"Not applicable to the pure white seamless background.\\\"\\n    },\\n\\n    \\\"visual_consistency\\\": {\\n      \\\"priority_1\\\": \\\"Authentic LEGO minifigure anatomy\\\",\\n      \\\"priority_2\\\": \\\"Recognizable personal identity\\\",\\n      \\\"priority_3\\\": \\\"Accurate clothing and accessories\\\",\\n      \\\"priority_4\\\": \\\"Premium glossy plastic materials\\\",\\n      \\\"priority_5\\\": \\\"Consistent studio product photography\\\",\\n      \\\"rule\\\": \\\"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\\\"\\n    },\\n\\n    \\\"negative_prompt\\\": [\\n      \\\"Realistic human anatomy\\\",\\n      \\\"Human skin texture\\\",\\n      \\\"Photorealistic human face\\\",\\n      \\\"Funko Pop proportions\\\",\\n      \\\"Action figure anatomy\\\",\\n      \\\"Soft organic body shapes\\\",\\n      \\\"Long human-like legs\\\",\\n      \\\"Realistic fabric\\\",\\n      \\\"Cloth wrinkles\\\",\\n      \\\"Oversized hands\\\",\\n      \\\"Deformed LEGO parts\\\",\\n      \\\"Missing accessories\\\",\\n      \\\"Incorrect hairstyle\\\",\\n      \\\"Unrecognizable facial characteristics\\\",\\n      \\\"Extra limbs\\\",\\n      \\\"Multiple characters\\\",\\n      \\\"Background scenery\\\",\\n      \\\"LEGO diorama\\\",\\n      \\\"Colored background\\\",\\n      \\\"Text outside the character\\\",\\n      \\\"Watermarks\\\",\\n      \\\"Packaging\\\",\\n      \\\"Display stands\\\",\\n      \\\"Cropped feet\\\",\\n      \\\"Cropped hair\\\"\\n    ],\\n\\n    \\\"output_settings\\\": {\\n      \\\"format\\\": \\\"Photorealistic 3D render\\\",\\n      \\\"aspect_ratio\\\": \\\"2:3\\\",\\n      \\\"resolution\\\": \\\"High resolution\\\",\\n      \\\"background\\\": \\\"Pure white\\\",\\n      \\\"subject\\\": \\\"One complete centered LEGO minifigure\\\",\\n      \\\"presentation\\\": \\\"Premium collectible studio product photograph\\\"\\n    }\\n  }\\n}\"\n}",
    CURLOPT_RETURNTRANSFER => true,
]);

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

### Java

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

var request = HttpRequest.newBuilder(URI.create("https://runapi.ai/api/v1/runapi/text_to_image"))
    .header("Authorization", "Bearer " + System.getenv("RUNAPI_API_KEY"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\n  \"prompt\": \"{\\n  \\\"prompt\\\": {\\n    \\\"title\\\": \\\"Personalized LEGO Minifigure Collectible Generator\\\",\\n    \\\"concept\\\": \\\"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\\\",\\n\\n    \\\"reference_image_analysis\\\": {\\n      \\\"instruction\\\": \\\"Analyze the reference photograph before designing the minifigure.\\\",\\n      \\\"identify_and_preserve\\\": [\\n        \\\"Distinctive facial characteristics\\\",\\n        \\\"Face shape and proportions\\\",\\n        \\\"Hair color, hairstyle, and hair volume\\\",\\n        \\\"Eyebrows and characteristic expression\\\",\\n        \\\"Glasses and eyewear\\\",\\n        \\\"Facial hair, beard, and moustache\\\",\\n        \\\"Original clothing and dominant colors\\\",\\n        \\\"Logos, typography, and recognizable clothing graphics\\\",\\n        \\\"Jewelry, watches, bags, and personal accessories\\\",\\n        \\\"Other distinctive visual characteristics\\\"\\n      ],\\n      \\\"identity_priority\\\": \\\"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\\\"\\n    },\\n\\n    \\\"character_construction\\\": {\\n      \\\"design_language\\\": \\\"Authentic classic LEGO minifigure construction with premium collectible detailing.\\\",\\n      \\\"head\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO minifigure head\\\",\\n        \\\"material\\\": \\\"Glossy injection-molded plastic\\\",\\n        \\\"color\\\": \\\"Traditional LEGO yellow or appropriate LEGO skin-tone color\\\",\\n        \\\"face\\\": \\\"Printed LEGO facial graphics\\\",\\n        \\\"eyes\\\": \\\"Classic expressive LEGO eyes with black pupils and white highlights\\\",\\n        \\\"eyebrows\\\": \\\"Printed eyebrows matching the subject\\\",\\n        \\\"expression\\\": \\\"Friendly, confident, natural expression\\\",\\n        \\\"facial_hair\\\": \\\"Precisely printed stubble, beard, or moustache when present\\\"\\n      },\\n\\n      \\\"hair\\\": {\\n        \\\"construction\\\": \\\"Separate molded LEGO hairpiece\\\",\\n        \\\"material\\\": \\\"Glossy ABS plastic\\\",\\n        \\\"style\\\": \\\"Reproduce the reference hairstyle using recognizable molded hair geometry\\\",\\n        \\\"details\\\": \\\"Individual molded hair sections, realistic plastic reflections, accurate hair color\\\"\\n      },\\n\\n      \\\"eyewear\\\": {\\n        \\\"instruction\\\": \\\"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\\\",\\n        \\\"style\\\": \\\"Accurate frame shape, color, and proportions.\\\"\\n      },\\n\\n      \\\"torso\\\": {\\n        \\\"shape\\\": \\\"Classic LEGO minifigure torso\\\",\\n        \\\"clothing\\\": \\\"Reproduce the original outfit using clean printed graphics.\\\",\\n        \\\"graphics\\\": \\\"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\\\",\\n        \\\"texture\\\": \\\"Smooth plastic with printed designs. Never use realistic fabric textures.\\\",\\n        \\\"finish\\\": \\\"Premium glossy molded plastic.\\\"\\n      },\\n\\n      \\\"arms\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO arms\\\",\\n        \\\"proportions\\\": \\\"Authentic minifigure dimensions\\\",\\n        \\\"color\\\": \\\"Match the reference clothing\\\"\\n      },\\n\\n      \\\"hands\\\": {\\n        \\\"shape\\\": \\\"Traditional C-shaped LEGO hands\\\",\\n        \\\"color\\\": \\\"Match the minifigure head color\\\"\\n      },\\n\\n      \\\"legs\\\": {\\n        \\\"shape\\\": \\\"Classic rigid LEGO minifigure legs\\\",\\n        \\\"proportions\\\": \\\"Short, blocky, connected LEGO legs\\\",\\n        \\\"details\\\": \\\"Printed trousers, shoes, and other recognizable clothing details where appropriate\\\"\\n      },\\n\\n      \\\"accessories\\\": {\\n        \\\"instruction\\\": \\\"Recreate recognizable personal accessories as miniature molded LEGO elements.\\\",\\n        \\\"examples\\\": [\\n          \\\"Glasses\\\",\\n          \\\"Watches\\\",\\n          \\\"Headphones\\\",\\n          \\\"Backpacks\\\",\\n          \\\"Bags\\\",\\n          \\\"Hats\\\",\\n          \\\"Jewelry\\\",\\n          \\\"Professional equipment\\\",\\n          \\\"Personal objects\\\"\\n        ],\\n        \\\"rule\\\": \\\"Only include accessories supported by the reference photograph.\\\"\\n      }\\n    },\\n\\n    \\\"material_and_rendering\\\": {\\n      \\\"material\\\": \\\"High-quality injection-molded ABS plastic\\\",\\n      \\\"surface\\\": \\\"Smooth, polished, glossy plastic\\\",\\n      \\\"reflections\\\": \\\"Subtle controlled studio reflections\\\",\\n      \\\"edges\\\": \\\"Precise molded edges and authentic LEGO geometry\\\",\\n      \\\"printing\\\": \\\"Sharp, clean, high-resolution printed graphics\\\",\\n      \\\"realism\\\": \\\"Photorealistic physical toy rendering\\\",\\n      \\\"quality\\\": \\\"Premium collectible product visualization\\\"\\n    },\\n\\n    \\\"composition\\\": {\\n      \\\"subject_count\\\": 1,\\n      \\\"position\\\": \\\"Precisely centered in the frame\\\",\\n      \\\"pose\\\": \\\"Standing upright in a natural neutral minifigure pose\\\",\\n      \\\"orientation\\\": \\\"Front-facing with a subtle three-quarter angle\\\",\\n      \\\"framing\\\": \\\"Complete character visible from hair to feet\\\",\\n      \\\"scale\\\": \\\"Character occupies approximately 75 to 85 percent of the image height\\\",\\n      \\\"symmetry\\\": \\\"Balanced composition with equal visual breathing room\\\",\\n      \\\"camera\\\": \\\"Professional product photography, slightly elevated three-quarter perspective\\\"\\n    },\\n\\n    \\\"background\\\": {\\n      \\\"type\\\": \\\"Pure white seamless studio background\\\",\\n      \\\"color\\\": \\\"#FFFFFF\\\",\\n      \\\"environment\\\": \\\"No scenery, no diorama, no LEGO bricks, no furniture, no props\\\",\\n      \\\"shadows\\\": \\\"Very subtle natural contact shadow beneath the character\\\",\\n      \\\"distractions\\\": \\\"Absolutely none\\\"\\n    },\\n\\n    \\\"lighting\\\": {\\n      \\\"style\\\": \\\"Premium commercial studio lighting\\\",\\n      \\\"key_light\\\": \\\"Large softbox positioned at 45 degrees\\\",\\n      \\\"fill_light\\\": \\\"Soft frontal fill light\\\",\\n      \\\"rim_light\\\": \\\"Subtle highlights around the hair and shoulders\\\",\\n      \\\"shadows\\\": \\\"Soft realistic shadows\\\",\\n      \\\"exposure\\\": \\\"Bright, balanced, clean exposure\\\"\\n    },\\n\\n    \\\"miniature_effect\\\": {\\n      \\\"concept\\\": \\\"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\\\",\\n      \\\"camera_style\\\": \\\"Macro product photography\\\",\\n      \\\"lens\\\": \\\"90mm to 105mm macro lens aesthetic\\\",\\n      \\\"depth_of_field\\\": \\\"Moderately shallow depth of field, keeping the entire minifigure sharp.\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the face, hair, torso, and clothing details.\\\",\\n      \\\"perspective\\\": \\\"Natural miniature toy photography perspective\\\",\\n      \\\"scale_illusion\\\": \\\"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\\\",\\n      \\\"background_blur\\\": \\\"Not applicable to the pure white seamless background.\\\"\\n    },\\n\\n    \\\"visual_consistency\\\": {\\n      \\\"priority_1\\\": \\\"Authentic LEGO minifigure anatomy\\\",\\n      \\\"priority_2\\\": \\\"Recognizable personal identity\\\",\\n      \\\"priority_3\\\": \\\"Accurate clothing and accessories\\\",\\n      \\\"priority_4\\\": \\\"Premium glossy plastic materials\\\",\\n      \\\"priority_5\\\": \\\"Consistent studio product photography\\\",\\n      \\\"rule\\\": \\\"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\\\"\\n    },\\n\\n    \\\"negative_prompt\\\": [\\n      \\\"Realistic human anatomy\\\",\\n      \\\"Human skin texture\\\",\\n      \\\"Photorealistic human face\\\",\\n      \\\"Funko Pop proportions\\\",\\n      \\\"Action figure anatomy\\\",\\n      \\\"Soft organic body shapes\\\",\\n      \\\"Long human-like legs\\\",\\n      \\\"Realistic fabric\\\",\\n      \\\"Cloth wrinkles\\\",\\n      \\\"Oversized hands\\\",\\n      \\\"Deformed LEGO parts\\\",\\n      \\\"Missing accessories\\\",\\n      \\\"Incorrect hairstyle\\\",\\n      \\\"Unrecognizable facial characteristics\\\",\\n      \\\"Extra limbs\\\",\\n      \\\"Multiple characters\\\",\\n      \\\"Background scenery\\\",\\n      \\\"LEGO diorama\\\",\\n      \\\"Colored background\\\",\\n      \\\"Text outside the character\\\",\\n      \\\"Watermarks\\\",\\n      \\\"Packaging\\\",\\n      \\\"Display stands\\\",\\n      \\\"Cropped feet\\\",\\n      \\\"Cropped hair\\\"\\n    ],\\n\\n    \\\"output_settings\\\": {\\n      \\\"format\\\": \\\"Photorealistic 3D render\\\",\\n      \\\"aspect_ratio\\\": \\\"2:3\\\",\\n      \\\"resolution\\\": \\\"High resolution\\\",\\n      \\\"background\\\": \\\"Pure white\\\",\\n      \\\"subject\\\": \\\"One complete centered LEGO minifigure\\\",\\n      \\\"presentation\\\": \\\"Premium collectible studio product photograph\\\"\\n    }\\n  }\\n}\"\n}"))
    .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

### Ruby

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

uri = URI("https://runapi.ai/api/v1/runapi/text_to_image")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer " + ENV.fetch("RUNAPI_API_KEY")
request["Content-Type"] = "application/json"
request.body = "{\n  \"prompt\": \"{\\n  \\\"prompt\\\": {\\n    \\\"title\\\": \\\"Personalized LEGO Minifigure Collectible Generator\\\",\\n    \\\"concept\\\": \\\"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\\\",\\n\\n    \\\"reference_image_analysis\\\": {\\n      \\\"instruction\\\": \\\"Analyze the reference photograph before designing the minifigure.\\\",\\n      \\\"identify_and_preserve\\\": [\\n        \\\"Distinctive facial characteristics\\\",\\n        \\\"Face shape and proportions\\\",\\n        \\\"Hair color, hairstyle, and hair volume\\\",\\n        \\\"Eyebrows and characteristic expression\\\",\\n        \\\"Glasses and eyewear\\\",\\n        \\\"Facial hair, beard, and moustache\\\",\\n        \\\"Original clothing and dominant colors\\\",\\n        \\\"Logos, typography, and recognizable clothing graphics\\\",\\n        \\\"Jewelry, watches, bags, and personal accessories\\\",\\n        \\\"Other distinctive visual characteristics\\\"\\n      ],\\n      \\\"identity_priority\\\": \\\"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\\\"\\n    },\\n\\n    \\\"character_construction\\\": {\\n      \\\"design_language\\\": \\\"Authentic classic LEGO minifigure construction with premium collectible detailing.\\\",\\n      \\\"head\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO minifigure head\\\",\\n        \\\"material\\\": \\\"Glossy injection-molded plastic\\\",\\n        \\\"color\\\": \\\"Traditional LEGO yellow or appropriate LEGO skin-tone color\\\",\\n        \\\"face\\\": \\\"Printed LEGO facial graphics\\\",\\n        \\\"eyes\\\": \\\"Classic expressive LEGO eyes with black pupils and white highlights\\\",\\n        \\\"eyebrows\\\": \\\"Printed eyebrows matching the subject\\\",\\n        \\\"expression\\\": \\\"Friendly, confident, natural expression\\\",\\n        \\\"facial_hair\\\": \\\"Precisely printed stubble, beard, or moustache when present\\\"\\n      },\\n\\n      \\\"hair\\\": {\\n        \\\"construction\\\": \\\"Separate molded LEGO hairpiece\\\",\\n        \\\"material\\\": \\\"Glossy ABS plastic\\\",\\n        \\\"style\\\": \\\"Reproduce the reference hairstyle using recognizable molded hair geometry\\\",\\n        \\\"details\\\": \\\"Individual molded hair sections, realistic plastic reflections, accurate hair color\\\"\\n      },\\n\\n      \\\"eyewear\\\": {\\n        \\\"instruction\\\": \\\"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\\\",\\n        \\\"style\\\": \\\"Accurate frame shape, color, and proportions.\\\"\\n      },\\n\\n      \\\"torso\\\": {\\n        \\\"shape\\\": \\\"Classic LEGO minifigure torso\\\",\\n        \\\"clothing\\\": \\\"Reproduce the original outfit using clean printed graphics.\\\",\\n        \\\"graphics\\\": \\\"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\\\",\\n        \\\"texture\\\": \\\"Smooth plastic with printed designs. Never use realistic fabric textures.\\\",\\n        \\\"finish\\\": \\\"Premium glossy molded plastic.\\\"\\n      },\\n\\n      \\\"arms\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO arms\\\",\\n        \\\"proportions\\\": \\\"Authentic minifigure dimensions\\\",\\n        \\\"color\\\": \\\"Match the reference clothing\\\"\\n      },\\n\\n      \\\"hands\\\": {\\n        \\\"shape\\\": \\\"Traditional C-shaped LEGO hands\\\",\\n        \\\"color\\\": \\\"Match the minifigure head color\\\"\\n      },\\n\\n      \\\"legs\\\": {\\n        \\\"shape\\\": \\\"Classic rigid LEGO minifigure legs\\\",\\n        \\\"proportions\\\": \\\"Short, blocky, connected LEGO legs\\\",\\n        \\\"details\\\": \\\"Printed trousers, shoes, and other recognizable clothing details where appropriate\\\"\\n      },\\n\\n      \\\"accessories\\\": {\\n        \\\"instruction\\\": \\\"Recreate recognizable personal accessories as miniature molded LEGO elements.\\\",\\n        \\\"examples\\\": [\\n          \\\"Glasses\\\",\\n          \\\"Watches\\\",\\n          \\\"Headphones\\\",\\n          \\\"Backpacks\\\",\\n          \\\"Bags\\\",\\n          \\\"Hats\\\",\\n          \\\"Jewelry\\\",\\n          \\\"Professional equipment\\\",\\n          \\\"Personal objects\\\"\\n        ],\\n        \\\"rule\\\": \\\"Only include accessories supported by the reference photograph.\\\"\\n      }\\n    },\\n\\n    \\\"material_and_rendering\\\": {\\n      \\\"material\\\": \\\"High-quality injection-molded ABS plastic\\\",\\n      \\\"surface\\\": \\\"Smooth, polished, glossy plastic\\\",\\n      \\\"reflections\\\": \\\"Subtle controlled studio reflections\\\",\\n      \\\"edges\\\": \\\"Precise molded edges and authentic LEGO geometry\\\",\\n      \\\"printing\\\": \\\"Sharp, clean, high-resolution printed graphics\\\",\\n      \\\"realism\\\": \\\"Photorealistic physical toy rendering\\\",\\n      \\\"quality\\\": \\\"Premium collectible product visualization\\\"\\n    },\\n\\n    \\\"composition\\\": {\\n      \\\"subject_count\\\": 1,\\n      \\\"position\\\": \\\"Precisely centered in the frame\\\",\\n      \\\"pose\\\": \\\"Standing upright in a natural neutral minifigure pose\\\",\\n      \\\"orientation\\\": \\\"Front-facing with a subtle three-quarter angle\\\",\\n      \\\"framing\\\": \\\"Complete character visible from hair to feet\\\",\\n      \\\"scale\\\": \\\"Character occupies approximately 75 to 85 percent of the image height\\\",\\n      \\\"symmetry\\\": \\\"Balanced composition with equal visual breathing room\\\",\\n      \\\"camera\\\": \\\"Professional product photography, slightly elevated three-quarter perspective\\\"\\n    },\\n\\n    \\\"background\\\": {\\n      \\\"type\\\": \\\"Pure white seamless studio background\\\",\\n      \\\"color\\\": \\\"#FFFFFF\\\",\\n      \\\"environment\\\": \\\"No scenery, no diorama, no LEGO bricks, no furniture, no props\\\",\\n      \\\"shadows\\\": \\\"Very subtle natural contact shadow beneath the character\\\",\\n      \\\"distractions\\\": \\\"Absolutely none\\\"\\n    },\\n\\n    \\\"lighting\\\": {\\n      \\\"style\\\": \\\"Premium commercial studio lighting\\\",\\n      \\\"key_light\\\": \\\"Large softbox positioned at 45 degrees\\\",\\n      \\\"fill_light\\\": \\\"Soft frontal fill light\\\",\\n      \\\"rim_light\\\": \\\"Subtle highlights around the hair and shoulders\\\",\\n      \\\"shadows\\\": \\\"Soft realistic shadows\\\",\\n      \\\"exposure\\\": \\\"Bright, balanced, clean exposure\\\"\\n    },\\n\\n    \\\"miniature_effect\\\": {\\n      \\\"concept\\\": \\\"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\\\",\\n      \\\"camera_style\\\": \\\"Macro product photography\\\",\\n      \\\"lens\\\": \\\"90mm to 105mm macro lens aesthetic\\\",\\n      \\\"depth_of_field\\\": \\\"Moderately shallow depth of field, keeping the entire minifigure sharp.\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the face, hair, torso, and clothing details.\\\",\\n      \\\"perspective\\\": \\\"Natural miniature toy photography perspective\\\",\\n      \\\"scale_illusion\\\": \\\"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\\\",\\n      \\\"background_blur\\\": \\\"Not applicable to the pure white seamless background.\\\"\\n    },\\n\\n    \\\"visual_consistency\\\": {\\n      \\\"priority_1\\\": \\\"Authentic LEGO minifigure anatomy\\\",\\n      \\\"priority_2\\\": \\\"Recognizable personal identity\\\",\\n      \\\"priority_3\\\": \\\"Accurate clothing and accessories\\\",\\n      \\\"priority_4\\\": \\\"Premium glossy plastic materials\\\",\\n      \\\"priority_5\\\": \\\"Consistent studio product photography\\\",\\n      \\\"rule\\\": \\\"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\\\"\\n    },\\n\\n    \\\"negative_prompt\\\": [\\n      \\\"Realistic human anatomy\\\",\\n      \\\"Human skin texture\\\",\\n      \\\"Photorealistic human face\\\",\\n      \\\"Funko Pop proportions\\\",\\n      \\\"Action figure anatomy\\\",\\n      \\\"Soft organic body shapes\\\",\\n      \\\"Long human-like legs\\\",\\n      \\\"Realistic fabric\\\",\\n      \\\"Cloth wrinkles\\\",\\n      \\\"Oversized hands\\\",\\n      \\\"Deformed LEGO parts\\\",\\n      \\\"Missing accessories\\\",\\n      \\\"Incorrect hairstyle\\\",\\n      \\\"Unrecognizable facial characteristics\\\",\\n      \\\"Extra limbs\\\",\\n      \\\"Multiple characters\\\",\\n      \\\"Background scenery\\\",\\n      \\\"LEGO diorama\\\",\\n      \\\"Colored background\\\",\\n      \\\"Text outside the character\\\",\\n      \\\"Watermarks\\\",\\n      \\\"Packaging\\\",\\n      \\\"Display stands\\\",\\n      \\\"Cropped feet\\\",\\n      \\\"Cropped hair\\\"\\n    ],\\n\\n    \\\"output_settings\\\": {\\n      \\\"format\\\": \\\"Photorealistic 3D render\\\",\\n      \\\"aspect_ratio\\\": \\\"2:3\\\",\\n      \\\"resolution\\\": \\\"High resolution\\\",\\n      \\\"background\\\": \\\"Pure white\\\",\\n      \\\"subject\\\": \\\"One complete centered LEGO minifigure\\\",\\n      \\\"presentation\\\": \\\"Premium collectible studio product photograph\\\"\\n    }\\n  }\\n}\"\n}"

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

### Go

```go
package main

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

func main() {
  body := strings.NewReader("{\"prompt\":\"{\\n  \\\"prompt\\\": {\\n    \\\"title\\\": \\\"Personalized LEGO Minifigure Collectible Generator\\\",\\n    \\\"concept\\\": \\\"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\\\",\\n\\n    \\\"reference_image_analysis\\\": {\\n      \\\"instruction\\\": \\\"Analyze the reference photograph before designing the minifigure.\\\",\\n      \\\"identify_and_preserve\\\": [\\n        \\\"Distinctive facial characteristics\\\",\\n        \\\"Face shape and proportions\\\",\\n        \\\"Hair color, hairstyle, and hair volume\\\",\\n        \\\"Eyebrows and characteristic expression\\\",\\n        \\\"Glasses and eyewear\\\",\\n        \\\"Facial hair, beard, and moustache\\\",\\n        \\\"Original clothing and dominant colors\\\",\\n        \\\"Logos, typography, and recognizable clothing graphics\\\",\\n        \\\"Jewelry, watches, bags, and personal accessories\\\",\\n        \\\"Other distinctive visual characteristics\\\"\\n      ],\\n      \\\"identity_priority\\\": \\\"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\\\"\\n    },\\n\\n    \\\"character_construction\\\": {\\n      \\\"design_language\\\": \\\"Authentic classic LEGO minifigure construction with premium collectible detailing.\\\",\\n      \\\"head\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO minifigure head\\\",\\n        \\\"material\\\": \\\"Glossy injection-molded plastic\\\",\\n        \\\"color\\\": \\\"Traditional LEGO yellow or appropriate LEGO skin-tone color\\\",\\n        \\\"face\\\": \\\"Printed LEGO facial graphics\\\",\\n        \\\"eyes\\\": \\\"Classic expressive LEGO eyes with black pupils and white highlights\\\",\\n        \\\"eyebrows\\\": \\\"Printed eyebrows matching the subject\\\",\\n        \\\"expression\\\": \\\"Friendly, confident, natural expression\\\",\\n        \\\"facial_hair\\\": \\\"Precisely printed stubble, beard, or moustache when present\\\"\\n      },\\n\\n      \\\"hair\\\": {\\n        \\\"construction\\\": \\\"Separate molded LEGO hairpiece\\\",\\n        \\\"material\\\": \\\"Glossy ABS plastic\\\",\\n        \\\"style\\\": \\\"Reproduce the reference hairstyle using recognizable molded hair geometry\\\",\\n        \\\"details\\\": \\\"Individual molded hair sections, realistic plastic reflections, accurate hair color\\\"\\n      },\\n\\n      \\\"eyewear\\\": {\\n        \\\"instruction\\\": \\\"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\\\",\\n        \\\"style\\\": \\\"Accurate frame shape, color, and proportions.\\\"\\n      },\\n\\n      \\\"torso\\\": {\\n        \\\"shape\\\": \\\"Classic LEGO minifigure torso\\\",\\n        \\\"clothing\\\": \\\"Reproduce the original outfit using clean printed graphics.\\\",\\n        \\\"graphics\\\": \\\"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\\\",\\n        \\\"texture\\\": \\\"Smooth plastic with printed designs. Never use realistic fabric textures.\\\",\\n        \\\"finish\\\": \\\"Premium glossy molded plastic.\\\"\\n      },\\n\\n      \\\"arms\\\": {\\n        \\\"shape\\\": \\\"Classic cylindrical LEGO arms\\\",\\n        \\\"proportions\\\": \\\"Authentic minifigure dimensions\\\",\\n        \\\"color\\\": \\\"Match the reference clothing\\\"\\n      },\\n\\n      \\\"hands\\\": {\\n        \\\"shape\\\": \\\"Traditional C-shaped LEGO hands\\\",\\n        \\\"color\\\": \\\"Match the minifigure head color\\\"\\n      },\\n\\n      \\\"legs\\\": {\\n        \\\"shape\\\": \\\"Classic rigid LEGO minifigure legs\\\",\\n        \\\"proportions\\\": \\\"Short, blocky, connected LEGO legs\\\",\\n        \\\"details\\\": \\\"Printed trousers, shoes, and other recognizable clothing details where appropriate\\\"\\n      },\\n\\n      \\\"accessories\\\": {\\n        \\\"instruction\\\": \\\"Recreate recognizable personal accessories as miniature molded LEGO elements.\\\",\\n        \\\"examples\\\": [\\n          \\\"Glasses\\\",\\n          \\\"Watches\\\",\\n          \\\"Headphones\\\",\\n          \\\"Backpacks\\\",\\n          \\\"Bags\\\",\\n          \\\"Hats\\\",\\n          \\\"Jewelry\\\",\\n          \\\"Professional equipment\\\",\\n          \\\"Personal objects\\\"\\n        ],\\n        \\\"rule\\\": \\\"Only include accessories supported by the reference photograph.\\\"\\n      }\\n    },\\n\\n    \\\"material_and_rendering\\\": {\\n      \\\"material\\\": \\\"High-quality injection-molded ABS plastic\\\",\\n      \\\"surface\\\": \\\"Smooth, polished, glossy plastic\\\",\\n      \\\"reflections\\\": \\\"Subtle controlled studio reflections\\\",\\n      \\\"edges\\\": \\\"Precise molded edges and authentic LEGO geometry\\\",\\n      \\\"printing\\\": \\\"Sharp, clean, high-resolution printed graphics\\\",\\n      \\\"realism\\\": \\\"Photorealistic physical toy rendering\\\",\\n      \\\"quality\\\": \\\"Premium collectible product visualization\\\"\\n    },\\n\\n    \\\"composition\\\": {\\n      \\\"subject_count\\\": 1,\\n      \\\"position\\\": \\\"Precisely centered in the frame\\\",\\n      \\\"pose\\\": \\\"Standing upright in a natural neutral minifigure pose\\\",\\n      \\\"orientation\\\": \\\"Front-facing with a subtle three-quarter angle\\\",\\n      \\\"framing\\\": \\\"Complete character visible from hair to feet\\\",\\n      \\\"scale\\\": \\\"Character occupies approximately 75 to 85 percent of the image height\\\",\\n      \\\"symmetry\\\": \\\"Balanced composition with equal visual breathing room\\\",\\n      \\\"camera\\\": \\\"Professional product photography, slightly elevated three-quarter perspective\\\"\\n    },\\n\\n    \\\"background\\\": {\\n      \\\"type\\\": \\\"Pure white seamless studio background\\\",\\n      \\\"color\\\": \\\"#FFFFFF\\\",\\n      \\\"environment\\\": \\\"No scenery, no diorama, no LEGO bricks, no furniture, no props\\\",\\n      \\\"shadows\\\": \\\"Very subtle natural contact shadow beneath the character\\\",\\n      \\\"distractions\\\": \\\"Absolutely none\\\"\\n    },\\n\\n    \\\"lighting\\\": {\\n      \\\"style\\\": \\\"Premium commercial studio lighting\\\",\\n      \\\"key_light\\\": \\\"Large softbox positioned at 45 degrees\\\",\\n      \\\"fill_light\\\": \\\"Soft frontal fill light\\\",\\n      \\\"rim_light\\\": \\\"Subtle highlights around the hair and shoulders\\\",\\n      \\\"shadows\\\": \\\"Soft realistic shadows\\\",\\n      \\\"exposure\\\": \\\"Bright, balanced, clean exposure\\\"\\n    },\\n\\n    \\\"miniature_effect\\\": {\\n      \\\"concept\\\": \\\"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\\\",\\n      \\\"camera_style\\\": \\\"Macro product photography\\\",\\n      \\\"lens\\\": \\\"90mm to 105mm macro lens aesthetic\\\",\\n      \\\"depth_of_field\\\": \\\"Moderately shallow depth of field, keeping the entire minifigure sharp.\\\",\\n      \\\"focus\\\": \\\"Sharp focus on the face, hair, torso, and clothing details.\\\",\\n      \\\"perspective\\\": \\\"Natural miniature toy photography perspective\\\",\\n      \\\"scale_illusion\\\": \\\"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\\\",\\n      \\\"background_blur\\\": \\\"Not applicable to the pure white seamless background.\\\"\\n    },\\n\\n    \\\"visual_consistency\\\": {\\n      \\\"priority_1\\\": \\\"Authentic LEGO minifigure anatomy\\\",\\n      \\\"priority_2\\\": \\\"Recognizable personal identity\\\",\\n      \\\"priority_3\\\": \\\"Accurate clothing and accessories\\\",\\n      \\\"priority_4\\\": \\\"Premium glossy plastic materials\\\",\\n      \\\"priority_5\\\": \\\"Consistent studio product photography\\\",\\n      \\\"rule\\\": \\\"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\\\"\\n    },\\n\\n    \\\"negative_prompt\\\": [\\n      \\\"Realistic human anatomy\\\",\\n      \\\"Human skin texture\\\",\\n      \\\"Photorealistic human face\\\",\\n      \\\"Funko Pop proportions\\\",\\n      \\\"Action figure anatomy\\\",\\n      \\\"Soft organic body shapes\\\",\\n      \\\"Long human-like legs\\\",\\n      \\\"Realistic fabric\\\",\\n      \\\"Cloth wrinkles\\\",\\n      \\\"Oversized hands\\\",\\n      \\\"Deformed LEGO parts\\\",\\n      \\\"Missing accessories\\\",\\n      \\\"Incorrect hairstyle\\\",\\n      \\\"Unrecognizable facial characteristics\\\",\\n      \\\"Extra limbs\\\",\\n      \\\"Multiple characters\\\",\\n      \\\"Background scenery\\\",\\n      \\\"LEGO diorama\\\",\\n      \\\"Colored background\\\",\\n      \\\"Text outside the character\\\",\\n      \\\"Watermarks\\\",\\n      \\\"Packaging\\\",\\n      \\\"Display stands\\\",\\n      \\\"Cropped feet\\\",\\n      \\\"Cropped hair\\\"\\n    ],\\n\\n    \\\"output_settings\\\": {\\n      \\\"format\\\": \\\"Photorealistic 3D render\\\",\\n      \\\"aspect_ratio\\\": \\\"2:3\\\",\\n      \\\"resolution\\\": \\\"High resolution\\\",\\n      \\\"background\\\": \\\"Pure white\\\",\\n      \\\"subject\\\": \\\"One complete centered LEGO minifigure\\\",\\n      \\\"presentation\\\": \\\"Premium collectible studio product photograph\\\"\\n    }\\n  }\\n}\"}")
  req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/runapi/text_to_image", body)
  if err != nil {
    log.Fatal(err)
  }

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

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

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

### CLI

```cli
$ runapi generate \
    --model  \
    --prompt "{\n  \"prompt\": {\n    \"title\": \"Personalized LEGO Minifigure Collectible Generator\",\n    \"concept\": \"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\",\n\n    \"reference_image_analysis\": {\n      \"instruction\": \"Analyze the reference photograph before designing the minifigure.\",\n      \"identify_and_preserve\": [\n        \"Distinctive facial characteristics\",\n        \"Face shape and proportions\",\n        \"Hair color, hairstyle, and hair volume\",\n        \"Eyebrows and characteristic expression\",\n        \"Glasses and eyewear\",\n        \"Facial hair, beard, and moustache\",\n        \"Original clothing and dominant colors\",\n        \"Logos, typography, and recognizable clothing graphics\",\n        \"Jewelry, watches, bags, and personal accessories\",\n        \"Other distinctive visual characteristics\"\n      ],\n      \"identity_priority\": \"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\"\n    },\n\n    \"character_construction\": {\n      \"design_language\": \"Authentic classic LEGO minifigure construction with premium collectible detailing.\",\n      \"head\": {\n        \"shape\": \"Classic cylindrical LEGO minifigure head\",\n        \"material\": \"Glossy injection-molded plastic\",\n        \"color\": \"Traditional LEGO yellow or appropriate LEGO skin-tone color\",\n        \"face\": \"Printed LEGO facial graphics\",\n        \"eyes\": \"Classic expressive LEGO eyes with black pupils and white highlights\",\n        \"eyebrows\": \"Printed eyebrows matching the subject\",\n        \"expression\": \"Friendly, confident, natural expression\",\n        \"facial_hair\": \"Precisely printed stubble, beard, or moustache when present\"\n      },\n\n      \"hair\": {\n        \"construction\": \"Separate molded LEGO hairpiece\",\n        \"material\": \"Glossy ABS plastic\",\n        \"style\": \"Reproduce the reference hairstyle using recognizable molded hair geometry\",\n        \"details\": \"Individual molded hair sections, realistic plastic reflections, accurate hair color\"\n      },\n\n      \"eyewear\": {\n        \"instruction\": \"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\",\n        \"style\": \"Accurate frame shape, color, and proportions.\"\n      },\n\n      \"torso\": {\n        \"shape\": \"Classic LEGO minifigure torso\",\n        \"clothing\": \"Reproduce the original outfit using clean printed graphics.\",\n        \"graphics\": \"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\",\n        \"texture\": \"Smooth plastic with printed designs. Never use realistic fabric textures.\",\n        \"finish\": \"Premium glossy molded plastic.\"\n      },\n\n      \"arms\": {\n        \"shape\": \"Classic cylindrical LEGO arms\",\n        \"proportions\": \"Authentic minifigure dimensions\",\n        \"color\": \"Match the reference clothing\"\n      },\n\n      \"hands\": {\n        \"shape\": \"Traditional C-shaped LEGO hands\",\n        \"color\": \"Match the minifigure head color\"\n      },\n\n      \"legs\": {\n        \"shape\": \"Classic rigid LEGO minifigure legs\",\n        \"proportions\": \"Short, blocky, connected LEGO legs\",\n        \"details\": \"Printed trousers, shoes, and other recognizable clothing details where appropriate\"\n      },\n\n      \"accessories\": {\n        \"instruction\": \"Recreate recognizable personal accessories as miniature molded LEGO elements.\",\n        \"examples\": [\n          \"Glasses\",\n          \"Watches\",\n          \"Headphones\",\n          \"Backpacks\",\n          \"Bags\",\n          \"Hats\",\n          \"Jewelry\",\n          \"Professional equipment\",\n          \"Personal objects\"\n        ],\n        \"rule\": \"Only include accessories supported by the reference photograph.\"\n      }\n    },\n\n    \"material_and_rendering\": {\n      \"material\": \"High-quality injection-molded ABS plastic\",\n      \"surface\": \"Smooth, polished, glossy plastic\",\n      \"reflections\": \"Subtle controlled studio reflections\",\n      \"edges\": \"Precise molded edges and authentic LEGO geometry\",\n      \"printing\": \"Sharp, clean, high-resolution printed graphics\",\n      \"realism\": \"Photorealistic physical toy rendering\",\n      \"quality\": \"Premium collectible product visualization\"\n    },\n\n    \"composition\": {\n      \"subject_count\": 1,\n      \"position\": \"Precisely centered in the frame\",\n      \"pose\": \"Standing upright in a natural neutral minifigure pose\",\n      \"orientation\": \"Front-facing with a subtle three-quarter angle\",\n      \"framing\": \"Complete character visible from hair to feet\",\n      \"scale\": \"Character occupies approximately 75 to 85 percent of the image height\",\n      \"symmetry\": \"Balanced composition with equal visual breathing room\",\n      \"camera\": \"Professional product photography, slightly elevated three-quarter perspective\"\n    },\n\n    \"background\": {\n      \"type\": \"Pure white seamless studio background\",\n      \"color\": \"#FFFFFF\",\n      \"environment\": \"No scenery, no diorama, no LEGO bricks, no furniture, no props\",\n      \"shadows\": \"Very subtle natural contact shadow beneath the character\",\n      \"distractions\": \"Absolutely none\"\n    },\n\n    \"lighting\": {\n      \"style\": \"Premium commercial studio lighting\",\n      \"key_light\": \"Large softbox positioned at 45 degrees\",\n      \"fill_light\": \"Soft frontal fill light\",\n      \"rim_light\": \"Subtle highlights around the hair and shoulders\",\n      \"shadows\": \"Soft realistic shadows\",\n      \"exposure\": \"Bright, balanced, clean exposure\"\n    },\n\n    \"miniature_effect\": {\n      \"concept\": \"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\",\n      \"camera_style\": \"Macro product photography\",\n      \"lens\": \"90mm to 105mm macro lens aesthetic\",\n      \"depth_of_field\": \"Moderately shallow depth of field, keeping the entire minifigure sharp.\",\n      \"focus\": \"Sharp focus on the face, hair, torso, and clothing details.\",\n      \"perspective\": \"Natural miniature toy photography perspective\",\n      \"scale_illusion\": \"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\",\n      \"background_blur\": \"Not applicable to the pure white seamless background.\"\n    },\n\n    \"visual_consistency\": {\n      \"priority_1\": \"Authentic LEGO minifigure anatomy\",\n      \"priority_2\": \"Recognizable personal identity\",\n      \"priority_3\": \"Accurate clothing and accessories\",\n      \"priority_4\": \"Premium glossy plastic materials\",\n      \"priority_5\": \"Consistent studio product photography\",\n      \"rule\": \"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\"\n    },\n\n    \"negative_prompt\": [\n      \"Realistic human anatomy\",\n      \"Human skin texture\",\n      \"Photorealistic human face\",\n      \"Funko Pop proportions\",\n      \"Action figure anatomy\",\n      \"Soft organic body shapes\",\n      \"Long human-like legs\",\n      \"Realistic fabric\",\n      \"Cloth wrinkles\",\n      \"Oversized hands\",\n      \"Deformed LEGO parts\",\n      \"Missing accessories\",\n      \"Incorrect hairstyle\",\n      \"Unrecognizable facial characteristics\",\n      \"Extra limbs\",\n      \"Multiple characters\",\n      \"Background scenery\",\n      \"LEGO diorama\",\n      \"Colored background\",\n      \"Text outside the character\",\n      \"Watermarks\",\n      \"Packaging\",\n      \"Display stands\",\n      \"Cropped feet\",\n      \"Cropped hair\"\n    ],\n\n    \"output_settings\": {\n      \"format\": \"Photorealistic 3D render\",\n      \"aspect_ratio\": \"2:3\",\n      \"resolution\": \"High resolution\",\n      \"background\": \"Pure white\",\n      \"subject\": \"One complete centered LEGO minifigure\",\n      \"presentation\": \"Premium collectible studio product photograph\"\n    }\n  }\n}" \
    --wait
```

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

## More prompts like this

- [AI VIDEO GENERATION PROMPT](https://runapi.ai/prompts/prm_Eknpxvwl4jrESZZP40JVoerg.md)
- [Character Lock — Keep One AI Character Identical Across Every Shot of an AI Ad](https://runapi.ai/prompts/prm_3z60e7LoydQ5TMb6DxKdZqMw.md)
- [Luxury Contemporary Mansion FPV Walkthrough: Golden-Hour Rooftop Pool to Double-Height Interior (16:9 Real Estate Video)](https://runapi.ai/prompts/prm_ajZMKXYg469vSklJ8JwqdLOb.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": "From Photo to LEGO Minifigure 🧱",
        "item": "https://runapi.ai/prompts/prm_3z60e7LoydQ5TMWXDxKdZqMw"
      }
    ]
  },
  {
    "@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": "From Photo to LEGO Minifigure 🧱",
    "text": "{\n  \"prompt\": {\n    \"title\": \"Personalized LEGO Minifigure Collectible Generator\",\n    \"concept\": \"Transform the person in the reference image into a premium, highly detailed, classic LEGO minifigure collectible. The result must look like a professionally manufactured physical LEGO toy photographed in a high-end product photography studio.\",\n\n    \"reference_image_analysis\": {\n      \"instruction\": \"Analyze the reference photograph before designing the minifigure.\",\n      \"identify_and_preserve\": [\n        \"Distinctive facial characteristics\",\n        \"Face shape and proportions\",\n        \"Hair color, hairstyle, and hair volume\",\n        \"Eyebrows and characteristic expression\",\n        \"Glasses and eyewear\",\n        \"Facial hair, beard, and moustache\",\n        \"Original clothing and dominant colors\",\n        \"Logos, typography, and recognizable clothing graphics\",\n        \"Jewelry, watches, bags, and personal accessories\",\n        \"Other distinctive visual characteristics\"\n      ],\n      \"identity_priority\": \"The resulting minifigure should be immediately recognizable as the person in the reference image, despite the simplified LEGO facial design.\"\n    },\n\n    \"character_construction\": {\n      \"design_language\": \"Authentic classic LEGO minifigure construction with premium collectible detailing.\",\n      \"head\": {\n        \"shape\": \"Classic cylindrical LEGO minifigure head\",\n        \"material\": \"Glossy injection-molded plastic\",\n        \"color\": \"Traditional LEGO yellow or appropriate LEGO skin-tone color\",\n        \"face\": \"Printed LEGO facial graphics\",\n        \"eyes\": \"Classic expressive LEGO eyes with black pupils and white highlights\",\n        \"eyebrows\": \"Printed eyebrows matching the subject\",\n        \"expression\": \"Friendly, confident, natural expression\",\n        \"facial_hair\": \"Precisely printed stubble, beard, or moustache when present\"\n      },\n\n      \"hair\": {\n        \"construction\": \"Separate molded LEGO hairpiece\",\n        \"material\": \"Glossy ABS plastic\",\n        \"style\": \"Reproduce the reference hairstyle using recognizable molded hair geometry\",\n        \"details\": \"Individual molded hair sections, realistic plastic reflections, accurate hair color\"\n      },\n\n      \"eyewear\": {\n        \"instruction\": \"Reproduce glasses and sunglasses as separate miniature LEGO-compatible accessories when present.\",\n        \"style\": \"Accurate frame shape, color, and proportions.\"\n      },\n\n      \"torso\": {\n        \"shape\": \"Classic LEGO minifigure torso\",\n        \"clothing\": \"Reproduce the original outfit using clean printed graphics.\",\n        \"graphics\": \"Preserve recognizable logos, lettering, color combinations, pockets, collars, and clothing details.\",\n        \"texture\": \"Smooth plastic with printed designs. Never use realistic fabric textures.\",\n        \"finish\": \"Premium glossy molded plastic.\"\n      },\n\n      \"arms\": {\n        \"shape\": \"Classic cylindrical LEGO arms\",\n        \"proportions\": \"Authentic minifigure dimensions\",\n        \"color\": \"Match the reference clothing\"\n      },\n\n      \"hands\": {\n        \"shape\": \"Traditional C-shaped LEGO hands\",\n        \"color\": \"Match the minifigure head color\"\n      },\n\n      \"legs\": {\n        \"shape\": \"Classic rigid LEGO minifigure legs\",\n        \"proportions\": \"Short, blocky, connected LEGO legs\",\n        \"details\": \"Printed trousers, shoes, and other recognizable clothing details where appropriate\"\n      },\n\n      \"accessories\": {\n        \"instruction\": \"Recreate recognizable personal accessories as miniature molded LEGO elements.\",\n        \"examples\": [\n          \"Glasses\",\n          \"Watches\",\n          \"Headphones\",\n          \"Backpacks\",\n          \"Bags\",\n          \"Hats\",\n          \"Jewelry\",\n          \"Professional equipment\",\n          \"Personal objects\"\n        ],\n        \"rule\": \"Only include accessories supported by the reference photograph.\"\n      }\n    },\n\n    \"material_and_rendering\": {\n      \"material\": \"High-quality injection-molded ABS plastic\",\n      \"surface\": \"Smooth, polished, glossy plastic\",\n      \"reflections\": \"Subtle controlled studio reflections\",\n      \"edges\": \"Precise molded edges and authentic LEGO geometry\",\n      \"printing\": \"Sharp, clean, high-resolution printed graphics\",\n      \"realism\": \"Photorealistic physical toy rendering\",\n      \"quality\": \"Premium collectible product visualization\"\n    },\n\n    \"composition\": {\n      \"subject_count\": 1,\n      \"position\": \"Precisely centered in the frame\",\n      \"pose\": \"Standing upright in a natural neutral minifigure pose\",\n      \"orientation\": \"Front-facing with a subtle three-quarter angle\",\n      \"framing\": \"Complete character visible from hair to feet\",\n      \"scale\": \"Character occupies approximately 75 to 85 percent of the image height\",\n      \"symmetry\": \"Balanced composition with equal visual breathing room\",\n      \"camera\": \"Professional product photography, slightly elevated three-quarter perspective\"\n    },\n\n    \"background\": {\n      \"type\": \"Pure white seamless studio background\",\n      \"color\": \"#FFFFFF\",\n      \"environment\": \"No scenery, no diorama, no LEGO bricks, no furniture, no props\",\n      \"shadows\": \"Very subtle natural contact shadow beneath the character\",\n      \"distractions\": \"Absolutely none\"\n    },\n\n    \"lighting\": {\n      \"style\": \"Premium commercial studio lighting\",\n      \"key_light\": \"Large softbox positioned at 45 degrees\",\n      \"fill_light\": \"Soft frontal fill light\",\n      \"rim_light\": \"Subtle highlights around the hair and shoulders\",\n      \"shadows\": \"Soft realistic shadows\",\n      \"exposure\": \"Bright, balanced, clean exposure\"\n    },\n\n    \"miniature_effect\": {\n      \"concept\": \"The character must look like a real, tiny physical collectible toy photographed using professional macro photography.\",\n      \"camera_style\": \"Macro product photography\",\n      \"lens\": \"90mm to 105mm macro lens aesthetic\",\n      \"depth_of_field\": \"Moderately shallow depth of field, keeping the entire minifigure sharp.\",\n      \"focus\": \"Sharp focus on the face, hair, torso, and clothing details.\",\n      \"perspective\": \"Natural miniature toy photography perspective\",\n      \"scale_illusion\": \"Subtle optical characteristics that communicate physical miniature scale without distorting the character.\",\n      \"background_blur\": \"Not applicable to the pure white seamless background.\"\n    },\n\n    \"visual_consistency\": {\n      \"priority_1\": \"Authentic LEGO minifigure anatomy\",\n      \"priority_2\": \"Recognizable personal identity\",\n      \"priority_3\": \"Accurate clothing and accessories\",\n      \"priority_4\": \"Premium glossy plastic materials\",\n      \"priority_5\": \"Consistent studio product photography\",\n      \"rule\": \"Never convert the character into a realistic human, action figure, Funko Pop, or generic cartoon character.\"\n    },\n\n    \"negative_prompt\": [\n      \"Realistic human anatomy\",\n      \"Human skin texture\",\n      \"Photorealistic human face\",\n      \"Funko Pop proportions\",\n      \"Action figure anatomy\",\n      \"Soft organic body shapes\",\n      \"Long human-like legs\",\n      \"Realistic fabric\",\n      \"Cloth wrinkles\",\n      \"Oversized hands\",\n      \"Deformed LEGO parts\",\n      \"Missing accessories\",\n      \"Incorrect hairstyle\",\n      \"Unrecognizable facial characteristics\",\n      \"Extra limbs\",\n      \"Multiple characters\",\n      \"Background scenery\",\n      \"LEGO diorama\",\n      \"Colored background\",\n      \"Text outside the character\",\n      \"Watermarks\",\n      \"Packaging\",\n      \"Display stands\",\n      \"Cropped feet\",\n      \"Cropped hair\"\n    ],\n\n    \"output_settings\": {\n      \"format\": \"Photorealistic 3D render\",\n      \"aspect_ratio\": \"2:3\",\n      \"resolution\": \"High resolution\",\n      \"background\": \"Pure white\",\n      \"subject\": \"One complete centered LEGO minifigure\",\n      \"presentation\": \"Premium collectible studio product photograph\"\n    }\n  }\n}",
    "image": null,
    "about": [
      "image",
      "advertising"
    ]
  }
]
```
