oneshotlm
Compare all models on this prompt →

Fireworks · minimax-m2.7

Output generated Cost / run $0.0024 Runtime 7.6s

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

modelminimax-m2.7
vendorMiniMax
harnesspi-agent
generated2026-07-08

METRICS

runtime7.6s
tokens in8.7k
tokens out2.3k
cached8.2k
cost / run$0.0024
Transcript · 6 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 fireworks display with:
1. Full-screen canvas
2. Click to launch shells
3. Explode into particle bursts
4. Gravity-affected particles
5. Fading particles

Let me create a single HTML file with an immersive fireworks experience.
→ write /workspace/index.html (6099 bytes)
toolResult

Successfully wrote 6099 bytes to /workspace/index.html

assistant
thinking
I've created a fireworks display. Let me verify it was written correctly by checking the file exists.
→ bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 6099 Jul 8 00:54 /workspace/index.html

assistant
thinking
The file is created successfully. Let me provide a summary of what was built.

Done! **`/workspace/index.html`** is ready. Here's what's in it: - **Full-screen canvas** that auto-resizes to any window size - **Click / tap** anywhere to launch a firework shell upward - **Gravity** pulls both shells and sparks downward - **Particle bursts** explode into 80–130 sparks with randomized colors, angles, and speeds - **Occasional ring burst** — a white ring of sparks added with ~35% probability - **Motion trails** — faint sparks trail behind each rising shell - **Fade & drag** — particles slow and fade over time - **Auto-show** — fireworks launch automatically every 1–3 seconds so the screen is never empty - **Touch support** for mobile devices - **No external resources** — fully self-contained