oneshotlm
Compare all models on this prompt →

Drum machine · gpt-4o-mini

Output generated Cost / run $0.0008 Runtime 10.0s

Prompt for this run

Build a 16-step drum machine with a clickable grid for kick, snare, hi-hat, and clap, all sounds synthesized with the Web Audio API, plus play/stop and an adjustable BPM.

⛨ sandboxed Open in new tab ↗

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelgpt-4o-mini
vendorOpenAI
harnesspi-agent
generated2026-07-22

METRICS

runtime10.0s
tokens in3.1k
tokens out877
cached1.9k
cost / run$0.0008
Transcript · 4 messages
user

Build a 16-step drum machine with a clickable grid for kick, snare, hi-hat, and clap, all sounds synthesized with the Web Audio API, plus play/stop and an adjustable BPM.

assistant
→ write index.html (2898 bytes)
toolResult

Successfully wrote 2898 bytes to index.html

assistant

The 16-step drum machine has been created and written to `index.html`. You can now run it by opening this file in a web browser. The app features a clickable grid for kick, snare, hi-hat, and clap sounds, synthesized using the Web Audio API, along with play/stop buttons and an adjustable BPM.