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

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


# Whiteboard Diagrams

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

**Prompts** · Image

## Prompt

```text
Steps to build an AI startup by making something people want:

{
  "style": {
    "name": "Whiteboard Sketch Diagram",
    "description": "Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard."
  },
  "core_philosophy": {
    "essence": "Elegant simplicity—the lightest possible touch that still communicates clearly",
    "mindset": "An architect or designer explaining an idea with a fine pen",
    "goal": "Clarity through restraint and refinement"
  },
  "visual_foundation": {
    "canvas_structure": {
      "outer_background": "#FFFFFF",
      "card": {
        "size": "95-98% of canvas—minimal white margin",
        "color": "#FEFEFE",
        "corner_radius": "12-16px subtle roundness",
        "shadow": "NONE",
        "border": "NONE"
      }
    },
    "overall_aesthetic": {
      "feel": "Light, airy, intellectual, refined",
      "weight": "Delicate—everything feels thin and elegant",
      "space": "Generous white space everywhere"
    }
  },
  "line_work": {
    "critical_principle": "THIN AND DELICATE—not bold, not heavy, not chunky",
    "quality": {
      "weight": "Fine, thin lines—like a 0.5mm pen or fine-tip marker",
      "character": "Architectural, precise but hand-drawn",
      "consistency": "Uniform thin weight throughout"
    },
    "stroke_style": {
      "lines": "Thin, clean, slightly imperfect",
      "corners": "Sharp or slightly rounded, never bulky",
      "feel": "Drawn quickly but skillfully"
    }
  },
  "color_palette": {
    "exact_colors": {
      "card_background": {
        "hex": "#FEFEFE",
        "description": "Almost white, flat, neutral"
      },
      "primary_text": {
        "hex": "#020202",
        "description": "Near-black for text—crisp and readable"
      },
      "line_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for all drawn lines, boxes, shapes—NOT pure black"
      },
      "accent_blue": {
        "hex": "#2C68B7",
        "description": "Clear medium blue—for arrows, connectors, brackets, some labels"
      },
      "accent_red": {
        "hex": "#B34952",
        "description": "Warm coral-red—for category labels, emphasis text"
      },
      "fill_blue": {
        "hex": "#2C68B7",
        "description": "Same blue for small filled squares/shapes"
      },
      "fill_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for filled grid cells"
      }
    },
    "usage": {
      "text": "Primary text in #020202 black, categories in #E54B54 red",
      "lines_and_shapes": "All outlines in #4A4B4B gray—NOT black",
      "arrows_and_flow": "#2C68B7 blue—thin and elegant",
      "fills": "Small filled squares in blue or gray—never large solid areas"
    }
  },
  "typography": {
    "style": {
      "type": "Elegant italic handwriting",
      "weight": "Light to medium—never bold or heavy",
      "slant": "Natural italic lean",
      "character": "Fluid, intelligent, like architect's lettering"
    },
    "colors": {
      "titles": "#020202 black, italic",
      "category_labels": "#E54B54 red",
      "annotations": "#2C68B7 blue or #020202 black"
    }
  },
  "diagram_elements": {
    "boxes_and_rectangles": {
      "stroke": "THIN #4A4B4B gray outline—1-2px weight max",
      "fill": "Empty/transparent—never solid filled large boxes",
      "corners": "Slightly rounded or sharp, hand-drawn",
      "style": "Light, airy, not heavy containers"
    },
    "grids_and_matrices": {
      "stroke": "Thin gray lines",
      "cells": "Small—may contain small filled squares or numbers",
      "fills": "Small squares filled blue or gray to show data"
    },
    "arrows": {
      "critical": "THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows",
      "stroke": "Thin #2C68B7 blue line—same weight as other lines",
      "heads": "Small, simple, minimal—just two short angled lines forming a point",
      "style": "Like hand-drawn with a fine pen, not a thick marker",
      "types": [
        "Simple thin straight arrows",
        "Thin curved arrows for flow",
        "Never: block arrows, 3D arrows, gradient arrows, thick arrows"
      ]
    },
    "brackets": {
      "style": "Thin hand-drawn curly braces in blue",
      "weight": "Same thin line weight as everything else"
    },
    "dots_and_markers": {
      "style": "Small filled circles or squares",
      "size": "Tiny—proportional to the thin line aesthetic",
      "colors": "Blue or red for emphasis"
    }
  },
  "visual_language": {
    "shapes_vocabulary": {
      "rectangles": "Thin outlined boxes—vertical or horizontal orientation",
      "grids": "Small matrices with tiny filled cells",
      "lists": "Simple dashed or bulleted items inside boxes",
      "flow": "Thin arrows connecting elements left-to-right"
    },
    "composition_patterns": {
      "typical_layout": "2-4 main elements arranged horizontally with arrows between",
      "spacing": "Generous gaps between elements",
      "alignment": "Rough but intentional alignment",
      "hierarchy": "Titles above boxes, labels below or beside"
    },
    "proportions": {
      "line_weight_to_space": "Very thin lines in very open space",
      "text_to_diagram": "Text is secondary, diagram dominates",
      "fill_to_empty": "Mostly empty, fills are small accents"
    }
  },
  "elegance_principles": {
    "lightness": "Everything should feel like it could float away",
    "restraint": "Use the minimum to communicate the idea",
    "refinement": "Quality of line over quantity of elements",
    "intelligence": "Looks like a smart person drew it quickly",
    "breathing": "White space is as important as the marks"
  },
  "avoid": [
    "Thick, heavy, bold lines",
    "Chunky PowerPoint-style arrows",
    "Block arrows or 3D arrows",
    "Large solid filled areas",
    "Dense, cluttered layouts",
    "Bold or heavy typography",
    "Drop shadows or gradients",
    "Corporate clip-art aesthetic",
    "Rounded bubble shapes",
    "Any line weight that feels 'heavy'",
    "Pure black (#000000) for lines—use #4A4B4B gray",
    "Decorative elements",
    "Overly complex diagrams"
  ]
}
```

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

Whiteboard Diagrams

### Atmosphere

art / Image

### Technical

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

### Style

arrows, blue, diagram, italic, minimal, sketch, thin, whiteboard

<!-- /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 | art |
| Tags | arrows, blue, diagram, italic, minimal, sketch, thin, whiteboard |

## 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: "Steps to build an AI startup by making something people want:

{
  "style": {
    "name": "Whiteboard Sketch Diagram",
    "description": "Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard."
  },
  "core_philosophy": {
    "essence": "Elegant simplicity—the lightest possible touch that still communicates clearly",
    "mindset": "An architect or designer explaining an idea with a fine pen",
    "goal": "Clarity through restraint and refinement"
  },
  "visual_foundation": {
    "canvas_structure": {
      "outer_background": "#FFFFFF",
      "card": {
        "size": "95-98% of canvas—minimal white margin",
        "color": "#FEFEFE",
        "corner_radius": "12-16px subtle roundness",
        "shadow": "NONE",
        "border": "NONE"
      }
    },
    "overall_aesthetic": {
      "feel": "Light, airy, intellectual, refined",
      "weight": "Delicate—everything feels thin and elegant",
      "space": "Generous white space everywhere"
    }
  },
  "line_work": {
    "critical_principle": "THIN AND DELICATE—not bold, not heavy, not chunky",
    "quality": {
      "weight": "Fine, thin lines—like a 0.5mm pen or fine-tip marker",
      "character": "Architectural, precise but hand-drawn",
      "consistency": "Uniform thin weight throughout"
    },
    "stroke_style": {
      "lines": "Thin, clean, slightly imperfect",
      "corners": "Sharp or slightly rounded, never bulky",
      "feel": "Drawn quickly but skillfully"
    }
  },
  "color_palette": {
    "exact_colors": {
      "card_background": {
        "hex": "#FEFEFE",
        "description": "Almost white, flat, neutral"
      },
      "primary_text": {
        "hex": "#020202",
        "description": "Near-black for text—crisp and readable"
      },
      "line_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for all drawn lines, boxes, shapes—NOT pure black"
      },
      "accent_blue": {
        "hex": "#2C68B7",
        "description": "Clear medium blue—for arrows, connectors, brackets, some labels"
      },
      "accent_red": {
        "hex": "#B34952",
        "description": "Warm coral-red—for category labels, emphasis text"
      },
      "fill_blue": {
        "hex": "#2C68B7",
        "description": "Same blue for small filled squares/shapes"
      },
      "fill_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for filled grid cells"
      }
    },
    "usage": {
      "text": "Primary text in #020202 black, categories in #E54B54 red",
      "lines_and_shapes": "All outlines in #4A4B4B gray—NOT black",
      "arrows_and_flow": "#2C68B7 blue—thin and elegant",
      "fills": "Small filled squares in blue or gray—never large solid areas"
    }
  },
  "typography": {
    "style": {
      "type": "Elegant italic handwriting",
      "weight": "Light to medium—never bold or heavy",
      "slant": "Natural italic lean",
      "character": "Fluid, intelligent, like architect's lettering"
    },
    "colors": {
      "titles": "#020202 black, italic",
      "category_labels": "#E54B54 red",
      "annotations": "#2C68B7 blue or #020202 black"
    }
  },
  "diagram_elements": {
    "boxes_and_rectangles": {
      "stroke": "THIN #4A4B4B gray outline—1-2px weight max",
      "fill": "Empty/transparent—never solid filled large boxes",
      "corners": "Slightly rounded or sharp, hand-drawn",
      "style": "Light, airy, not heavy containers"
    },
    "grids_and_matrices": {
      "stroke": "Thin gray lines",
      "cells": "Small—may contain small filled squares or numbers",
      "fills": "Small squares filled blue or gray to show data"
    },
    "arrows": {
      "critical": "THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows",
      "stroke": "Thin #2C68B7 blue line—same weight as other lines",
      "heads": "Small, simple, minimal—just two short angled lines forming a point",
      "style": "Like hand-drawn with a fine pen, not a thick marker",
      "types": [
        "Simple thin straight arrows",
        "Thin curved arrows for flow",
        "Never: block arrows, 3D arrows, gradient arrows, thick arrows"
      ]
    },
    "brackets": {
      "style": "Thin hand-drawn curly braces in blue",
      "weight": "Same thin line weight as everything else"
    },
    "dots_and_markers": {
      "style": "Small filled circles or squares",
      "size": "Tiny—proportional to the thin line aesthetic",
      "colors": "Blue or red for emphasis"
    }
  },
  "visual_language": {
    "shapes_vocabulary": {
      "rectangles": "Thin outlined boxes—vertical or horizontal orientation",
      "grids": "Small matrices with tiny filled cells",
      "lists": "Simple dashed or bulleted items inside boxes",
      "flow": "Thin arrows connecting elements left-to-right"
    },
    "composition_patterns": {
      "typical_layout": "2-4 main elements arranged horizontally with arrows between",
      "spacing": "Generous gaps between elements",
      "alignment": "Rough but intentional alignment",
      "hierarchy": "Titles above boxes, labels below or beside"
    },
    "proportions": {
      "line_weight_to_space": "Very thin lines in very open space",
      "text_to_diagram": "Text is secondary, diagram dominates",
      "fill_to_empty": "Mostly empty, fills are small accents"
    }
  },
  "elegance_principles": {
    "lightness": "Everything should feel like it could float away",
    "restraint": "Use the minimum to communicate the idea",
    "refinement": "Quality of line over quantity of elements",
    "intelligence": "Looks like a smart person drew it quickly",
    "breathing": "White space is as important as the marks"
  },
  "avoid": [
    "Thick, heavy, bold lines",
    "Chunky PowerPoint-style arrows",
    "Block arrows or 3D arrows",
    "Large solid filled areas",
    "Dense, cluttered layouts",
    "Bold or heavy typography",
    "Drop shadows or gradients",
    "Corporate clip-art aesthetic",
    "Rounded bubble shapes",
    "Any line weight that feels 'heavy'",
    "Pure black (#000000) for lines—use #4A4B4B gray",
    "Decorative elements",
    "Overly complex diagrams"
  ]
}"

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate an image: "Steps to build an AI startup by making something people want:

