oneshotlm
Compare all models on this prompt →

Fireworks · step-3.7-flash

Output generated Cost / run $0.0044 Runtime 25.4s

Prompt for this run

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

⛨ 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

modelstep-3.7-flash
vendorStepFun
harnesspi-agent
generated2026-07-22

METRICS

runtime25.4s
tokens in6.0k
tokens out3.0k
cached1.5k
cost / run$0.0044
Transcript · 4 messages
user

Create a fireworks display on a full-screen canvas where clicks launch shells that explode into gravity-affected, fading particle bursts.

assistant
thinking
The user wants a full-screen canvas fireworks display. Clicks should launch shells that travel upward, then explode into particles with gravity and fading effects. Everything must be in one self-contained HTML file with inline CSS/JS and no external resources.

Let me build this with a clean, visually appealing fireworks simulation in a single HTML file.
→ write /workspace/index.html (11630 bytes)
toolResult

Successfully wrote 11630 bytes to /workspace/index.html

assistant
thinking
The file has been created. Let me verify it exists and provide a brief summary to the user.

Done! `index.html` is ready at `/workspace/index.html`. **What it does:** - Full-screen canvas with a starfield background - **Click** anywhere to launch a firework shell that arcs upward - Shells burst into **60–120 particles** with gravity, air drag, and gradual fading - Each particle leaves a short **trail** for a comet-like tail effect - Explosions have a quick **white/yellow flash** - Clicking and dragging fires a stream of shells - Occasional **ambient auto-launches** keep the sky alive - Twinkling stars in the background - Works on desktop (click/drag) and mobile (touch) Everything — CSS, JS, canvas rendering — is fully self-contained. Zero external resources, zero network requests.