--- title: Kimi 3D Worlds emoji: 🌐 colorFrom: indigo colorTo: purple sdk: gradio app_file: app.py hf_oauth: true hf_oauth_scopes: - inference-api tags: - ml-intern --- [![Built with ML Intern](https://huggingface.co/datasets/huggingface/badges/resolve/main/built-with-ml-intern-sm.svg)](https://hf.co/chat?mode=ml-intern) # 🌐 Kimi 3D Worlds — Studio **Describe a world — watch the code stream in live — get an interactive 3D scene you can orbit, play and download.** Every world is generated in a single shot by **[Kimi K3.1 Pro](https://huggingface.co/moonshotai/Kimi-K3.1-Pro)** — Moonshot AI's 2.8T-parameter open-weight multimodal model with a 1M-token context — and rendered instantly in your browser with Three.js. No installs, no GPU, no build step: the model writes one self-contained HTML file, and your browser does the rest. ## How it works This is a **gr.Server app** with three surfaces: - **[`/` — Studio](https://akhaliq-kimi-3d-worlds.hf.space/)**: a bespoke DCC-style 3D studio (tool rail, live viewport, properties panel, streaming code console). Sign-in is client-side OAuth; your token travels from your browser with each request and is never stored. - **[`/classic`](https://akhaliq-kimi-3d-worlds.hf.space/classic)**: a classic Gradio UI with the same features, using the standard LoginButton flow. - **[`/workflow`](https://akhaliq-kimi-3d-worlds.hf.space/workflow)**: the same generation as a node-graph canvas — chain *brief → world → remix* visually. 1. **Sign in with Hugging Face.** Generations run through [Inference Providers](https://huggingface.co/docs/inference-providers) billed to **your own** HF credits (the free monthly tier works) — that's what the login is for. This Space never sees or stores your token beyond the request, and never pays for your generations. 2. **Describe a world** and pick a style preset (dreamlike, playable game, neon cyberpunk, miniature diorama, cosmic, parametric architecture) — or upload a sketch/photo to base it on. 3. **Watch it being written** — the code streams on the right while the world **assembles live** on the left: the preview re-renders the partial scene as it grows, so you see the planet, lights and creatures appear one block of code at a time. 4. **Explore it** — drag to orbit, scroll to zoom, play it if it's a game. **Refine it** with follow-up instructions ("make it night", "add fog"). Download the `.html` and it runs anywhere: your desktop, your blog, a tweet. ## Workflow canvas Power users: the same generation is also exposed as a **node-graph workflow** at [`/workflow`](https://akhaliq-kimi-3d-worlds.hf.space/workflow) — chain *brief → world → remix* visually, Fibo-studio style. The canvas has no login button, so it uses your signed-in session or an `HF_TOKEN` secret if the Space owner configured one. ## Why Kimi K3.1 Pro? Its model card calls out **3D creation** as a headline strength, alongside top-tier coding scores — which is exactly what procedural Three.js world-building exercises. This Space is the fastest way to see that claim with your own eyes. ## Ideas to try - "A cyberpunk city in the rain at night, neon reflecting on wet streets" - "A microscopic world inside a cell, glowing DNA helixes spiraling" - "A medieval castle on a floating island, waterfalls pouring into clouds" - Upload a photo of your desk → "turn this into a tiny planet" ## Model - **Model:** [moonshotai/Kimi-K3.1-Pro](https://huggingface.co/moonshotai/Kimi-K3.1-Pro) - **Tech blog:** [kimi.ai/blog/kimi-k3-1-pro](https://www.kimi.ai/blog/kimi-k3-1-pro) - Worlds are generated at `temperature=1.0, top_p=0.95`, matching the model card's settings. Built with ML Intern on Hugging Face.