oneshotlm
Compare all models on this prompt →

3D solar system · grok-4.3

Output generated Cost / run $0.0153 Runtime 40.6s

Prompt for this run

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

⛨ 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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

METRICS

runtime40.6s
tokens in11k
tokens out3.2k
cached6.7k
cost / run$0.0153
Transcript · 8 messages
user

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

assistant
thinking
The task is: Build a single-page web app and write it ALL into one self-contained file named index.html in the current directory. CSS in a <style> tag, JS in a <script> tag, inline — do not create sep...
→ bash {"command":"ls -la"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 22 17:35 . drwxr-xr-x 1 root root 4096 Jul 22 17:35 .. -rw-r--r-- 1 node node 603445 Jul 22 17:35 three.min.js

assistant
thinking
The three.min.js is present. Now I need to create index.html as a self-contained single-file app using Three.js for a 3D solar system.
The task is to build a 3D solar system using three.min.js, including sun, orbiting planets with varied speeds and sizes, orbit-drag camera controls, and a starfield. It needs to be a self-contained single-file app in index.html, with everything inline except for the script src to three.min.js.
→ write index.html (9707 bytes)
toolResult

Successfully wrote 9707 bytes to index.html

assistant
thinking
The file has been created successfully. Let me verify it's there and complete.
→ bash {"command":"ls -la index.html && wc -l index.html"}
toolResult

-rw-r--r-- 1 node node 9713 Jul 22 17:36 index.html 276 index.html

assistant
thinking
The index.html file has been written successfully, containing the full self-contained solar system web app. It directly loads three.min.js with a relative script tag as requested.

Done! `index.html` (≈9.7 KB) is now in the current directory and ready to run. All assets and libraries are local. Open it in any browser to explore the 3D solar system.