{
  "style": {
    "name": "Whiteboard Sketch Diagram",
    "description": "Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard."
  },
  "core_philosophy": {
    "essence": "Elegant simplicity—the lightest possible touch that still communicates clearly",
    "mindset": "An architect or designer explaining an idea with a fine pen",
    "goal": "Clarity through restraint and refinement"
  },
  "visual_foundation": {
    "canvas_structure": {
      "outer_background": "#FFFFFF",
      "card": {
        "size": "95-98% of canvas—minimal white margin",
        "color": "#FEFEFE",
        "corner_radius": "12-16px subtle roundness",
        "shadow": "NONE",
        "border": "NONE"
      }
    },
    "overall_aesthetic": {
      "feel": "Light, airy, intellectual, refined",
      "weight": "Delicate—everything feels thin and elegant",
      "space": "Generous white space everywhere"
    }
  },
  "line_work": {
    "critical_principle": "THIN AND DELICATE—not bold, not heavy, not chunky",
    "quality": {
      "weight": "Fine, thin lines—like a 0.5mm pen or fine-tip marker",
      "character": "Architectural, precise but hand-drawn",
      "consistency": "Uniform thin weight throughout"
    },
    "stroke_style": {
      "lines": "Thin, clean, slightly imperfect",
      "corners": "Sharp or slightly rounded, never bulky",
      "feel": "Drawn quickly but skillfully"
    }
  },
  "color_palette": {
    "exact_colors": {
      "card_background": {
        "hex": "#FEFEFE",
        "description": "Almost white, flat, neutral"
      },
      "primary_text": {
        "hex": "#020202",
        "description": "Near-black for text—crisp and readable"
      },
      "line_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for all drawn lines, boxes, shapes—NOT pure black"
      },
      "accent_blue": {
        "hex": "#2C68B7",
        "description": "Clear medium blue—for arrows, connectors, brackets, some labels"
      },
      "accent_red": {
        "hex": "#B34952",
        "description": "Warm coral-red—for category labels, emphasis text"
      },
      "fill_blue": {
        "hex": "#2C68B7",
        "description": "Same blue for small filled squares/shapes"
      },
      "fill_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for filled grid cells"
      }
    },
    "usage": {
      "text": "Primary text in #020202 black, categories in #E54B54 red",
      "lines_and_shapes": "All outlines in #4A4B4B gray—NOT black",
      "arrows_and_flow": "#2C68B7 blue—thin and elegant",
      "fills": "Small filled squares in blue or gray—never large solid areas"
    }
  },
  "typography": {
    "style": {
      "type": "Elegant italic handwriting",
      "weight": "Light to medium—never bold or heavy",
      "slant": "Natural italic lean",
      "character": "Fluid, intelligent, like architect's lettering"
    },
    "colors": {
      "titles": "#020202 black, italic",
      "category_labels": "#E54B54 red",
      "annotations": "#2C68B7 blue or #020202 black"
    }
  },
  "diagram_elements": {
    "boxes_and_rectangles": {
      "stroke": "THIN #4A4B4B gray outline—1-2px weight max",
      "fill": "Empty/transparent—never solid filled large boxes",
      "corners": "Slightly rounded or sharp, hand-drawn",
      "style": "Light, airy, not heavy containers"
    },
    "grids_and_matrices": {
      "stroke": "Thin gray lines",
      "cells": "Small—may contain small filled squares or numbers",
      "fills": "Small squares filled blue or gray to show data"
    },
    "arrows": {
      "critical": "THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows",
      "stroke": "Thin #2C68B7 blue line—same weight as other lines",
      "heads": "Small, simple, minimal—just two short angled lines forming a point",
      "style": "Like hand-drawn with a fine pen, not a thick marker",
      "types": [
        "Simple thin straight arrows",
        "Thin curved arrows for flow",
        "Never: block arrows, 3D arrows, gradient arrows, thick arrows"
      ]
    },
    "brackets": {
      "style": "Thin hand-drawn curly braces in blue",
      "weight": "Same thin line weight as everything else"
    },
    "dots_and_markers": {
      "style": "Small filled circles or squares",
      "size": "Tiny—proportional to the thin line aesthetic",
      "colors": "Blue or red for emphasis"
    }
  },
  "visual_language": {
    "shapes_vocabulary": {
      "rectangles": "Thin outlined boxes—vertical or horizontal orientation",
      "grids": "Small matrices with tiny filled cells",
      "lists": "Simple dashed or bulleted items inside boxes",
      "flow": "Thin arrows connecting elements left-to-right"
    },
    "composition_patterns": {
      "typical_layout": "2-4 main elements arranged horizontally with arrows between",
      "spacing": "Generous gaps between elements",
      "alignment": "Rough but intentional alignment",
      "hierarchy": "Titles above boxes, labels below or beside"
    },
    "proportions": {
      "line_weight_to_space": "Very thin lines in very open space",
      "text_to_diagram": "Text is secondary, diagram dominates",
      "fill_to_empty": "Mostly empty, fills are small accents"
    }
  },
  "elegance_principles": {
    "lightness": "Everything should feel like it could float away",
    "restraint": "Use the minimum to communicate the idea",
    "refinement": "Quality of line over quantity of elements",
    "intelligence": "Looks like a smart person drew it quickly",
    "breathing": "White space is as important as the marks"
  },
  "avoid": [
    "Thick, heavy, bold lines",
    "Chunky PowerPoint-style arrows",
    "Block arrows or 3D arrows",
    "Large solid filled areas",
    "Dense, cluttered layouts",
    "Bold or heavy typography",
    "Drop shadows or gradients",
    "Corporate clip-art aesthetic",
    "Rounded bubble shapes",
    "Any line weight that feels 'heavy'",
    "Pure black (#000000) for lines—use #4A4B4B gray",
    "Decorative elements",
    "Overly complex diagrams"
  ]
}"

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate an image: "Steps to build an AI startup by making something people want:

{
  "style": {
    "name": "Whiteboard Sketch Diagram",
    "description": "Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard."
  },
  "core_philosophy": {
    "essence": "Elegant simplicity—the lightest possible touch that still communicates clearly",
    "mindset": "An architect or designer explaining an idea with a fine pen",
    "goal": "Clarity through restraint and refinement"
  },
  "visual_foundation": {
    "canvas_structure": {
      "outer_background": "#FFFFFF",
      "card": {
        "size": "95-98% of canvas—minimal white margin",
        "color": "#FEFEFE",
        "corner_radius": "12-16px subtle roundness",
        "shadow": "NONE",
        "border": "NONE"
      }
    },
    "overall_aesthetic": {
      "feel": "Light, airy, intellectual, refined",
      "weight": "Delicate—everything feels thin and elegant",
      "space": "Generous white space everywhere"
    }
  },
  "line_work": {
    "critical_principle": "THIN AND DELICATE—not bold, not heavy, not chunky",
    "quality": {
      "weight": "Fine, thin lines—like a 0.5mm pen or fine-tip marker",
      "character": "Architectural, precise but hand-drawn",
      "consistency": "Uniform thin weight throughout"
    },
    "stroke_style": {
      "lines": "Thin, clean, slightly imperfect",
      "corners": "Sharp or slightly rounded, never bulky",
      "feel": "Drawn quickly but skillfully"
    }
  },
  "color_palette": {
    "exact_colors": {
      "card_background": {
        "hex": "#FEFEFE",
        "description": "Almost white, flat, neutral"
      },
      "primary_text": {
        "hex": "#020202",
        "description": "Near-black for text—crisp and readable"
      },
      "line_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for all drawn lines, boxes, shapes—NOT pure black"
      },
      "accent_blue": {
        "hex": "#2C68B7",
        "description": "Clear medium blue—for arrows, connectors, brackets, some labels"
      },
      "accent_red": {
        "hex": "#B34952",
        "description": "Warm coral-red—for category labels, emphasis text"
      },
      "fill_blue": {
        "hex": "#2C68B7",
        "description": "Same blue for small filled squares/shapes"
      },
      "fill_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for filled grid cells"
      }
    },
    "usage": {
      "text": "Primary text in #020202 black, categories in #E54B54 red",
      "lines_and_shapes": "All outlines in #4A4B4B gray—NOT black",
      "arrows_and_flow": "#2C68B7 blue—thin and elegant",
      "fills": "Small filled squares in blue or gray—never large solid areas"
    }
  },
  "typography": {
    "style": {
      "type": "Elegant italic handwriting",
      "weight": "Light to medium—never bold or heavy",
      "slant": "Natural italic lean",
      "character": "Fluid, intelligent, like architect's lettering"
    },
    "colors": {
      "titles": "#020202 black, italic",
      "category_labels": "#E54B54 red",
      "annotations": "#2C68B7 blue or #020202 black"
    }
  },
  "diagram_elements": {
    "boxes_and_rectangles": {
      "stroke": "THIN #4A4B4B gray outline—1-2px weight max",
      "fill": "Empty/transparent—never solid filled large boxes",
      "corners": "Slightly rounded or sharp, hand-drawn",
      "style": "Light, airy, not heavy containers"
    },
    "grids_and_matrices": {
      "stroke": "Thin gray lines",
      "cells": "Small—may contain small filled squares or numbers",
      "fills": "Small squares filled blue or gray to show data"
    },
    "arrows": {
      "critical": "THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows",
      "stroke": "Thin #2C68B7 blue line—same weight as other lines",
      "heads": "Small, simple, minimal—just two short angled lines forming a point",
      "style": "Like hand-drawn with a fine pen, not a thick marker",
      "types": [
        "Simple thin straight arrows",
        "Thin curved arrows for flow",
        "Never: block arrows, 3D arrows, gradient arrows, thick arrows"
      ]
    },
    "brackets": {
      "style": "Thin hand-drawn curly braces in blue",
      "weight": "Same thin line weight as everything else"
    },
    "dots_and_markers": {
      "style": "Small filled circles or squares",
      "size": "Tiny—proportional to the thin line aesthetic",
      "colors": "Blue or red for emphasis"
    }
  },
  "visual_language": {
    "shapes_vocabulary": {
      "rectangles": "Thin outlined boxes—vertical or horizontal orientation",
      "grids": "Small matrices with tiny filled cells",
      "lists": "Simple dashed or bulleted items inside boxes",
      "flow": "Thin arrows connecting elements left-to-right"
    },
    "composition_patterns": {
      "typical_layout": "2-4 main elements arranged horizontally with arrows between",
      "spacing": "Generous gaps between elements",
      "alignment": "Rough but intentional alignment",
      "hierarchy": "Titles above boxes, labels below or beside"
    },
    "proportions": {
      "line_weight_to_space": "Very thin lines in very open space",
      "text_to_diagram": "Text is secondary, diagram dominates",
      "fill_to_empty": "Mostly empty, fills are small accents"
    }
  },
  "elegance_principles": {
    "lightness": "Everything should feel like it could float away",
    "restraint": "Use the minimum to communicate the idea",
    "refinement": "Quality of line over quantity of elements",
    "intelligence": "Looks like a smart person drew it quickly",
    "breathing": "White space is as important as the marks"
  },
  "avoid": [
    "Thick, heavy, bold lines",
    "Chunky PowerPoint-style arrows",
    "Block arrows or 3D arrows",
    "Large solid filled areas",
    "Dense, cluttered layouts",
    "Bold or heavy typography",
    "Drop shadows or gradients",
    "Corporate clip-art aesthetic",
    "Rounded bubble shapes",
    "Any line weight that feels 'heavy'",
    "Pure black (#000000) for lines—use #4A4B4B gray",
    "Decorative elements",
    "Overly complex diagrams"
  ]
}"

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate an image: "Steps to build an AI startup by making something people want:

{
  "style": {
    "name": "Whiteboard Sketch Diagram",
    "description": "Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard."
  },
  "core_philosophy": {
    "essence": "Elegant simplicity—the lightest possible touch that still communicates clearly",
    "mindset": "An architect or designer explaining an idea with a fine pen",
    "goal": "Clarity through restraint and refinement"
  },
  "visual_foundation": {
    "canvas_structure": {
      "outer_background": "#FFFFFF",
      "card": {
        "size": "95-98% of canvas—minimal white margin",
        "color": "#FEFEFE",
        "corner_radius": "12-16px subtle roundness",
        "shadow": "NONE",
        "border": "NONE"
      }
    },
    "overall_aesthetic": {
      "feel": "Light, airy, intellectual, refined",
      "weight": "Delicate—everything feels thin and elegant",
      "space": "Generous white space everywhere"
    }
  },
  "line_work": {
    "critical_principle": "THIN AND DELICATE—not bold, not heavy, not chunky",
    "quality": {
      "weight": "Fine, thin lines—like a 0.5mm pen or fine-tip marker",
      "character": "Architectural, precise but hand-drawn",
      "consistency": "Uniform thin weight throughout"
    },
    "stroke_style": {
      "lines": "Thin, clean, slightly imperfect",
      "corners": "Sharp or slightly rounded, never bulky",
      "feel": "Drawn quickly but skillfully"
    }
  },
  "color_palette": {
    "exact_colors": {
      "card_background": {
        "hex": "#FEFEFE",
        "description": "Almost white, flat, neutral"
      },
      "primary_text": {
        "hex": "#020202",
        "description": "Near-black for text—crisp and readable"
      },
      "line_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for all drawn lines, boxes, shapes—NOT pure black"
      },
      "accent_blue": {
        "hex": "#2C68B7",
        "description": "Clear medium blue—for arrows, connectors, brackets, some labels"
      },
      "accent_red": {
        "hex": "#B34952",
        "description": "Warm coral-red—for category labels, emphasis text"
      },
      "fill_blue": {
        "hex": "#2C68B7",
        "description": "Same blue for small filled squares/shapes"
      },
      "fill_gray": {
        "hex": "#4A4B4B",
        "description": "Dark gray for filled grid cells"
      }
    },
    "usage": {
      "text": "Primary text in #020202 black, categories in #E54B54 red",
      "lines_and_shapes": "All outlines in #4A4B4B gray—NOT black",
      "arrows_and_flow": "#2C68B7 blue—thin and elegant",
      "fills": "Small filled squares in blue or gray—never large solid areas"
    }
  },
  "typography": {
    "style": {
      "type": "Elegant italic handwriting",
      "weight": "Light to medium—never bold or heavy",
      "slant": "Natural italic lean",
      "character": "Fluid, intelligent, like architect's lettering"
    },
    "colors": {
      "titles": "#020202 black, italic",
      "category_labels": "#E54B54 red",
      "annotations": "#2C68B7 blue or #020202 black"
    }
  },
  "diagram_elements": {
    "boxes_and_rectangles": {
      "stroke": "THIN #4A4B4B gray outline—1-2px weight max",
      "fill": "Empty/transparent—never solid filled large boxes",
      "corners": "Slightly rounded or sharp, hand-drawn",
      "style": "Light, airy, not heavy containers"
    },
    "grids_and_matrices": {
      "stroke": "Thin gray lines",
      "cells": "Small—may contain small filled squares or numbers",
      "fills": "Small squares filled blue or gray to show data"
    },
    "arrows": {
      "critical": "THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows",
      "stroke": "Thin #2C68B7 blue line—same weight as other lines",
      "heads": "Small, simple, minimal—just two short angled lines forming a point",
      "style": "Like hand-drawn with a fine pen, not a thick marker",
      "types": [
        "Simple thin straight arrows",
        "Thin curved arrows for flow",
        "Never: block arrows, 3D arrows, gradient arrows, thick arrows"
      ]
    },
    "brackets": {
      "style": "Thin hand-drawn curly braces in blue",
      "weight": "Same thin line weight as everything else"
    },
    "dots_and_markers": {
      "style": "Small filled circles or squares",
      "size": "Tiny—proportional to the thin line aesthetic",
      "colors": "Blue or red for emphasis"
    }
  },
  "visual_language": {
    "shapes_vocabulary": {
      "rectangles": "Thin outlined boxes—vertical or horizontal orientation",
      "grids": "Small matrices with tiny filled cells",
      "lists": "Simple dashed or bulleted items inside boxes",
      "flow": "Thin arrows connecting elements left-to-right"
    },
    "composition_patterns": {
      "typical_layout": "2-4 main elements arranged horizontally with arrows between",
      "spacing": "Generous gaps between elements",
      "alignment": "Rough but intentional alignment",
      "hierarchy": "Titles above boxes, labels below or beside"
    },
    "proportions": {
      "line_weight_to_space": "Very thin lines in very open space",
      "text_to_diagram": "Text is secondary, diagram dominates",
      "fill_to_empty": "Mostly empty, fills are small accents"
    }
  },
  "elegance_principles": {
    "lightness": "Everything should feel like it could float away",
    "restraint": "Use the minimum to communicate the idea",
    "refinement": "Quality of line over quantity of elements",
    "intelligence": "Looks like a smart person drew it quickly",
    "breathing": "White space is as important as the marks"
  },
  "avoid": [
    "Thick, heavy, bold lines",
    "Chunky PowerPoint-style arrows",
    "Block arrows or 3D arrows",
    "Large solid filled areas",
    "Dense, cluttered layouts",
    "Bold or heavy typography",
    "Drop shadows or gradients",
    "Corporate clip-art aesthetic",
    "Rounded bubble shapes",
    "Any line weight that feels 'heavy'",
    "Pure black (#000000) for lines—use #4A4B4B gray",
    "Decorative elements",
    "Overly complex diagrams"
  ]
}"

