Skip to content

Instantly share code, notes, and snippets.

@simonw
Created September 23, 2025 20:47
Show Gist options
  • Select an option

  • Save simonw/b371949ae984b0431848cd16cba24b27 to your computer and use it in GitHub Desktop.

Select an option

Save simonw/b371949ae984b0431848cd16cba24b27 to your computer and use it in GitHub Desktop.

2025-09-23T20:42:05 conversation: 01k5w50eb6503z86gs56s5nsqp id: 01k5w4zs1ds1s09ezmkbxw1jez

Model: openai/gpt-5-codex

Prompt

Generate an SVG of a pelican riding a bicycle

Response

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300">
  <rect width="400" height="300" fill="#f2f7fb"/>
  
  <!-- Ground -->
  <rect y="250" width="400" height="50" fill="#e0ecf7"/>
  <path d="M0 250 Q80 235 160 248 T320 245 L400 250 V260 H0 Z" fill="#d4e6f5" opacity="0.7"/>

  <!-- Bicycle wheels -->
  <circle cx="120" cy="220" r="48" fill="none" stroke="#2c3e50" stroke-width="6"/>
  <circle cx="260" cy="220" r="48" fill="none" stroke="#2c3e50" stroke-width="6"/>
  <circle cx="120" cy="220" r="8" fill="#2c3e50"/>
  <circle cx="260" cy="220" r="8" fill="#2c3e50"/>

  <!-- Wheel spokes -->
  <g stroke="#2c3e50" stroke-width="2" opacity="0.6">
    <line x1="120" y1="172" x2="120" y2="268"/>
    <line x1="72" y1="220" x2="168" y2="220"/>
    <line x1="87" y1="187" x2="153" y2="253"/>
    <line x1="87" y1="253" x2="153" y2="187"/>
    <line x1="260" y1="172" x2="260" y2="268"/>
    <line x1="212" y1="220" x2="308" y2="220"/>
    <line x1="227" y1="187" x2="293" y2="253"/>
    <line x1="227" y1="253" x2="293" y2="187"/>
  </g>

  <!-- Bicycle frame -->
  <path d="M120 220 L188 180 L252 208 L260 220 Z" fill="none" stroke="#3b4d61" stroke-width="6" stroke-linejoin="round"/>
  <path d="M188 180 L180 140" stroke="#3b4d61" stroke-width="6" stroke-linecap="round"/>
  <path d="M252 208 L296 170" stroke="#3b4d61" stroke-width="6" stroke-linecap="round"/>
  <rect x="172" y="132" width="24" height="6" rx="3" fill="#3b4d61"/>
  <path d="M296 170 Q315 160 322 140" fill="none" stroke="#3b4d61" stroke-width="6" stroke-linecap="round"/>
  <rect x="320" y="124" width="20" height="6" rx="3" fill="#3b4d61"/>

  <!-- Pedals and crank -->
  <circle cx="188" cy="180" r="10" fill="#2c3e50"/>
  <path d="M188 180 L166 205" stroke="#2c3e50" stroke-width="4" stroke-linecap="round"/>
  <path d="M188 180 L208 198" stroke="#2c3e50" stroke-width="4" stroke-linecap="round"/>
  <circle cx="166" cy="205" r="7" fill="#2c3e50"/>
  <circle cx="208" cy="198" r="7" fill="#2c3e50"/>

  <!-- Pelican body -->
  <ellipse cx="205" cy="145" rx="70" ry="48" fill="#f8f4df" stroke="#e1d9b2" stroke-width="3"/>
  <path d="M140 135 Q155 150 145 170 Q165 175 182 160" fill="#e1d9b2" opacity="0.7"/>
  <path d="M148 150 Q140 178 165 193 L150 208 Q124 192 134 160 Z" fill="#f3e8bf"/>

  <!-- Pelican wing -->
  <path d="M158 136 Q168 180 220 192 Q235 170 228 150 Q200 140 158 136 Z" fill="#e7dfbb" stroke="#d6c78d" stroke-width="3" stroke-linejoin="round"/>

  <!-- Pelican neck -->
  <path d="M230 130 Q250 110 260 90 Q265 70 255 52 Q246 46 238 56 Q228 88 200 118 Z" fill="#f9f2d7" stroke="#e7daaf" stroke-width="3"/>

  <!-- Pelican head -->
  <circle cx="258" cy="96" r="34" fill="#fdf8e5" stroke="#e7daaf" stroke-width="3"/>

  <!-- Pelican eye -->
  <circle cx="266" cy="90" r="8" fill="#2d3541"/>
  <circle cx="268" cy="88" r="3" fill="#eef3ff"/>
  <path d="M252 78 Q265 68 280 74" fill="none" stroke="#c8b88d" stroke-width="3" stroke-linecap="round"/>

  <!-- Pelican beak -->
  <path d="M276 98 L342 110 Q348 114 342 118 L276 130 Q268 128 264 122 Q262 106 264 98 Q268 94 276 98 Z" fill="#f0a94d" stroke="#e08224" stroke-width="3" stroke-linejoin="round"/>
  <path d="M277 118 L332 113" stroke="#e08224" stroke-width="3" stroke-linecap="round"/>

  <!-- Pelican leg and foot -->
  <path d="M210 190 L195 232" stroke="#e1932f" stroke-width="6" stroke-linecap="round"/>
  <path d="M212 196 L248 210" stroke="#e1932f" stroke-width="6" stroke-linecap="round"/>
  <path d="M192 234 Q205 244 222 240" fill="none" stroke="#e1932f" stroke-width="5" stroke-linecap="round"/>

  <!-- Tail -->
  <path d="M132 138 L102 120 Q96 146 112 170 Z" fill="#d8c797" stroke="#c0aa7a" stroke-width="3"/>

  <!-- Handlebar grip -->
  <circle cx="340" cy="127" r="8" fill="#f07a54"/>

  <!-- Saddle -->
  <path d="M175 130 Q180 115 205 115 Q215 125 198 132 Z" fill="#2c3e50"/>

  <!-- Decorative breeze lines -->
  <g stroke="#c4d9ed" stroke-width="3" stroke-linecap="round">
    <path d="M40 120 Q70 110 100 120" />
    <path d="M30 160 Q60 150 90 160" opacity="0.8"/>
    <path d="M50 200 Q80 190 110 200" opacity="0.6"/>
  </g>

  <!-- Shadow -->
  <ellipse cx="210" cy="240" rx="120" ry="18" fill="#bccada" opacity="0.45"/>
</svg>

Token usage

16 input, 2,154 output, {"output_tokens_details": {"reasoning_tokens": 448}}

@simonw
Copy link
Author

simonw commented Sep 23, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment