Skip to content

Instantly share code, notes, and snippets.

@simonw
Created November 18, 2025 18:34
Show Gist options
  • Select an option

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

Select an option

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

2025-11-18T18:30:24 conversation: 01kac3qb8ah9cm6xd4cgr3yzhd id: 01kac3px3ffsrwwh2jydsrs9j5

Model: gemini/gemini-3-pro-preview (resolved: gemini-3-pro-preview) (thinking level low)

Prompt

Generate an SVG of a pelican riding a bicycle

Response

Here is the SVG code for a whimsical illustration of a pelican riding a bicycle.

You can copy the code below and paste it into a text file with a .svg extension (e.g., pelican-bike.svg) to view it in any browser or graphics editor.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" width="400" height="400">
  <!-- Background Sky -->
  <rect x="0" y="0" width="400" height="400" fill="#E0F7FA" />
  <circle cx="50" cy="50" r="20" fill="#FFF9C4" opacity="0.8" />
  
  <!-- Ground -->
  <rect x="0" y="350" width="400" height="50" fill="#81C784" />

  <!-- Bicycle -->
  <g transform="translate(80, 200)">
    <!-- Wheels -->
    <circle cx="0" cy="100" r="40" fill="none" stroke="#333" stroke-width="5" />
    <circle cx="160" cy="100" r="40" fill="none" stroke="#333" stroke-width="5" />
    <!-- Spokes (simplified) -->
    <path d="M0 100 L0 60 M0 100 L0 140 M0 100 L40 100 M0 100 L-40 100" stroke="#999" stroke-width="2" />
    <path d="M160 100 L160 60 M160 100 L160 140 M160 100 L200 100 M160 100 L120 100" stroke="#999" stroke-width="2" />
    
    <!-- Frame -->
    <path d="M0 100 L60 40 L140 40 L160 100" fill="none" stroke="#D32F2F" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M60 100 L60 40" fill="none" stroke="#D32F2F" stroke-width="6" stroke-linecap="round"/>
    <path d="M140 40 L150 20" fill="none" stroke="#555" stroke-width="6" stroke-linecap="round"/> <!-- Handlebar stem -->
    
    <!-- Seat -->
    <path d="M50 35 L70 35 L65 25 L55 25 Z" fill="#333" />
    
    <!-- Handlebars -->
    <path d="M140 20 Q150 10 135 15" fill="none" stroke="#333" stroke-width="5" stroke-linecap="round"/>
    
    <!-- Pedals and Gear -->
    <circle cx="60" cy="100" r="10" fill="#555" />
    <path d="M60 100 L75 115" stroke="#555" stroke-width="4" stroke-linecap="round" />
    <rect x="70" y="112" width="15" height="6" fill="#333" rx="2" transform="rotate(20 75 115)" />
  </g>

  <!-- Pelican -->
  <g transform="translate(80, 200)">
    <!-- Legs (Back) -->
    <path d="M65 40 L75 115" stroke="#FF9800" stroke-width="6" stroke-linecap="round" />
    
    <!-- Body -->
    <ellipse cx="60" cy="20" rx="35" ry="25" fill="#FFF" stroke="#DDD" stroke-width="1" />
    
    <!-- Wing -->
    <path d="M40 15 Q20 30 45 40 Q60 40 70 25 Q60 10 40 15" fill="#F5F5F5" stroke="#CCC" stroke-width="1"/>
    
    <!-- Neck -->
    <path d="M85 10 Q95 0 95 -30" fill="none" stroke="#FFF" stroke-width="18" stroke-linecap="round"/>
    
    <!-- Head -->
    <circle cx="95" cy="-35" r="16" fill="#FFF" />
    
    <!-- Beak (Upper) -->
    <path d="M105 -40 L150 -35 L105 -30" fill="#FFCC80" />
    <!-- Beak (Pouch) -->
    <path d="M105 -30 Q130 -10 145 -35 Z" fill="#FFA726" stroke="#F57C00" stroke-width="1"/>
    
    <!-- Eye -->
    <circle cx="100" cy="-38" r="2.5" fill="#333" />
    
    <!-- Legs (Front - reaching for handlebars roughly) -->
    <path d="M75 10 Q100 20 135 15" fill="none" stroke="#FFF" stroke-width="7" stroke-linecap="round" /> <!-- Wing/Arm holding bar -->
    <path d="M135 15 L145 25" fill="none" stroke="#FF9800" stroke-width="4" stroke-linecap="round" /> <!-- Wing tip/feathers acting as hand -->

    <!-- Hat (Optional Fun Detail) -->
    <path d="M85 -48 L105 -48 L100 -65 L90 -65 Z" fill="#1976D2" />
    <path d="M80 -48 L110 -48" stroke="#1976D2" stroke-width="3" />
  </g>
  
  <!-- Motion Lines -->
  <g stroke="#90A4AE" stroke-width="2" stroke-linecap="round">
    <path d="M40 290 L20 290" />
    <path d="M30 300 L10 300" />
    <path d="M45 310 L25 310" />
  </g>