<!-- 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": "Steps to build an AI startup by making something people want:\n\n{\n  \"style\": {\n    \"name\": \"Whiteboard Sketch Diagram\",\n    \"description\": \"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\"\n  },\n  \"core_philosophy\": {\n    \"essence\": \"Elegant simplicity—the lightest possible touch that still communicates clearly\",\n    \"mindset\": \"An architect or designer explaining an idea with a fine pen\",\n    \"goal\": \"Clarity through restraint and refinement\"\n  },\n  \"visual_foundation\": {\n    \"canvas_structure\": {\n      \"outer_background\": \"#FFFFFF\",\n      \"card\": {\n        \"size\": \"95-98% of canvas—minimal white margin\",\n        \"color\": \"#FEFEFE\",\n        \"corner_radius\": \"12-16px subtle roundness\",\n        \"shadow\": \"NONE\",\n        \"border\": \"NONE\"\n      }\n    },\n    \"overall_aesthetic\": {\n      \"feel\": \"Light, airy, intellectual, refined\",\n      \"weight\": \"Delicate—everything feels thin and elegant\",\n      \"space\": \"Generous white space everywhere\"\n    }\n  },\n  \"line_work\": {\n    \"critical_principle\": \"THIN AND DELICATE—not bold, not heavy, not chunky\",\n    \"quality\": {\n      \"weight\": \"Fine, thin lines—like a 0.5mm pen or fine-tip marker\",\n      \"character\": \"Architectural, precise but hand-drawn\",\n      \"consistency\": \"Uniform thin weight throughout\"\n    },\n    \"stroke_style\": {\n      \"lines\": \"Thin, clean, slightly imperfect\",\n      \"corners\": \"Sharp or slightly rounded, never bulky\",\n      \"feel\": \"Drawn quickly but skillfully\"\n    }\n  },\n  \"color_palette\": {\n    \"exact_colors\": {\n      \"card_background\": {\n        \"hex\": \"#FEFEFE\",\n        \"description\": \"Almost white, flat, neutral\"\n      },\n      \"primary_text\": {\n        \"hex\": \"#020202\",\n        \"description\": \"Near-black for text—crisp and readable\"\n      },\n      \"line_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for all drawn lines, boxes, shapes—NOT pure black\"\n      },\n      \"accent_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Clear medium blue—for arrows, connectors, brackets, some labels\"\n      },\n      \"accent_red\": {\n        \"hex\": \"#B34952\",\n        \"description\": \"Warm coral-red—for category labels, emphasis text\"\n      },\n      \"fill_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Same blue for small filled squares/shapes\"\n      },\n      \"fill_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for filled grid cells\"\n      }\n    },\n    \"usage\": {\n      \"text\": \"Primary text in #020202 black, categories in #E54B54 red\",\n      \"lines_and_shapes\": \"All outlines in #4A4B4B gray—NOT black\",\n      \"arrows_and_flow\": \"#2C68B7 blue—thin and elegant\",\n      \"fills\": \"Small filled squares in blue or gray—never large solid areas\"\n    }\n  },\n  \"typography\": {\n    \"style\": {\n      \"type\": \"Elegant italic handwriting\",\n      \"weight\": \"Light to medium—never bold or heavy\",\n      \"slant\": \"Natural italic lean\",\n      \"character\": \"Fluid, intelligent, like architect's lettering\"\n    },\n    \"colors\": {\n      \"titles\": \"#020202 black, italic\",\n      \"category_labels\": \"#E54B54 red\",\n      \"annotations\": \"#2C68B7 blue or #020202 black\"\n    }\n  },\n  \"diagram_elements\": {\n    \"boxes_and_rectangles\": {\n      \"stroke\": \"THIN #4A4B4B gray outline—1-2px weight max\",\n      \"fill\": \"Empty/transparent—never solid filled large boxes\",\n      \"corners\": \"Slightly rounded or sharp, hand-drawn\",\n      \"style\": \"Light, airy, not heavy containers\"\n    },\n    \"grids_and_matrices\": {\n      \"stroke\": \"Thin gray lines\",\n      \"cells\": \"Small—may contain small filled squares or numbers\",\n      \"fills\": \"Small squares filled blue or gray to show data\"\n    },\n    \"arrows\": {\n      \"critical\": \"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\",\n      \"stroke\": \"Thin #2C68B7 blue line—same weight as other lines\",\n      \"heads\": \"Small, simple, minimal—just two short angled lines forming a point\",\n      \"style\": \"Like hand-drawn with a fine pen, not a thick marker\",\n      \"types\": [\n        \"Simple thin straight arrows\",\n        \"Thin curved arrows for flow\",\n        \"Never: block arrows, 3D arrows, gradient arrows, thick arrows\"\n      ]\n    },\n    \"brackets\": {\n      \"style\": \"Thin hand-drawn curly braces in blue\",\n      \"weight\": \"Same thin line weight as everything else\"\n    },\n    \"dots_and_markers\": {\n      \"style\": \"Small filled circles or squares\",\n      \"size\": \"Tiny—proportional to the thin line aesthetic\",\n      \"colors\": \"Blue or red for emphasis\"\n    }\n  },\n  \"visual_language\": {\n    \"shapes_vocabulary\": {\n      \"rectangles\": \"Thin outlined boxes—vertical or horizontal orientation\",\n      \"grids\": \"Small matrices with tiny filled cells\",\n      \"lists\": \"Simple dashed or bulleted items inside boxes\",\n      \"flow\": \"Thin arrows connecting elements left-to-right\"\n    },\n    \"composition_patterns\": {\n      \"typical_layout\": \"2-4 main elements arranged horizontally with arrows between\",\n      \"spacing\": \"Generous gaps between elements\",\n      \"alignment\": \"Rough but intentional alignment\",\n      \"hierarchy\": \"Titles above boxes, labels below or beside\"\n    },\n    \"proportions\": {\n      \"line_weight_to_space\": \"Very thin lines in very open space\",\n      \"text_to_diagram\": \"Text is secondary, diagram dominates\",\n      \"fill_to_empty\": \"Mostly empty, fills are small accents\"\n    }\n  },\n  \"elegance_principles\": {\n    \"lightness\": \"Everything should feel like it could float away\",\n    \"restraint\": \"Use the minimum to communicate the idea\",\n    \"refinement\": \"Quality of line over quantity of elements\",\n    \"intelligence\": \"Looks like a smart person drew it quickly\",\n    \"breathing\": \"White space is as important as the marks\"\n  },\n  \"avoid\": [\n    \"Thick, heavy, bold lines\",\n    \"Chunky PowerPoint-style arrows\",\n    \"Block arrows or 3D arrows\",\n    \"Large solid filled areas\",\n    \"Dense, cluttered layouts\",\n    \"Bold or heavy typography\",\n    \"Drop shadows or gradients\",\n    \"Corporate clip-art aesthetic\",\n    \"Rounded bubble shapes\",\n    \"Any line weight that feels 'heavy'\",\n    \"Pure black (#000000) for lines—use #4A4B4B gray\",\n    \"Decorative elements\",\n    \"Overly complex diagrams\"\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": "Steps to build an AI startup by making something people want:\n\n{\n  \"style\": {\n    \"name\": \"Whiteboard Sketch Diagram\",\n    \"description\": \"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\"\n  },\n  \"core_philosophy\": {\n    \"essence\": \"Elegant simplicity—the lightest possible touch that still communicates clearly\",\n    \"mindset\": \"An architect or designer explaining an idea with a fine pen\",\n    \"goal\": \"Clarity through restraint and refinement\"\n  },\n  \"visual_foundation\": {\n    \"canvas_structure\": {\n      \"outer_background\": \"#FFFFFF\",\n      \"card\": {\n        \"size\": \"95-98% of canvas—minimal white margin\",\n        \"color\": \"#FEFEFE\",\n        \"corner_radius\": \"12-16px subtle roundness\",\n        \"shadow\": \"NONE\",\n        \"border\": \"NONE\"\n      }\n    },\n    \"overall_aesthetic\": {\n      \"feel\": \"Light, airy, intellectual, refined\",\n      \"weight\": \"Delicate—everything feels thin and elegant\",\n      \"space\": \"Generous white space everywhere\"\n    }\n  },\n  \"line_work\": {\n    \"critical_principle\": \"THIN AND DELICATE—not bold, not heavy, not chunky\",\n    \"quality\": {\n      \"weight\": \"Fine, thin lines—like a 0.5mm pen or fine-tip marker\",\n      \"character\": \"Architectural, precise but hand-drawn\",\n      \"consistency\": \"Uniform thin weight throughout\"\n    },\n    \"stroke_style\": {\n      \"lines\": \"Thin, clean, slightly imperfect\",\n      \"corners\": \"Sharp or slightly rounded, never bulky\",\n      \"feel\": \"Drawn quickly but skillfully\"\n    }\n  },\n  \"color_palette\": {\n    \"exact_colors\": {\n      \"card_background\": {\n        \"hex\": \"#FEFEFE\",\n        \"description\": \"Almost white, flat, neutral\"\n      },\n      \"primary_text\": {\n        \"hex\": \"#020202\",\n        \"description\": \"Near-black for text—crisp and readable\"\n      },\n      \"line_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for all drawn lines, boxes, shapes—NOT pure black\"\n      },\n      \"accent_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Clear medium blue—for arrows, connectors, brackets, some labels\"\n      },\n      \"accent_red\": {\n        \"hex\": \"#B34952\",\n        \"description\": \"Warm coral-red—for category labels, emphasis text\"\n      },\n      \"fill_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Same blue for small filled squares/shapes\"\n      },\n      \"fill_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for filled grid cells\"\n      }\n    },\n    \"usage\": {\n      \"text\": \"Primary text in #020202 black, categories in #E54B54 red\",\n      \"lines_and_shapes\": \"All outlines in #4A4B4B gray—NOT black\",\n      \"arrows_and_flow\": \"#2C68B7 blue—thin and elegant\",\n      \"fills\": \"Small filled squares in blue or gray—never large solid areas\"\n    }\n  },\n  \"typography\": {\n    \"style\": {\n      \"type\": \"Elegant italic handwriting\",\n      \"weight\": \"Light to medium—never bold or heavy\",\n      \"slant\": \"Natural italic lean\",\n      \"character\": \"Fluid, intelligent, like architect's lettering\"\n    },\n    \"colors\": {\n      \"titles\": \"#020202 black, italic\",\n      \"category_labels\": \"#E54B54 red\",\n      \"annotations\": \"#2C68B7 blue or #020202 black\"\n    }\n  },\n  \"diagram_elements\": {\n    \"boxes_and_rectangles\": {\n      \"stroke\": \"THIN #4A4B4B gray outline—1-2px weight max\",\n      \"fill\": \"Empty/transparent—never solid filled large boxes\",\n      \"corners\": \"Slightly rounded or sharp, hand-drawn\",\n      \"style\": \"Light, airy, not heavy containers\"\n    },\n    \"grids_and_matrices\": {\n      \"stroke\": \"Thin gray lines\",\n      \"cells\": \"Small—may contain small filled squares or numbers\",\n      \"fills\": \"Small squares filled blue or gray to show data\"\n    },\n    \"arrows\": {\n      \"critical\": \"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\",\n      \"stroke\": \"Thin #2C68B7 blue line—same weight as other lines\",\n      \"heads\": \"Small, simple, minimal—just two short angled lines forming a point\",\n      \"style\": \"Like hand-drawn with a fine pen, not a thick marker\",\n      \"types\": [\n        \"Simple thin straight arrows\",\n        \"Thin curved arrows for flow\",\n        \"Never: block arrows, 3D arrows, gradient arrows, thick arrows\"\n      ]\n    },\n    \"brackets\": {\n      \"style\": \"Thin hand-drawn curly braces in blue\",\n      \"weight\": \"Same thin line weight as everything else\"\n    },\n    \"dots_and_markers\": {\n      \"style\": \"Small filled circles or squares\",\n      \"size\": \"Tiny—proportional to the thin line aesthetic\",\n      \"colors\": \"Blue or red for emphasis\"\n    }\n  },\n  \"visual_language\": {\n    \"shapes_vocabulary\": {\n      \"rectangles\": \"Thin outlined boxes—vertical or horizontal orientation\",\n      \"grids\": \"Small matrices with tiny filled cells\",\n      \"lists\": \"Simple dashed or bulleted items inside boxes\",\n      \"flow\": \"Thin arrows connecting elements left-to-right\"\n    },\n    \"composition_patterns\": {\n      \"typical_layout\": \"2-4 main elements arranged horizontally with arrows between\",\n      \"spacing\": \"Generous gaps between elements\",\n      \"alignment\": \"Rough but intentional alignment\",\n      \"hierarchy\": \"Titles above boxes, labels below or beside\"\n    },\n    \"proportions\": {\n      \"line_weight_to_space\": \"Very thin lines in very open space\",\n      \"text_to_diagram\": \"Text is secondary, diagram dominates\",\n      \"fill_to_empty\": \"Mostly empty, fills are small accents\"\n    }\n  },\n  \"elegance_principles\": {\n    \"lightness\": \"Everything should feel like it could float away\",\n    \"restraint\": \"Use the minimum to communicate the idea\",\n    \"refinement\": \"Quality of line over quantity of elements\",\n    \"intelligence\": \"Looks like a smart person drew it quickly\",\n    \"breathing\": \"White space is as important as the marks\"\n  },\n  \"avoid\": [\n    \"Thick, heavy, bold lines\",\n    \"Chunky PowerPoint-style arrows\",\n    \"Block arrows or 3D arrows\",\n    \"Large solid filled areas\",\n    \"Dense, cluttered layouts\",\n    \"Bold or heavy typography\",\n    \"Drop shadows or gradients\",\n    \"Corporate clip-art aesthetic\",\n    \"Rounded bubble shapes\",\n    \"Any line weight that feels 'heavy'\",\n    \"Pure black (#000000) for lines—use #4A4B4B gray\",\n    \"Decorative elements\",\n    \"Overly complex diagrams\"\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\": \"Steps to build an AI startup by making something people want:\\n\\n{\\n  \\\"style\\\": {\\n    \\\"name\\\": \\\"Whiteboard Sketch Diagram\\\",\\n    \\\"description\\\": \\\"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\\\"\\n  },\\n  \\\"core_philosophy\\\": {\\n    \\\"essence\\\": \\\"Elegant simplicity—the lightest possible touch that still communicates clearly\\\",\\n    \\\"mindset\\\": \\\"An architect or designer explaining an idea with a fine pen\\\",\\n    \\\"goal\\\": \\\"Clarity through restraint and refinement\\\"\\n  },\\n  \\\"visual_foundation\\\": {\\n    \\\"canvas_structure\\\": {\\n      \\\"outer_background\\\": \\\"#FFFFFF\\\",\\n      \\\"card\\\": {\\n        \\\"size\\\": \\\"95-98% of canvas—minimal white margin\\\",\\n        \\\"color\\\": \\\"#FEFEFE\\\",\\n        \\\"corner_radius\\\": \\\"12-16px subtle roundness\\\",\\n        \\\"shadow\\\": \\\"NONE\\\",\\n        \\\"border\\\": \\\"NONE\\\"\\n      }\\n    },\\n    \\\"overall_aesthetic\\\": {\\n      \\\"feel\\\": \\\"Light, airy, intellectual, refined\\\",\\n      \\\"weight\\\": \\\"Delicate—everything feels thin and elegant\\\",\\n      \\\"space\\\": \\\"Generous white space everywhere\\\"\\n    }\\n  },\\n  \\\"line_work\\\": {\\n    \\\"critical_principle\\\": \\\"THIN AND DELICATE—not bold, not heavy, not chunky\\\",\\n    \\\"quality\\\": {\\n      \\\"weight\\\": \\\"Fine, thin lines—like a 0.5mm pen or fine-tip marker\\\",\\n      \\\"character\\\": \\\"Architectural, precise but hand-drawn\\\",\\n      \\\"consistency\\\": \\\"Uniform thin weight throughout\\\"\\n    },\\n    \\\"stroke_style\\\": {\\n      \\\"lines\\\": \\\"Thin, clean, slightly imperfect\\\",\\n      \\\"corners\\\": \\\"Sharp or slightly rounded, never bulky\\\",\\n      \\\"feel\\\": \\\"Drawn quickly but skillfully\\\"\\n    }\\n  },\\n  \\\"color_palette\\\": {\\n    \\\"exact_colors\\\": {\\n      \\\"card_background\\\": {\\n        \\\"hex\\\": \\\"#FEFEFE\\\",\\n        \\\"description\\\": \\\"Almost white, flat, neutral\\\"\\n      },\\n      \\\"primary_text\\\": {\\n        \\\"hex\\\": \\\"#020202\\\",\\n        \\\"description\\\": \\\"Near-black for text—crisp and readable\\\"\\n      },\\n      \\\"line_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for all drawn lines, boxes, shapes—NOT pure black\\\"\\n      },\\n      \\\"accent_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Clear medium blue—for arrows, connectors, brackets, some labels\\\"\\n      },\\n      \\\"accent_red\\\": {\\n        \\\"hex\\\": \\\"#B34952\\\",\\n        \\\"description\\\": \\\"Warm coral-red—for category labels, emphasis text\\\"\\n      },\\n      \\\"fill_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Same blue for small filled squares/shapes\\\"\\n      },\\n      \\\"fill_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for filled grid cells\\\"\\n      }\\n    },\\n    \\\"usage\\\": {\\n      \\\"text\\\": \\\"Primary text in #020202 black, categories in #E54B54 red\\\",\\n      \\\"lines_and_shapes\\\": \\\"All outlines in #4A4B4B gray—NOT black\\\",\\n      \\\"arrows_and_flow\\\": \\\"#2C68B7 blue—thin and elegant\\\",\\n      \\\"fills\\\": \\\"Small filled squares in blue or gray—never large solid areas\\\"\\n    }\\n  },\\n  \\\"typography\\\": {\\n    \\\"style\\\": {\\n      \\\"type\\\": \\\"Elegant italic handwriting\\\",\\n      \\\"weight\\\": \\\"Light to medium—never bold or heavy\\\",\\n      \\\"slant\\\": \\\"Natural italic lean\\\",\\n      \\\"character\\\": \\\"Fluid, intelligent, like architect's lettering\\\"\\n    },\\n    \\\"colors\\\": {\\n      \\\"titles\\\": \\\"#020202 black, italic\\\",\\n      \\\"category_labels\\\": \\\"#E54B54 red\\\",\\n      \\\"annotations\\\": \\\"#2C68B7 blue or #020202 black\\\"\\n    }\\n  },\\n  \\\"diagram_elements\\\": {\\n    \\\"boxes_and_rectangles\\\": {\\n      \\\"stroke\\\": \\\"THIN #4A4B4B gray outline—1-2px weight max\\\",\\n      \\\"fill\\\": \\\"Empty/transparent—never solid filled large boxes\\\",\\n      \\\"corners\\\": \\\"Slightly rounded or sharp, hand-drawn\\\",\\n      \\\"style\\\": \\\"Light, airy, not heavy containers\\\"\\n    },\\n    \\\"grids_and_matrices\\\": {\\n      \\\"stroke\\\": \\\"Thin gray lines\\\",\\n      \\\"cells\\\": \\\"Small—may contain small filled squares or numbers\\\",\\n      \\\"fills\\\": \\\"Small squares filled blue or gray to show data\\\"\\n    },\\n    \\\"arrows\\\": {\\n      \\\"critical\\\": \\\"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\\\",\\n      \\\"stroke\\\": \\\"Thin #2C68B7 blue line—same weight as other lines\\\",\\n      \\\"heads\\\": \\\"Small, simple, minimal—just two short angled lines forming a point\\\",\\n      \\\"style\\\": \\\"Like hand-drawn with a fine pen, not a thick marker\\\",\\n      \\\"types\\\": [\\n        \\\"Simple thin straight arrows\\\",\\n        \\\"Thin curved arrows for flow\\\",\\n        \\\"Never: block arrows, 3D arrows, gradient arrows, thick arrows\\\"\\n      ]\\n    },\\n    \\\"brackets\\\": {\\n      \\\"style\\\": \\\"Thin hand-drawn curly braces in blue\\\",\\n      \\\"weight\\\": \\\"Same thin line weight as everything else\\\"\\n    },\\n    \\\"dots_and_markers\\\": {\\n      \\\"style\\\": \\\"Small filled circles or squares\\\",\\n      \\\"size\\\": \\\"Tiny—proportional to the thin line aesthetic\\\",\\n      \\\"colors\\\": \\\"Blue or red for emphasis\\\"\\n    }\\n  },\\n  \\\"visual_language\\\": {\\n    \\\"shapes_vocabulary\\\": {\\n      \\\"rectangles\\\": \\\"Thin outlined boxes—vertical or horizontal orientation\\\",\\n      \\\"grids\\\": \\\"Small matrices with tiny filled cells\\\",\\n      \\\"lists\\\": \\\"Simple dashed or bulleted items inside boxes\\\",\\n      \\\"flow\\\": \\\"Thin arrows connecting elements left-to-right\\\"\\n    },\\n    \\\"composition_patterns\\\": {\\n      \\\"typical_layout\\\": \\\"2-4 main elements arranged horizontally with arrows between\\\",\\n      \\\"spacing\\\": \\\"Generous gaps between elements\\\",\\n      \\\"alignment\\\": \\\"Rough but intentional alignment\\\",\\n      \\\"hierarchy\\\": \\\"Titles above boxes, labels below or beside\\\"\\n    },\\n    \\\"proportions\\\": {\\n      \\\"line_weight_to_space\\\": \\\"Very thin lines in very open space\\\",\\n      \\\"text_to_diagram\\\": \\\"Text is secondary, diagram dominates\\\",\\n      \\\"fill_to_empty\\\": \\\"Mostly empty, fills are small accents\\\"\\n    }\\n  },\\n  \\\"elegance_principles\\\": {\\n    \\\"lightness\\\": \\\"Everything should feel like it could float away\\\",\\n    \\\"restraint\\\": \\\"Use the minimum to communicate the idea\\\",\\n    \\\"refinement\\\": \\\"Quality of line over quantity of elements\\\",\\n    \\\"intelligence\\\": \\\"Looks like a smart person drew it quickly\\\",\\n    \\\"breathing\\\": \\\"White space is as important as the marks\\\"\\n  },\\n  \\\"avoid\\\": [\\n    \\\"Thick, heavy, bold lines\\\",\\n    \\\"Chunky PowerPoint-style arrows\\\",\\n    \\\"Block arrows or 3D arrows\\\",\\n    \\\"Large solid filled areas\\\",\\n    \\\"Dense, cluttered layouts\\\",\\n    \\\"Bold or heavy typography\\\",\\n    \\\"Drop shadows or gradients\\\",\\n    \\\"Corporate clip-art aesthetic\\\",\\n    \\\"Rounded bubble shapes\\\",\\n    \\\"Any line weight that feels 'heavy'\\\",\\n    \\\"Pure black (#000000) for lines—use #4A4B4B gray\\\",\\n    \\\"Decorative elements\\\",\\n    \\\"Overly complex diagrams\\\"\\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\": \"Steps to build an AI startup by making something people want:\\n\\n{\\n  \\\"style\\\": {\\n    \\\"name\\\": \\\"Whiteboard Sketch Diagram\\\",\\n    \\\"description\\\": \\\"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\\\"\\n  },\\n  \\\"core_philosophy\\\": {\\n    \\\"essence\\\": \\\"Elegant simplicity—the lightest possible touch that still communicates clearly\\\",\\n    \\\"mindset\\\": \\\"An architect or designer explaining an idea with a fine pen\\\",\\n    \\\"goal\\\": \\\"Clarity through restraint and refinement\\\"\\n  },\\n  \\\"visual_foundation\\\": {\\n    \\\"canvas_structure\\\": {\\n      \\\"outer_background\\\": \\\"#FFFFFF\\\",\\n      \\\"card\\\": {\\n        \\\"size\\\": \\\"95-98% of canvas—minimal white margin\\\",\\n        \\\"color\\\": \\\"#FEFEFE\\\",\\n        \\\"corner_radius\\\": \\\"12-16px subtle roundness\\\",\\n        \\\"shadow\\\": \\\"NONE\\\",\\n        \\\"border\\\": \\\"NONE\\\"\\n      }\\n    },\\n    \\\"overall_aesthetic\\\": {\\n      \\\"feel\\\": \\\"Light, airy, intellectual, refined\\\",\\n      \\\"weight\\\": \\\"Delicate—everything feels thin and elegant\\\",\\n      \\\"space\\\": \\\"Generous white space everywhere\\\"\\n    }\\n  },\\n  \\\"line_work\\\": {\\n    \\\"critical_principle\\\": \\\"THIN AND DELICATE—not bold, not heavy, not chunky\\\",\\n    \\\"quality\\\": {\\n      \\\"weight\\\": \\\"Fine, thin lines—like a 0.5mm pen or fine-tip marker\\\",\\n      \\\"character\\\": \\\"Architectural, precise but hand-drawn\\\",\\n      \\\"consistency\\\": \\\"Uniform thin weight throughout\\\"\\n    },\\n    \\\"stroke_style\\\": {\\n      \\\"lines\\\": \\\"Thin, clean, slightly imperfect\\\",\\n      \\\"corners\\\": \\\"Sharp or slightly rounded, never bulky\\\",\\n      \\\"feel\\\": \\\"Drawn quickly but skillfully\\\"\\n    }\\n  },\\n  \\\"color_palette\\\": {\\n    \\\"exact_colors\\\": {\\n      \\\"card_background\\\": {\\n        \\\"hex\\\": \\\"#FEFEFE\\\",\\n        \\\"description\\\": \\\"Almost white, flat, neutral\\\"\\n      },\\n      \\\"primary_text\\\": {\\n        \\\"hex\\\": \\\"#020202\\\",\\n        \\\"description\\\": \\\"Near-black for text—crisp and readable\\\"\\n      },\\n      \\\"line_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for all drawn lines, boxes, shapes—NOT pure black\\\"\\n      },\\n      \\\"accent_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Clear medium blue—for arrows, connectors, brackets, some labels\\\"\\n      },\\n      \\\"accent_red\\\": {\\n        \\\"hex\\\": \\\"#B34952\\\",\\n        \\\"description\\\": \\\"Warm coral-red—for category labels, emphasis text\\\"\\n      },\\n      \\\"fill_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Same blue for small filled squares/shapes\\\"\\n      },\\n      \\\"fill_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for filled grid cells\\\"\\n      }\\n    },\\n    \\\"usage\\\": {\\n      \\\"text\\\": \\\"Primary text in #020202 black, categories in #E54B54 red\\\",\\n      \\\"lines_and_shapes\\\": \\\"All outlines in #4A4B4B gray—NOT black\\\",\\n      \\\"arrows_and_flow\\\": \\\"#2C68B7 blue—thin and elegant\\\",\\n      \\\"fills\\\": \\\"Small filled squares in blue or gray—never large solid areas\\\"\\n    }\\n  },\\n  \\\"typography\\\": {\\n    \\\"style\\\": {\\n      \\\"type\\\": \\\"Elegant italic handwriting\\\",\\n      \\\"weight\\\": \\\"Light to medium—never bold or heavy\\\",\\n      \\\"slant\\\": \\\"Natural italic lean\\\",\\n      \\\"character\\\": \\\"Fluid, intelligent, like architect's lettering\\\"\\n    },\\n    \\\"colors\\\": {\\n      \\\"titles\\\": \\\"#020202 black, italic\\\",\\n      \\\"category_labels\\\": \\\"#E54B54 red\\\",\\n      \\\"annotations\\\": \\\"#2C68B7 blue or #020202 black\\\"\\n    }\\n  },\\n  \\\"diagram_elements\\\": {\\n    \\\"boxes_and_rectangles\\\": {\\n      \\\"stroke\\\": \\\"THIN #4A4B4B gray outline—1-2px weight max\\\",\\n      \\\"fill\\\": \\\"Empty/transparent—never solid filled large boxes\\\",\\n      \\\"corners\\\": \\\"Slightly rounded or sharp, hand-drawn\\\",\\n      \\\"style\\\": \\\"Light, airy, not heavy containers\\\"\\n    },\\n    \\\"grids_and_matrices\\\": {\\n      \\\"stroke\\\": \\\"Thin gray lines\\\",\\n      \\\"cells\\\": \\\"Small—may contain small filled squares or numbers\\\",\\n      \\\"fills\\\": \\\"Small squares filled blue or gray to show data\\\"\\n    },\\n    \\\"arrows\\\": {\\n      \\\"critical\\\": \\\"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\\\",\\n      \\\"stroke\\\": \\\"Thin #2C68B7 blue line—same weight as other lines\\\",\\n      \\\"heads\\\": \\\"Small, simple, minimal—just two short angled lines forming a point\\\",\\n      \\\"style\\\": \\\"Like hand-drawn with a fine pen, not a thick marker\\\",\\n      \\\"types\\\": [\\n        \\\"Simple thin straight arrows\\\",\\n        \\\"Thin curved arrows for flow\\\",\\n        \\\"Never: block arrows, 3D arrows, gradient arrows, thick arrows\\\"\\n      ]\\n    },\\n    \\\"brackets\\\": {\\n      \\\"style\\\": \\\"Thin hand-drawn curly braces in blue\\\",\\n      \\\"weight\\\": \\\"Same thin line weight as everything else\\\"\\n    },\\n    \\\"dots_and_markers\\\": {\\n      \\\"style\\\": \\\"Small filled circles or squares\\\",\\n      \\\"size\\\": \\\"Tiny—proportional to the thin line aesthetic\\\",\\n      \\\"colors\\\": \\\"Blue or red for emphasis\\\"\\n    }\\n  },\\n  \\\"visual_language\\\": {\\n    \\\"shapes_vocabulary\\\": {\\n      \\\"rectangles\\\": \\\"Thin outlined boxes—vertical or horizontal orientation\\\",\\n      \\\"grids\\\": \\\"Small matrices with tiny filled cells\\\",\\n      \\\"lists\\\": \\\"Simple dashed or bulleted items inside boxes\\\",\\n      \\\"flow\\\": \\\"Thin arrows connecting elements left-to-right\\\"\\n    },\\n    \\\"composition_patterns\\\": {\\n      \\\"typical_layout\\\": \\\"2-4 main elements arranged horizontally with arrows between\\\",\\n      \\\"spacing\\\": \\\"Generous gaps between elements\\\",\\n      \\\"alignment\\\": \\\"Rough but intentional alignment\\\",\\n      \\\"hierarchy\\\": \\\"Titles above boxes, labels below or beside\\\"\\n    },\\n    \\\"proportions\\\": {\\n      \\\"line_weight_to_space\\\": \\\"Very thin lines in very open space\\\",\\n      \\\"text_to_diagram\\\": \\\"Text is secondary, diagram dominates\\\",\\n      \\\"fill_to_empty\\\": \\\"Mostly empty, fills are small accents\\\"\\n    }\\n  },\\n  \\\"elegance_principles\\\": {\\n    \\\"lightness\\\": \\\"Everything should feel like it could float away\\\",\\n    \\\"restraint\\\": \\\"Use the minimum to communicate the idea\\\",\\n    \\\"refinement\\\": \\\"Quality of line over quantity of elements\\\",\\n    \\\"intelligence\\\": \\\"Looks like a smart person drew it quickly\\\",\\n    \\\"breathing\\\": \\\"White space is as important as the marks\\\"\\n  },\\n  \\\"avoid\\\": [\\n    \\\"Thick, heavy, bold lines\\\",\\n    \\\"Chunky PowerPoint-style arrows\\\",\\n    \\\"Block arrows or 3D arrows\\\",\\n    \\\"Large solid filled areas\\\",\\n    \\\"Dense, cluttered layouts\\\",\\n    \\\"Bold or heavy typography\\\",\\n    \\\"Drop shadows or gradients\\\",\\n    \\\"Corporate clip-art aesthetic\\\",\\n    \\\"Rounded bubble shapes\\\",\\n    \\\"Any line weight that feels 'heavy'\\\",\\n    \\\"Pure black (#000000) for lines—use #4A4B4B gray\\\",\\n    \\\"Decorative elements\\\",\\n    \\\"Overly complex diagrams\\\"\\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\": \"Steps to build an AI startup by making something people want:\\n\\n{\\n  \\\"style\\\": {\\n    \\\"name\\\": \\\"Whiteboard Sketch Diagram\\\",\\n    \\\"description\\\": \\\"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\\\"\\n  },\\n  \\\"core_philosophy\\\": {\\n    \\\"essence\\\": \\\"Elegant simplicity—the lightest possible touch that still communicates clearly\\\",\\n    \\\"mindset\\\": \\\"An architect or designer explaining an idea with a fine pen\\\",\\n    \\\"goal\\\": \\\"Clarity through restraint and refinement\\\"\\n  },\\n  \\\"visual_foundation\\\": {\\n    \\\"canvas_structure\\\": {\\n      \\\"outer_background\\\": \\\"#FFFFFF\\\",\\n      \\\"card\\\": {\\n        \\\"size\\\": \\\"95-98% of canvas—minimal white margin\\\",\\n        \\\"color\\\": \\\"#FEFEFE\\\",\\n        \\\"corner_radius\\\": \\\"12-16px subtle roundness\\\",\\n        \\\"shadow\\\": \\\"NONE\\\",\\n        \\\"border\\\": \\\"NONE\\\"\\n      }\\n    },\\n    \\\"overall_aesthetic\\\": {\\n      \\\"feel\\\": \\\"Light, airy, intellectual, refined\\\",\\n      \\\"weight\\\": \\\"Delicate—everything feels thin and elegant\\\",\\n      \\\"space\\\": \\\"Generous white space everywhere\\\"\\n    }\\n  },\\n  \\\"line_work\\\": {\\n    \\\"critical_principle\\\": \\\"THIN AND DELICATE—not bold, not heavy, not chunky\\\",\\n    \\\"quality\\\": {\\n      \\\"weight\\\": \\\"Fine, thin lines—like a 0.5mm pen or fine-tip marker\\\",\\n      \\\"character\\\": \\\"Architectural, precise but hand-drawn\\\",\\n      \\\"consistency\\\": \\\"Uniform thin weight throughout\\\"\\n    },\\n    \\\"stroke_style\\\": {\\n      \\\"lines\\\": \\\"Thin, clean, slightly imperfect\\\",\\n      \\\"corners\\\": \\\"Sharp or slightly rounded, never bulky\\\",\\n      \\\"feel\\\": \\\"Drawn quickly but skillfully\\\"\\n    }\\n  },\\n  \\\"color_palette\\\": {\\n    \\\"exact_colors\\\": {\\n      \\\"card_background\\\": {\\n        \\\"hex\\\": \\\"#FEFEFE\\\",\\n        \\\"description\\\": \\\"Almost white, flat, neutral\\\"\\n      },\\n      \\\"primary_text\\\": {\\n        \\\"hex\\\": \\\"#020202\\\",\\n        \\\"description\\\": \\\"Near-black for text—crisp and readable\\\"\\n      },\\n      \\\"line_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for all drawn lines, boxes, shapes—NOT pure black\\\"\\n      },\\n      \\\"accent_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Clear medium blue—for arrows, connectors, brackets, some labels\\\"\\n      },\\n      \\\"accent_red\\\": {\\n        \\\"hex\\\": \\\"#B34952\\\",\\n        \\\"description\\\": \\\"Warm coral-red—for category labels, emphasis text\\\"\\n      },\\n      \\\"fill_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Same blue for small filled squares/shapes\\\"\\n      },\\n      \\\"fill_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for filled grid cells\\\"\\n      }\\n    },\\n    \\\"usage\\\": {\\n      \\\"text\\\": \\\"Primary text in #020202 black, categories in #E54B54 red\\\",\\n      \\\"lines_and_shapes\\\": \\\"All outlines in #4A4B4B gray—NOT black\\\",\\n      \\\"arrows_and_flow\\\": \\\"#2C68B7 blue—thin and elegant\\\",\\n      \\\"fills\\\": \\\"Small filled squares in blue or gray—never large solid areas\\\"\\n    }\\n  },\\n  \\\"typography\\\": {\\n    \\\"style\\\": {\\n      \\\"type\\\": \\\"Elegant italic handwriting\\\",\\n      \\\"weight\\\": \\\"Light to medium—never bold or heavy\\\",\\n      \\\"slant\\\": \\\"Natural italic lean\\\",\\n      \\\"character\\\": \\\"Fluid, intelligent, like architect's lettering\\\"\\n    },\\n    \\\"colors\\\": {\\n      \\\"titles\\\": \\\"#020202 black, italic\\\",\\n      \\\"category_labels\\\": \\\"#E54B54 red\\\",\\n      \\\"annotations\\\": \\\"#2C68B7 blue or #020202 black\\\"\\n    }\\n  },\\n  \\\"diagram_elements\\\": {\\n    \\\"boxes_and_rectangles\\\": {\\n      \\\"stroke\\\": \\\"THIN #4A4B4B gray outline—1-2px weight max\\\",\\n      \\\"fill\\\": \\\"Empty/transparent—never solid filled large boxes\\\",\\n      \\\"corners\\\": \\\"Slightly rounded or sharp, hand-drawn\\\",\\n      \\\"style\\\": \\\"Light, airy, not heavy containers\\\"\\n    },\\n    \\\"grids_and_matrices\\\": {\\n      \\\"stroke\\\": \\\"Thin gray lines\\\",\\n      \\\"cells\\\": \\\"Small—may contain small filled squares or numbers\\\",\\n      \\\"fills\\\": \\\"Small squares filled blue or gray to show data\\\"\\n    },\\n    \\\"arrows\\\": {\\n      \\\"critical\\\": \\\"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\\\",\\n      \\\"stroke\\\": \\\"Thin #2C68B7 blue line—same weight as other lines\\\",\\n      \\\"heads\\\": \\\"Small, simple, minimal—just two short angled lines forming a point\\\",\\n      \\\"style\\\": \\\"Like hand-drawn with a fine pen, not a thick marker\\\",\\n      \\\"types\\\": [\\n        \\\"Simple thin straight arrows\\\",\\n        \\\"Thin curved arrows for flow\\\",\\n        \\\"Never: block arrows, 3D arrows, gradient arrows, thick arrows\\\"\\n      ]\\n    },\\n    \\\"brackets\\\": {\\n      \\\"style\\\": \\\"Thin hand-drawn curly braces in blue\\\",\\n      \\\"weight\\\": \\\"Same thin line weight as everything else\\\"\\n    },\\n    \\\"dots_and_markers\\\": {\\n      \\\"style\\\": \\\"Small filled circles or squares\\\",\\n      \\\"size\\\": \\\"Tiny—proportional to the thin line aesthetic\\\",\\n      \\\"colors\\\": \\\"Blue or red for emphasis\\\"\\n    }\\n  },\\n  \\\"visual_language\\\": {\\n    \\\"shapes_vocabulary\\\": {\\n      \\\"rectangles\\\": \\\"Thin outlined boxes—vertical or horizontal orientation\\\",\\n      \\\"grids\\\": \\\"Small matrices with tiny filled cells\\\",\\n      \\\"lists\\\": \\\"Simple dashed or bulleted items inside boxes\\\",\\n      \\\"flow\\\": \\\"Thin arrows connecting elements left-to-right\\\"\\n    },\\n    \\\"composition_patterns\\\": {\\n      \\\"typical_layout\\\": \\\"2-4 main elements arranged horizontally with arrows between\\\",\\n      \\\"spacing\\\": \\\"Generous gaps between elements\\\",\\n      \\\"alignment\\\": \\\"Rough but intentional alignment\\\",\\n      \\\"hierarchy\\\": \\\"Titles above boxes, labels below or beside\\\"\\n    },\\n    \\\"proportions\\\": {\\n      \\\"line_weight_to_space\\\": \\\"Very thin lines in very open space\\\",\\n      \\\"text_to_diagram\\\": \\\"Text is secondary, diagram dominates\\\",\\n      \\\"fill_to_empty\\\": \\\"Mostly empty, fills are small accents\\\"\\n    }\\n  },\\n  \\\"elegance_principles\\\": {\\n    \\\"lightness\\\": \\\"Everything should feel like it could float away\\\",\\n    \\\"restraint\\\": \\\"Use the minimum to communicate the idea\\\",\\n    \\\"refinement\\\": \\\"Quality of line over quantity of elements\\\",\\n    \\\"intelligence\\\": \\\"Looks like a smart person drew it quickly\\\",\\n    \\\"breathing\\\": \\\"White space is as important as the marks\\\"\\n  },\\n  \\\"avoid\\\": [\\n    \\\"Thick, heavy, bold lines\\\",\\n    \\\"Chunky PowerPoint-style arrows\\\",\\n    \\\"Block arrows or 3D arrows\\\",\\n    \\\"Large solid filled areas\\\",\\n    \\\"Dense, cluttered layouts\\\",\\n    \\\"Bold or heavy typography\\\",\\n    \\\"Drop shadows or gradients\\\",\\n    \\\"Corporate clip-art aesthetic\\\",\\n    \\\"Rounded bubble shapes\\\",\\n    \\\"Any line weight that feels 'heavy'\\\",\\n    \\\"Pure black (#000000) for lines—use #4A4B4B gray\\\",\\n    \\\"Decorative elements\\\",\\n    \\\"Overly complex diagrams\\\"\\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\": \"Steps to build an AI startup by making something people want:\\n\\n{\\n  \\\"style\\\": {\\n    \\\"name\\\": \\\"Whiteboard Sketch Diagram\\\",\\n    \\\"description\\\": \\\"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\\\"\\n  },\\n  \\\"core_philosophy\\\": {\\n    \\\"essence\\\": \\\"Elegant simplicity—the lightest possible touch that still communicates clearly\\\",\\n    \\\"mindset\\\": \\\"An architect or designer explaining an idea with a fine pen\\\",\\n    \\\"goal\\\": \\\"Clarity through restraint and refinement\\\"\\n  },\\n  \\\"visual_foundation\\\": {\\n    \\\"canvas_structure\\\": {\\n      \\\"outer_background\\\": \\\"#FFFFFF\\\",\\n      \\\"card\\\": {\\n        \\\"size\\\": \\\"95-98% of canvas—minimal white margin\\\",\\n        \\\"color\\\": \\\"#FEFEFE\\\",\\n        \\\"corner_radius\\\": \\\"12-16px subtle roundness\\\",\\n        \\\"shadow\\\": \\\"NONE\\\",\\n        \\\"border\\\": \\\"NONE\\\"\\n      }\\n    },\\n    \\\"overall_aesthetic\\\": {\\n      \\\"feel\\\": \\\"Light, airy, intellectual, refined\\\",\\n      \\\"weight\\\": \\\"Delicate—everything feels thin and elegant\\\",\\n      \\\"space\\\": \\\"Generous white space everywhere\\\"\\n    }\\n  },\\n  \\\"line_work\\\": {\\n    \\\"critical_principle\\\": \\\"THIN AND DELICATE—not bold, not heavy, not chunky\\\",\\n    \\\"quality\\\": {\\n      \\\"weight\\\": \\\"Fine, thin lines—like a 0.5mm pen or fine-tip marker\\\",\\n      \\\"character\\\": \\\"Architectural, precise but hand-drawn\\\",\\n      \\\"consistency\\\": \\\"Uniform thin weight throughout\\\"\\n    },\\n    \\\"stroke_style\\\": {\\n      \\\"lines\\\": \\\"Thin, clean, slightly imperfect\\\",\\n      \\\"corners\\\": \\\"Sharp or slightly rounded, never bulky\\\",\\n      \\\"feel\\\": \\\"Drawn quickly but skillfully\\\"\\n    }\\n  },\\n  \\\"color_palette\\\": {\\n    \\\"exact_colors\\\": {\\n      \\\"card_background\\\": {\\n        \\\"hex\\\": \\\"#FEFEFE\\\",\\n        \\\"description\\\": \\\"Almost white, flat, neutral\\\"\\n      },\\n      \\\"primary_text\\\": {\\n        \\\"hex\\\": \\\"#020202\\\",\\n        \\\"description\\\": \\\"Near-black for text—crisp and readable\\\"\\n      },\\n      \\\"line_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for all drawn lines, boxes, shapes—NOT pure black\\\"\\n      },\\n      \\\"accent_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Clear medium blue—for arrows, connectors, brackets, some labels\\\"\\n      },\\n      \\\"accent_red\\\": {\\n        \\\"hex\\\": \\\"#B34952\\\",\\n        \\\"description\\\": \\\"Warm coral-red—for category labels, emphasis text\\\"\\n      },\\n      \\\"fill_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Same blue for small filled squares/shapes\\\"\\n      },\\n      \\\"fill_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for filled grid cells\\\"\\n      }\\n    },\\n    \\\"usage\\\": {\\n      \\\"text\\\": \\\"Primary text in #020202 black, categories in #E54B54 red\\\",\\n      \\\"lines_and_shapes\\\": \\\"All outlines in #4A4B4B gray—NOT black\\\",\\n      \\\"arrows_and_flow\\\": \\\"#2C68B7 blue—thin and elegant\\\",\\n      \\\"fills\\\": \\\"Small filled squares in blue or gray—never large solid areas\\\"\\n    }\\n  },\\n  \\\"typography\\\": {\\n    \\\"style\\\": {\\n      \\\"type\\\": \\\"Elegant italic handwriting\\\",\\n      \\\"weight\\\": \\\"Light to medium—never bold or heavy\\\",\\n      \\\"slant\\\": \\\"Natural italic lean\\\",\\n      \\\"character\\\": \\\"Fluid, intelligent, like architect's lettering\\\"\\n    },\\n    \\\"colors\\\": {\\n      \\\"titles\\\": \\\"#020202 black, italic\\\",\\n      \\\"category_labels\\\": \\\"#E54B54 red\\\",\\n      \\\"annotations\\\": \\\"#2C68B7 blue or #020202 black\\\"\\n    }\\n  },\\n  \\\"diagram_elements\\\": {\\n    \\\"boxes_and_rectangles\\\": {\\n      \\\"stroke\\\": \\\"THIN #4A4B4B gray outline—1-2px weight max\\\",\\n      \\\"fill\\\": \\\"Empty/transparent—never solid filled large boxes\\\",\\n      \\\"corners\\\": \\\"Slightly rounded or sharp, hand-drawn\\\",\\n      \\\"style\\\": \\\"Light, airy, not heavy containers\\\"\\n    },\\n    \\\"grids_and_matrices\\\": {\\n      \\\"stroke\\\": \\\"Thin gray lines\\\",\\n      \\\"cells\\\": \\\"Small—may contain small filled squares or numbers\\\",\\n      \\\"fills\\\": \\\"Small squares filled blue or gray to show data\\\"\\n    },\\n    \\\"arrows\\\": {\\n      \\\"critical\\\": \\\"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\\\",\\n      \\\"stroke\\\": \\\"Thin #2C68B7 blue line—same weight as other lines\\\",\\n      \\\"heads\\\": \\\"Small, simple, minimal—just two short angled lines forming a point\\\",\\n      \\\"style\\\": \\\"Like hand-drawn with a fine pen, not a thick marker\\\",\\n      \\\"types\\\": [\\n        \\\"Simple thin straight arrows\\\",\\n        \\\"Thin curved arrows for flow\\\",\\n        \\\"Never: block arrows, 3D arrows, gradient arrows, thick arrows\\\"\\n      ]\\n    },\\n    \\\"brackets\\\": {\\n      \\\"style\\\": \\\"Thin hand-drawn curly braces in blue\\\",\\n      \\\"weight\\\": \\\"Same thin line weight as everything else\\\"\\n    },\\n    \\\"dots_and_markers\\\": {\\n      \\\"style\\\": \\\"Small filled circles or squares\\\",\\n      \\\"size\\\": \\\"Tiny—proportional to the thin line aesthetic\\\",\\n      \\\"colors\\\": \\\"Blue or red for emphasis\\\"\\n    }\\n  },\\n  \\\"visual_language\\\": {\\n    \\\"shapes_vocabulary\\\": {\\n      \\\"rectangles\\\": \\\"Thin outlined boxes—vertical or horizontal orientation\\\",\\n      \\\"grids\\\": \\\"Small matrices with tiny filled cells\\\",\\n      \\\"lists\\\": \\\"Simple dashed or bulleted items inside boxes\\\",\\n      \\\"flow\\\": \\\"Thin arrows connecting elements left-to-right\\\"\\n    },\\n    \\\"composition_patterns\\\": {\\n      \\\"typical_layout\\\": \\\"2-4 main elements arranged horizontally with arrows between\\\",\\n      \\\"spacing\\\": \\\"Generous gaps between elements\\\",\\n      \\\"alignment\\\": \\\"Rough but intentional alignment\\\",\\n      \\\"hierarchy\\\": \\\"Titles above boxes, labels below or beside\\\"\\n    },\\n    \\\"proportions\\\": {\\n      \\\"line_weight_to_space\\\": \\\"Very thin lines in very open space\\\",\\n      \\\"text_to_diagram\\\": \\\"Text is secondary, diagram dominates\\\",\\n      \\\"fill_to_empty\\\": \\\"Mostly empty, fills are small accents\\\"\\n    }\\n  },\\n  \\\"elegance_principles\\\": {\\n    \\\"lightness\\\": \\\"Everything should feel like it could float away\\\",\\n    \\\"restraint\\\": \\\"Use the minimum to communicate the idea\\\",\\n    \\\"refinement\\\": \\\"Quality of line over quantity of elements\\\",\\n    \\\"intelligence\\\": \\\"Looks like a smart person drew it quickly\\\",\\n    \\\"breathing\\\": \\\"White space is as important as the marks\\\"\\n  },\\n  \\\"avoid\\\": [\\n    \\\"Thick, heavy, bold lines\\\",\\n    \\\"Chunky PowerPoint-style arrows\\\",\\n    \\\"Block arrows or 3D arrows\\\",\\n    \\\"Large solid filled areas\\\",\\n    \\\"Dense, cluttered layouts\\\",\\n    \\\"Bold or heavy typography\\\",\\n    \\\"Drop shadows or gradients\\\",\\n    \\\"Corporate clip-art aesthetic\\\",\\n    \\\"Rounded bubble shapes\\\",\\n    \\\"Any line weight that feels 'heavy'\\\",\\n    \\\"Pure black (#000000) for lines—use #4A4B4B gray\\\",\\n    \\\"Decorative elements\\\",\\n    \\\"Overly complex diagrams\\\"\\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\":\"Steps to build an AI startup by making something people want:\\n\\n{\\n  \\\"style\\\": {\\n    \\\"name\\\": \\\"Whiteboard Sketch Diagram\\\",\\n    \\\"description\\\": \\\"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\\\"\\n  },\\n  \\\"core_philosophy\\\": {\\n    \\\"essence\\\": \\\"Elegant simplicity—the lightest possible touch that still communicates clearly\\\",\\n    \\\"mindset\\\": \\\"An architect or designer explaining an idea with a fine pen\\\",\\n    \\\"goal\\\": \\\"Clarity through restraint and refinement\\\"\\n  },\\n  \\\"visual_foundation\\\": {\\n    \\\"canvas_structure\\\": {\\n      \\\"outer_background\\\": \\\"#FFFFFF\\\",\\n      \\\"card\\\": {\\n        \\\"size\\\": \\\"95-98% of canvas—minimal white margin\\\",\\n        \\\"color\\\": \\\"#FEFEFE\\\",\\n        \\\"corner_radius\\\": \\\"12-16px subtle roundness\\\",\\n        \\\"shadow\\\": \\\"NONE\\\",\\n        \\\"border\\\": \\\"NONE\\\"\\n      }\\n    },\\n    \\\"overall_aesthetic\\\": {\\n      \\\"feel\\\": \\\"Light, airy, intellectual, refined\\\",\\n      \\\"weight\\\": \\\"Delicate—everything feels thin and elegant\\\",\\n      \\\"space\\\": \\\"Generous white space everywhere\\\"\\n    }\\n  },\\n  \\\"line_work\\\": {\\n    \\\"critical_principle\\\": \\\"THIN AND DELICATE—not bold, not heavy, not chunky\\\",\\n    \\\"quality\\\": {\\n      \\\"weight\\\": \\\"Fine, thin lines—like a 0.5mm pen or fine-tip marker\\\",\\n      \\\"character\\\": \\\"Architectural, precise but hand-drawn\\\",\\n      \\\"consistency\\\": \\\"Uniform thin weight throughout\\\"\\n    },\\n    \\\"stroke_style\\\": {\\n      \\\"lines\\\": \\\"Thin, clean, slightly imperfect\\\",\\n      \\\"corners\\\": \\\"Sharp or slightly rounded, never bulky\\\",\\n      \\\"feel\\\": \\\"Drawn quickly but skillfully\\\"\\n    }\\n  },\\n  \\\"color_palette\\\": {\\n    \\\"exact_colors\\\": {\\n      \\\"card_background\\\": {\\n        \\\"hex\\\": \\\"#FEFEFE\\\",\\n        \\\"description\\\": \\\"Almost white, flat, neutral\\\"\\n      },\\n      \\\"primary_text\\\": {\\n        \\\"hex\\\": \\\"#020202\\\",\\n        \\\"description\\\": \\\"Near-black for text—crisp and readable\\\"\\n      },\\n      \\\"line_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for all drawn lines, boxes, shapes—NOT pure black\\\"\\n      },\\n      \\\"accent_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Clear medium blue—for arrows, connectors, brackets, some labels\\\"\\n      },\\n      \\\"accent_red\\\": {\\n        \\\"hex\\\": \\\"#B34952\\\",\\n        \\\"description\\\": \\\"Warm coral-red—for category labels, emphasis text\\\"\\n      },\\n      \\\"fill_blue\\\": {\\n        \\\"hex\\\": \\\"#2C68B7\\\",\\n        \\\"description\\\": \\\"Same blue for small filled squares/shapes\\\"\\n      },\\n      \\\"fill_gray\\\": {\\n        \\\"hex\\\": \\\"#4A4B4B\\\",\\n        \\\"description\\\": \\\"Dark gray for filled grid cells\\\"\\n      }\\n    },\\n    \\\"usage\\\": {\\n      \\\"text\\\": \\\"Primary text in #020202 black, categories in #E54B54 red\\\",\\n      \\\"lines_and_shapes\\\": \\\"All outlines in #4A4B4B gray—NOT black\\\",\\n      \\\"arrows_and_flow\\\": \\\"#2C68B7 blue—thin and elegant\\\",\\n      \\\"fills\\\": \\\"Small filled squares in blue or gray—never large solid areas\\\"\\n    }\\n  },\\n  \\\"typography\\\": {\\n    \\\"style\\\": {\\n      \\\"type\\\": \\\"Elegant italic handwriting\\\",\\n      \\\"weight\\\": \\\"Light to medium—never bold or heavy\\\",\\n      \\\"slant\\\": \\\"Natural italic lean\\\",\\n      \\\"character\\\": \\\"Fluid, intelligent, like architect's lettering\\\"\\n    },\\n    \\\"colors\\\": {\\n      \\\"titles\\\": \\\"#020202 black, italic\\\",\\n      \\\"category_labels\\\": \\\"#E54B54 red\\\",\\n      \\\"annotations\\\": \\\"#2C68B7 blue or #020202 black\\\"\\n    }\\n  },\\n  \\\"diagram_elements\\\": {\\n    \\\"boxes_and_rectangles\\\": {\\n      \\\"stroke\\\": \\\"THIN #4A4B4B gray outline—1-2px weight max\\\",\\n      \\\"fill\\\": \\\"Empty/transparent—never solid filled large boxes\\\",\\n      \\\"corners\\\": \\\"Slightly rounded or sharp, hand-drawn\\\",\\n      \\\"style\\\": \\\"Light, airy, not heavy containers\\\"\\n    },\\n    \\\"grids_and_matrices\\\": {\\n      \\\"stroke\\\": \\\"Thin gray lines\\\",\\n      \\\"cells\\\": \\\"Small—may contain small filled squares or numbers\\\",\\n      \\\"fills\\\": \\\"Small squares filled blue or gray to show data\\\"\\n    },\\n    \\\"arrows\\\": {\\n      \\\"critical\\\": \\\"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\\\",\\n      \\\"stroke\\\": \\\"Thin #2C68B7 blue line—same weight as other lines\\\",\\n      \\\"heads\\\": \\\"Small, simple, minimal—just two short angled lines forming a point\\\",\\n      \\\"style\\\": \\\"Like hand-drawn with a fine pen, not a thick marker\\\",\\n      \\\"types\\\": [\\n        \\\"Simple thin straight arrows\\\",\\n        \\\"Thin curved arrows for flow\\\",\\n        \\\"Never: block arrows, 3D arrows, gradient arrows, thick arrows\\\"\\n      ]\\n    },\\n    \\\"brackets\\\": {\\n      \\\"style\\\": \\\"Thin hand-drawn curly braces in blue\\\",\\n      \\\"weight\\\": \\\"Same thin line weight as everything else\\\"\\n    },\\n    \\\"dots_and_markers\\\": {\\n      \\\"style\\\": \\\"Small filled circles or squares\\\",\\n      \\\"size\\\": \\\"Tiny—proportional to the thin line aesthetic\\\",\\n      \\\"colors\\\": \\\"Blue or red for emphasis\\\"\\n    }\\n  },\\n  \\\"visual_language\\\": {\\n    \\\"shapes_vocabulary\\\": {\\n      \\\"rectangles\\\": \\\"Thin outlined boxes—vertical or horizontal orientation\\\",\\n      \\\"grids\\\": \\\"Small matrices with tiny filled cells\\\",\\n      \\\"lists\\\": \\\"Simple dashed or bulleted items inside boxes\\\",\\n      \\\"flow\\\": \\\"Thin arrows connecting elements left-to-right\\\"\\n    },\\n    \\\"composition_patterns\\\": {\\n      \\\"typical_layout\\\": \\\"2-4 main elements arranged horizontally with arrows between\\\",\\n      \\\"spacing\\\": \\\"Generous gaps between elements\\\",\\n      \\\"alignment\\\": \\\"Rough but intentional alignment\\\",\\n      \\\"hierarchy\\\": \\\"Titles above boxes, labels below or beside\\\"\\n    },\\n    \\\"proportions\\\": {\\n      \\\"line_weight_to_space\\\": \\\"Very thin lines in very open space\\\",\\n      \\\"text_to_diagram\\\": \\\"Text is secondary, diagram dominates\\\",\\n      \\\"fill_to_empty\\\": \\\"Mostly empty, fills are small accents\\\"\\n    }\\n  },\\n  \\\"elegance_principles\\\": {\\n    \\\"lightness\\\": \\\"Everything should feel like it could float away\\\",\\n    \\\"restraint\\\": \\\"Use the minimum to communicate the idea\\\",\\n    \\\"refinement\\\": \\\"Quality of line over quantity of elements\\\",\\n    \\\"intelligence\\\": \\\"Looks like a smart person drew it quickly\\\",\\n    \\\"breathing\\\": \\\"White space is as important as the marks\\\"\\n  },\\n  \\\"avoid\\\": [\\n    \\\"Thick, heavy, bold lines\\\",\\n    \\\"Chunky PowerPoint-style arrows\\\",\\n    \\\"Block arrows or 3D arrows\\\",\\n    \\\"Large solid filled areas\\\",\\n    \\\"Dense, cluttered layouts\\\",\\n    \\\"Bold or heavy typography\\\",\\n    \\\"Drop shadows or gradients\\\",\\n    \\\"Corporate clip-art aesthetic\\\",\\n    \\\"Rounded bubble shapes\\\",\\n    \\\"Any line weight that feels 'heavy'\\\",\\n    \\\"Pure black (#000000) for lines—use #4A4B4B gray\\\",\\n    \\\"Decorative elements\\\",\\n    \\\"Overly complex diagrams\\\"\\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 "Steps to build an AI startup by making something people want:\n\n{\n  \"style\": {\n    \"name\": \"Whiteboard Sketch Diagram\",\n    \"description\": \"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\"\n  },\n  \"core_philosophy\": {\n    \"essence\": \"Elegant simplicity—the lightest possible touch that still communicates clearly\",\n    \"mindset\": \"An architect or designer explaining an idea with a fine pen\",\n    \"goal\": \"Clarity through restraint and refinement\"\n  },\n  \"visual_foundation\": {\n    \"canvas_structure\": {\n      \"outer_background\": \"#FFFFFF\",\n      \"card\": {\n        \"size\": \"95-98% of canvas—minimal white margin\",\n        \"color\": \"#FEFEFE\",\n        \"corner_radius\": \"12-16px subtle roundness\",\n        \"shadow\": \"NONE\",\n        \"border\": \"NONE\"\n      }\n    },\n    \"overall_aesthetic\": {\n      \"feel\": \"Light, airy, intellectual, refined\",\n      \"weight\": \"Delicate—everything feels thin and elegant\",\n      \"space\": \"Generous white space everywhere\"\n    }\n  },\n  \"line_work\": {\n    \"critical_principle\": \"THIN AND DELICATE—not bold, not heavy, not chunky\",\n    \"quality\": {\n      \"weight\": \"Fine, thin lines—like a 0.5mm pen or fine-tip marker\",\n      \"character\": \"Architectural, precise but hand-drawn\",\n      \"consistency\": \"Uniform thin weight throughout\"\n    },\n    \"stroke_style\": {\n      \"lines\": \"Thin, clean, slightly imperfect\",\n      \"corners\": \"Sharp or slightly rounded, never bulky\",\n      \"feel\": \"Drawn quickly but skillfully\"\n    }\n  },\n  \"color_palette\": {\n    \"exact_colors\": {\n      \"card_background\": {\n        \"hex\": \"#FEFEFE\",\n        \"description\": \"Almost white, flat, neutral\"\n      },\n      \"primary_text\": {\n        \"hex\": \"#020202\",\n        \"description\": \"Near-black for text—crisp and readable\"\n      },\n      \"line_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for all drawn lines, boxes, shapes—NOT pure black\"\n      },\n      \"accent_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Clear medium blue—for arrows, connectors, brackets, some labels\"\n      },\n      \"accent_red\": {\n        \"hex\": \"#B34952\",\n        \"description\": \"Warm coral-red—for category labels, emphasis text\"\n      },\n      \"fill_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Same blue for small filled squares/shapes\"\n      },\n      \"fill_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for filled grid cells\"\n      }\n    },\n    \"usage\": {\n      \"text\": \"Primary text in #020202 black, categories in #E54B54 red\",\n      \"lines_and_shapes\": \"All outlines in #4A4B4B gray—NOT black\",\n      \"arrows_and_flow\": \"#2C68B7 blue—thin and elegant\",\n      \"fills\": \"Small filled squares in blue or gray—never large solid areas\"\n    }\n  },\n  \"typography\": {\n    \"style\": {\n      \"type\": \"Elegant italic handwriting\",\n      \"weight\": \"Light to medium—never bold or heavy\",\n      \"slant\": \"Natural italic lean\",\n      \"character\": \"Fluid, intelligent, like architect's lettering\"\n    },\n    \"colors\": {\n      \"titles\": \"#020202 black, italic\",\n      \"category_labels\": \"#E54B54 red\",\n      \"annotations\": \"#2C68B7 blue or #020202 black\"\n    }\n  },\n  \"diagram_elements\": {\n    \"boxes_and_rectangles\": {\n      \"stroke\": \"THIN #4A4B4B gray outline—1-2px weight max\",\n      \"fill\": \"Empty/transparent—never solid filled large boxes\",\n      \"corners\": \"Slightly rounded or sharp, hand-drawn\",\n      \"style\": \"Light, airy, not heavy containers\"\n    },\n    \"grids_and_matrices\": {\n      \"stroke\": \"Thin gray lines\",\n      \"cells\": \"Small—may contain small filled squares or numbers\",\n      \"fills\": \"Small squares filled blue or gray to show data\"\n    },\n    \"arrows\": {\n      \"critical\": \"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\",\n      \"stroke\": \"Thin #2C68B7 blue line—same weight as other lines\",\n      \"heads\": \"Small, simple, minimal—just two short angled lines forming a point\",\n      \"style\": \"Like hand-drawn with a fine pen, not a thick marker\",\n      \"types\": [\n        \"Simple thin straight arrows\",\n        \"Thin curved arrows for flow\",\n        \"Never: block arrows, 3D arrows, gradient arrows, thick arrows\"\n      ]\n    },\n    \"brackets\": {\n      \"style\": \"Thin hand-drawn curly braces in blue\",\n      \"weight\": \"Same thin line weight as everything else\"\n    },\n    \"dots_and_markers\": {\n      \"style\": \"Small filled circles or squares\",\n      \"size\": \"Tiny—proportional to the thin line aesthetic\",\n      \"colors\": \"Blue or red for emphasis\"\n    }\n  },\n  \"visual_language\": {\n    \"shapes_vocabulary\": {\n      \"rectangles\": \"Thin outlined boxes—vertical or horizontal orientation\",\n      \"grids\": \"Small matrices with tiny filled cells\",\n      \"lists\": \"Simple dashed or bulleted items inside boxes\",\n      \"flow\": \"Thin arrows connecting elements left-to-right\"\n    },\n    \"composition_patterns\": {\n      \"typical_layout\": \"2-4 main elements arranged horizontally with arrows between\",\n      \"spacing\": \"Generous gaps between elements\",\n      \"alignment\": \"Rough but intentional alignment\",\n      \"hierarchy\": \"Titles above boxes, labels below or beside\"\n    },\n    \"proportions\": {\n      \"line_weight_to_space\": \"Very thin lines in very open space\",\n      \"text_to_diagram\": \"Text is secondary, diagram dominates\",\n      \"fill_to_empty\": \"Mostly empty, fills are small accents\"\n    }\n  },\n  \"elegance_principles\": {\n    \"lightness\": \"Everything should feel like it could float away\",\n    \"restraint\": \"Use the minimum to communicate the idea\",\n    \"refinement\": \"Quality of line over quantity of elements\",\n    \"intelligence\": \"Looks like a smart person drew it quickly\",\n    \"breathing\": \"White space is as important as the marks\"\n  },\n  \"avoid\": [\n    \"Thick, heavy, bold lines\",\n    \"Chunky PowerPoint-style arrows\",\n    \"Block arrows or 3D arrows\",\n    \"Large solid filled areas\",\n    \"Dense, cluttered layouts\",\n    \"Bold or heavy typography\",\n    \"Drop shadows or gradients\",\n    \"Corporate clip-art aesthetic\",\n    \"Rounded bubble shapes\",\n    \"Any line weight that feels 'heavy'\",\n    \"Pure black (#000000) for lines—use #4A4B4B gray\",\n    \"Decorative elements\",\n    \"Overly complex diagrams\"\n  ]\n}" \
    --wait
```

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

## More prompts like this

- [日系 Chibi 互动小插画](https://runapi.ai/prompts/prm_kmRYo59JDRL7H9pM4Xd72QnB.md) — `gpt-image-2`
- [动漫动作短片设定分镜板](https://runapi.ai/prompts/prm_W0Z7vkad4vKWcgBayqKpJrxg.md) — `gpt-image-2`
- [Photo to Split Editorial Poster: Realistic Photo Above, Hand-Painted Illustration Below (4:5)](https://runapi.ai/prompts/prm_vxONpLV7DlBqupxe4zd1mWMb.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": "Whiteboard Diagrams",
        "item": "https://runapi.ai/prompts/prm_d5kZmwXB42QYTZkJ8bEzRNlV"
      }
    ]
  },
  {
    "@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": "Whiteboard Diagrams",
    "text": "Steps to build an AI startup by making something people want:\n\n{\n  \"style\": {\n    \"name\": \"Whiteboard Sketch Diagram\",\n    \"description\": \"Transform any concept into an elegant hand-drawn diagram. Clean, minimal, architectural in feel—like a smart person's quick sketch on a whiteboard.\"\n  },\n  \"core_philosophy\": {\n    \"essence\": \"Elegant simplicity—the lightest possible touch that still communicates clearly\",\n    \"mindset\": \"An architect or designer explaining an idea with a fine pen\",\n    \"goal\": \"Clarity through restraint and refinement\"\n  },\n  \"visual_foundation\": {\n    \"canvas_structure\": {\n      \"outer_background\": \"#FFFFFF\",\n      \"card\": {\n        \"size\": \"95-98% of canvas—minimal white margin\",\n        \"color\": \"#FEFEFE\",\n        \"corner_radius\": \"12-16px subtle roundness\",\n        \"shadow\": \"NONE\",\n        \"border\": \"NONE\"\n      }\n    },\n    \"overall_aesthetic\": {\n      \"feel\": \"Light, airy, intellectual, refined\",\n      \"weight\": \"Delicate—everything feels thin and elegant\",\n      \"space\": \"Generous white space everywhere\"\n    }\n  },\n  \"line_work\": {\n    \"critical_principle\": \"THIN AND DELICATE—not bold, not heavy, not chunky\",\n    \"quality\": {\n      \"weight\": \"Fine, thin lines—like a 0.5mm pen or fine-tip marker\",\n      \"character\": \"Architectural, precise but hand-drawn\",\n      \"consistency\": \"Uniform thin weight throughout\"\n    },\n    \"stroke_style\": {\n      \"lines\": \"Thin, clean, slightly imperfect\",\n      \"corners\": \"Sharp or slightly rounded, never bulky\",\n      \"feel\": \"Drawn quickly but skillfully\"\n    }\n  },\n  \"color_palette\": {\n    \"exact_colors\": {\n      \"card_background\": {\n        \"hex\": \"#FEFEFE\",\n        \"description\": \"Almost white, flat, neutral\"\n      },\n      \"primary_text\": {\n        \"hex\": \"#020202\",\n        \"description\": \"Near-black for text—crisp and readable\"\n      },\n      \"line_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for all drawn lines, boxes, shapes—NOT pure black\"\n      },\n      \"accent_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Clear medium blue—for arrows, connectors, brackets, some labels\"\n      },\n      \"accent_red\": {\n        \"hex\": \"#B34952\",\n        \"description\": \"Warm coral-red—for category labels, emphasis text\"\n      },\n      \"fill_blue\": {\n        \"hex\": \"#2C68B7\",\n        \"description\": \"Same blue for small filled squares/shapes\"\n      },\n      \"fill_gray\": {\n        \"hex\": \"#4A4B4B\",\n        \"description\": \"Dark gray for filled grid cells\"\n      }\n    },\n    \"usage\": {\n      \"text\": \"Primary text in #020202 black, categories in #E54B54 red\",\n      \"lines_and_shapes\": \"All outlines in #4A4B4B gray—NOT black\",\n      \"arrows_and_flow\": \"#2C68B7 blue—thin and elegant\",\n      \"fills\": \"Small filled squares in blue or gray—never large solid areas\"\n    }\n  },\n  \"typography\": {\n    \"style\": {\n      \"type\": \"Elegant italic handwriting\",\n      \"weight\": \"Light to medium—never bold or heavy\",\n      \"slant\": \"Natural italic lean\",\n      \"character\": \"Fluid, intelligent, like architect's lettering\"\n    },\n    \"colors\": {\n      \"titles\": \"#020202 black, italic\",\n      \"category_labels\": \"#E54B54 red\",\n      \"annotations\": \"#2C68B7 blue or #020202 black\"\n    }\n  },\n  \"diagram_elements\": {\n    \"boxes_and_rectangles\": {\n      \"stroke\": \"THIN #4A4B4B gray outline—1-2px weight max\",\n      \"fill\": \"Empty/transparent—never solid filled large boxes\",\n      \"corners\": \"Slightly rounded or sharp, hand-drawn\",\n      \"style\": \"Light, airy, not heavy containers\"\n    },\n    \"grids_and_matrices\": {\n      \"stroke\": \"Thin gray lines\",\n      \"cells\": \"Small—may contain small filled squares or numbers\",\n      \"fills\": \"Small squares filled blue or gray to show data\"\n    },\n    \"arrows\": {\n      \"critical\": \"THIN, ELEGANT, SIMPLE—not chunky PowerPoint arrows\",\n      \"stroke\": \"Thin #2C68B7 blue line—same weight as other lines\",\n      \"heads\": \"Small, simple, minimal—just two short angled lines forming a point\",\n      \"style\": \"Like hand-drawn with a fine pen, not a thick marker\",\n      \"types\": [\n        \"Simple thin straight arrows\",\n        \"Thin curved arrows for flow\",\n        \"Never: block arrows, 3D arrows, gradient arrows, thick arrows\"\n      ]\n    },\n    \"brackets\": {\n      \"style\": \"Thin hand-drawn curly braces in blue\",\n      \"weight\": \"Same thin line weight as everything else\"\n    },\n    \"dots_and_markers\": {\n      \"style\": \"Small filled circles or squares\",\n      \"size\": \"Tiny—proportional to the thin line aesthetic\",\n      \"colors\": \"Blue or red for emphasis\"\n    }\n  },\n  \"visual_language\": {\n    \"shapes_vocabulary\": {\n      \"rectangles\": \"Thin outlined boxes—vertical or horizontal orientation\",\n      \"grids\": \"Small matrices with tiny filled cells\",\n      \"lists\": \"Simple dashed or bulleted items inside boxes\",\n      \"flow\": \"Thin arrows connecting elements left-to-right\"\n    },\n    \"composition_patterns\": {\n      \"typical_layout\": \"2-4 main elements arranged horizontally with arrows between\",\n      \"spacing\": \"Generous gaps between elements\",\n      \"alignment\": \"Rough but intentional alignment\",\n      \"hierarchy\": \"Titles above boxes, labels below or beside\"\n    },\n    \"proportions\": {\n      \"line_weight_to_space\": \"Very thin lines in very open space\",\n      \"text_to_diagram\": \"Text is secondary, diagram dominates\",\n      \"fill_to_empty\": \"Mostly empty, fills are small accents\"\n    }\n  },\n  \"elegance_principles\": {\n    \"lightness\": \"Everything should feel like it could float away\",\n    \"restraint\": \"Use the minimum to communicate the idea\",\n    \"refinement\": \"Quality of line over quantity of elements\",\n    \"intelligence\": \"Looks like a smart person drew it quickly\",\n    \"breathing\": \"White space is as important as the marks\"\n  },\n  \"avoid\": [\n    \"Thick, heavy, bold lines\",\n    \"Chunky PowerPoint-style arrows\",\n    \"Block arrows or 3D arrows\",\n    \"Large solid filled areas\",\n    \"Dense, cluttered layouts\",\n    \"Bold or heavy typography\",\n    \"Drop shadows or gradients\",\n    \"Corporate clip-art aesthetic\",\n    \"Rounded bubble shapes\",\n    \"Any line weight that feels 'heavy'\",\n    \"Pure black (#000000) for lines—use #4A4B4B gray\",\n    \"Decorative elements\",\n    \"Overly complex diagrams\"\n  ]\n}",
    "image": null,
    "about": [
      "image",
      "art"
    ]
  }
]
```
