Skip to content

Instantly share code, notes, and snippets.

@simonw
Created September 25, 2025 18:17
Show Gist options
  • Select an option

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

Select an option

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

2025-09-25T18:17:21 conversation: 01k611gb76xa036xnjhs9zs8nq id: 01k611g6mxptkz2hx40ywvakwy

Model: gemini/gemini-flash-latest (resolved: gemini-2.5-flash-preview-09-2025)

Prompt

Generate an SVG of a pelican riding a bicycle

Response

<svg width="600" height="400" viewBox="0 0 600 400" xmlns="http://www.w3.org/2000/svg">
  <!-- Background (optional) -->
  <rect width="600" height="400" fill="#f0f0f0"/>

  <!-- Bicycle -->
  <g id="bicycle" transform="translate(150, 300)">
    <!-- Rear Wheel -->
    <circle cx="0" cy="0" r="40" fill="none" stroke="#333" stroke-width="5"/>
    <!-- Front Wheel -->
    <circle cx="200" cy="0" r="40" fill="none" stroke="#333" stroke-width="5"/>

    <!-- Frame -->
    <path d="M 0 0 L 50 -80 L 150 -80 L 200 0" fill="none" stroke="#333" stroke-width="5"/>
    <line x1="50" y1="-80" x2="50" y2="-40" stroke="#333" stroke-width="5"/> <!-- Seat Post connection -->

    <!-- Handlebars -->
    <path d="M 150 -80 L 180 -120 L 190 -110" fill="none" stroke="#333" stroke-width="5"/>
    <!-- Pedals (Simplified) -->
    <circle cx="50" cy="0" r="8" fill="#333"/>
  </g>

  <!-- Pelican (on the bicycle seat) -->
  <g id="pelican" transform="translate(180, 200)">
    <!-- Body -->
    <ellipse cx="0" cy="0" rx="40" ry="30" fill="#add8e6" stroke="#000" stroke-width="2"/>

    <!-- Wing (Simplified) -->
    <path d="M -30 -10 Q -50 -40 -10 -30 Z" fill="#90ee90" stroke="#000" stroke-width="2"/>

    <!-- Head -->
    <circle cx="35" cy="-20" r="15" fill="#add8e6" stroke="#000" stroke-width="2"/>

    <!-- Eye -->
    <circle cx="40" cy="-25" r="2" fill="#000"/>

    <!-- Long Beak (The defining feature) -->
    <path d="M 50 -20 L 90 -10 L 90 20 L 50 10 Z" fill="#ffebcd" stroke="#000" stroke-width="2"/>
    <!-- Pouch/Throat (Expanded lower jaw) -->
    <path d="M 50 10 C 60 30 80 30 90 20" fill="#ffa07a" stroke="#000" stroke-width="2"/>

    <!-- Legs (Connecting to the bicycle frame/pedals) -->
    <line x1="0" y1="30" x2="30" y2="70" stroke="#000" stroke-width="3"/>
    <line x1="10" y1="30" x2="70" y2="70" stroke="#000" stroke-width="3"/>

    <!-- Feet (Simplified connection to the pedals/frame) -->
    <circle cx="30" cy="70" r="5" fill="#ff8c00"/>
    <circle cx="70" cy="70" r="5" fill="#ff8c00"/>
  </g>

  <!-- Title/Label (optional) -->
  <text x="300" y="50" font-family="Arial" font-size="24" fill="#333" text-anchor="middle">A Pelican Riding a Bicycle</text>
</svg>

Token usage

11 input, 944 output, {"candidatesTokenCount": 944, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 11}]}

@simonw
Copy link
Author

simonw commented Sep 25, 2025

llm -m gemini-flash-latest -t pelican-svg -o thinking_budget 0

Leaving off thinking_budget seemed to spend thinking tokens.

@simonw
Copy link
Author

simonw commented Sep 25, 2025

image

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