</svg>

Token usage

11 input, 1,740 output, {"candidatesTokenCount": 1632, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 11}], "thoughtsTokenCount": 108}

2025-11-18T18:31:36 conversation: 01kac3sygdnrd4gh1seaegfhne id: 01kac3s3qx8czdkwdjkcqx91w0

Model: gemini/gemini-3-pro-preview (resolved: gemini-3-pro-preview) (thinking level high)

Prompt

Generate an SVG of a pelican riding a bicycle

Response

Here is the SVG code for a pelican riding a bicycle. You can save this code as an .svg file and open it in any web browser or vector graphics editor.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 400">
  <!-- Background -->
  <rect width="100%" height="100%" fill="#e0f7fa" />
  <line x1="0" y1="350" x2="500" y2="350" stroke="#81c784" stroke-width="10" />

  <!-- Bicycle -->
  <g id="bicycle" transform="translate(0, 10)">
    <!-- Wheels -->
    <g stroke="#333" stroke-width="4" fill="none">
      <circle cx="120" cy="300" r="45" />
      <circle cx="380" cy="300" r="45" />
      <!-- Spokes -->
      <g stroke="#bbb" stroke-width="2">
        <path d="M120 300 l45 0 M120 300 l-45 0 M120 300 l0 45 M120 300 l0 -45" />
        <path d="M120 300 l32 32 M120 300 l-32 -32 M120 300 l-32 32 M120 300 l32 -32" />
        <path d="M380 300 l45 0 M380 300 l-45 0 M380 300 l0 45 M380 300 l0 -45" />
        <path d="M380 300 l32 32 M380 300 l-32 -32 M380 300 l-32 32 M380 300 l32 -32" />
      </g>
    </g>

    <!-- Frame -->
    <path d="M120 300 L220 300 L190 200 L120 300" fill="none" stroke="#d32f2f" stroke-width="6" stroke-linejoin="round" />
    <path d="M220 300 L340 180" fill="none" stroke="#d32f2f" stroke-width="6" stroke-linecap="round" />
    <path d="M190 200 L340 180" fill="none" stroke="#d32f2f" stroke-width="6" stroke-linecap="round" />
    
    <!-- Fork and Handlebars -->
    <path d="M340 180 L380 300" stroke="#d32f2f" stroke-width="6" stroke-linecap="round" />
    <path d="M330 180 L350 160 L320 160" fill="none" stroke="#555" stroke-width="5" stroke-linecap="round" stroke-linejoin="round" />

    <!-- Seat -->
    <ellipse cx="180" cy="195" rx="25" ry="8" fill="#333" />
    
    <!-- Crank/Chainring -->
    <circle cx="220" cy="300" r="10" fill="#888" />
  </g>

  <!-- Pelican -->
  <g id="pelican" transform="translate(0, 10)">
    <!-- Back Leg (Pedaling) -->
    <path d="M200 230 L210 260 L220 300" fill="none" stroke="#ffab00" stroke-width="8" stroke-linecap="round" />
    <path d="M210 300 L235 300 L240 310 L210 310 Z" fill="#ffab00" /> <!-- Webbed Foot -->

    <!-- Body -->
    <ellipse cx="190" cy="200" rx="55" ry="40" fill="#fff" stroke="#ccc" stroke-width="1" />
    
    <!-- Tail Feathers -->
    <path d="M135 200 L110 190 L135 210 Z" fill="#fff" stroke="#ccc" stroke-width="1" />

    <!-- Neck -->
    <path d="M220 180 Q240 170 240 130" fill="none" stroke="#fff" stroke-width="35" stroke-linecap="round" />
    
    <!-- Head -->
    <circle cx="240" cy="120" r="25" fill="#fff" />

    <!-- The Beak (Upper) -->
    <path d="M260 110 L350 115 L260 125 Z" fill="#ff9800" stroke="#e65100" stroke-width="1" />
    
    <!-- The Pouch (Lower Beak) -->
    <path d="M260 125 Q310 170 345 116" fill="#ffcc80" stroke="#ef6c00" stroke-width="1" />

    <!-- Eye -->
    <circle cx="245" cy="115" r="4" fill="black" />
    <circle cx="246" cy="114" r="1.5" fill="white" />

    <!-- Wing (Reaching for handlebars) -->
    <path d="M200 190 Q250 180 320 160" fill="none" stroke="#fff" stroke-width="18" stroke-linecap="round" />
    <path d="M200 190 Q250 180 320 160" fill="none" stroke="#eee" stroke-width="2" /> <!-- Wing detail line -->
    
    <!-- Wing Tip/Feathers on Handlebar -->
    <ellipse cx="320" cy="160" rx="10" ry="12" fill="#fff" transform="rotate(-20 320 160)"/>
  </g>
</svg>

Token usage

11 input, 3,236 output, {"candidatesTokenCount": 1600, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 11}], "thoughtsTokenCount": 1636}

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