oneshotlm
Compare all models on this prompt →

Space Invaders · gpt-4o-mini

Output generated Cost / run $0.0011 Runtime 20.2s

Prompt for this run

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

⛨ 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

runtime20.2s
tokens in3.6k
tokens out1.3k
cached2.3k
cost / run$0.0011
Transcript · 4 messages
user

Build a playable Space Invaders game on a canvas: a player cannon that moves and shoots, a descending grid of aliens that advance and fire back, destructible bunkers, score, and lives. Procedural graphics only, no external assets.

assistant
→ write index.html (4182 bytes)
toolResult

Successfully wrote 4182 bytes to index.html

assistant

The Space Invaders game has been successfully created and saved in a self-contained file named `index.html`. You can open this file in a web browser to play the game. Enjoy!