Code generation
Generate web pages, components, slides, articles, SVG, Three.js scenes and more with Claude, GPT, Gemini and others, then preview and revise them.
The Code view writes a file from a prompt: a web page, a single component, a slide deck, an article, an SVG drawing, a Three.js scene, a looping animation and more. Pick what it makes, describe it and press Generate: the file appears in your feed as a picture of the page, and opens to run, edit in Design, or change with another prompt.
Generate a web page from a prompt
- Click Code on Home, or press O anywhere outside a text field or a canvas.
- Check the chips under the prompt box: the model, the format chip, which reads Website to start (its menu is headed What it makes), and the effort. The price beside Generate is a range, such as "5–49 credits" (see below).
- Describe the page: who it's for, its sections, the content and the look ("a launch page for a ceramics studio with a booking form").
- Press Generate, or Enter. The run shows "Usually 1–3 minutes" and keeps going if you leave.
- The page lands at the top of the feed as a picture of its first screen, and the panel on the right previews it at desktop size. Hover its tile and click View full size to open it in the full view.
The full view runs the page, so links, forms, slides and scenes work. Its Design tab edits every layer, as in Figma (see The Design tab), and Download saves it.
What Code makes: websites, slides, SVG, Three.js and more
Open the second chip (it reads Website until you change it) to pick a format; its menu is headed What it makes, and each line says what you'll get.

| Format | What you get |
|---|---|
| Website | Pages, a design system and data, kept in step: the default. See Build a website |
| Simple HTML page | One self-contained page, the quickest. See Simple HTML pages |
| React app | The site as a React app with its components and data, to export. See React apps |
| HTML component | One UI element on its own, such as a card, a form or a pricing table |
| Article | A post or guide in Markdown, with its pictures |
| Plain text | Just the words: an email, a caption, a script, a bio |
| Social post | A post, thread or video as X, Threads, LinkedIn, Instagram, TikTok or YouTube show it. See Social posts |
| Brand guide | Logo, colours, type and voice, laid out as a guide |
| Motion design | An animated piece that plays and loops on its own |
| SVG illustration | A vector drawing, kept as an image |
| Three.js scene | A real-time 3D scene you can turn and zoom |
| Skill (SKILL.md) | A SKILL.md written from the flow before it, on a canvas. See Prompts, documents and skills |
| Design system | Colours, type and components pages share. See Design systems |
| Site data | The content pages show, as a CMS. See Dynamic websites |
| Calendar | Deadlines, launches and invoices on a month, from your documents |
| Tasks | A checklist or board to tick, from your documents |
| Kanban board | Columns of cards you drag along as work moves |
| Slides | A deck you edit like Keynote, present and export to PowerPoint, Keynote or PDF. See Slides |
In the Code view a Website is made as one page. On a canvas it becomes a whole site: its pages, the design system they share and their data, each a node of its own (see Websites in Fil).
Choose a model and effort
The first chip is the model. Every code model writes every format, takes up to 8 reference pictures and up to 2 pages to revise. The Code view opens on the code model you used last; without one it starts on Claude Sonnet 5.5 at Medium effort.

Which to pick:
- Most pages: Claude Sonnet 5.5, the default, fast and good.
- SVG drawings and Three.js scenes: Claude Opus 5.5 at Extra high effort. The menus mark it "Recommended for SVG" or "Recommended for Three.js"; on a canvas, picking either format moves the node to it.
- The hardest pages: Claude Fable 5.1, Anthropic's most capable, or Claude Opus 5.5 at a higher effort. Muse Wonder 1.0, Meta's most capable, costs what Opus does. Gemini 4 Argon, Google's most capable, costs what Sonnet does until December 1, 2026, when Google doubles its price.
- A second opinion from Moonshot AI: Kimi K3.1 Pro, its most capable, costs about what Sonnet does. Kimi K3.1 Pro Highspeed is the same model two to three times faster, at twice the price.
- Cheap drafts and plain text: Claude Haiku 5.5, MiniMax M3.1 Flash, Gemini 3.8 Flash or MiniMax M3. M3.1 Flash costs about what Haiku does and thinks at any effort.
| Model | Credits | Maker |
|---|---|---|
| Claude Sonnet 5.5 | 5–49 | Anthropic: faster |
| Claude Opus 5.5 | 9–98 | Anthropic |
| Claude Fable 5.1 | 22–243 | Anthropic: most capable |
| Claude Haiku 5.5 | 1–3 | Anthropic: fastest, cheapest |
| GPT-6 Astra | 22–243 | OpenAI |
| GPT-6.1 Sol | 5–49 | OpenAI: faster |
| Gemini 4 Argon | 5–49 | Google: most capable |
| Gemini 3.8 Flash | 2–19 | Google: fast, low cost |
| Muse Wonder 1.0 | 9–98 | Meta: most capable |
| Muse Spark 1.3 | 2–21 | Meta: low cost |
| Grok 4.7 | 3–30 | xAI |
| Kimi K3.1 Pro | 5–65 | Moonshot AI: most capable |
| Kimi K3.1 Pro Highspeed | 9–130 | Moonshot AI: faster |
| Kimi K3 | 7–97 | Moonshot AI |
| MiniMax M3 | 1–6 | MiniMax: low cost |
| MiniMax M3.1 Flash | 1–3 | MiniMax: fast, low cost |
Credits are what the chip shows for a new website before you type, at each model's default effort (Medium; High on Kimi). A long prompt, documents or pictures raise both ends a little.
Effort
The effort chip (such as Medium effort) sets how hard the model thinks, and the most it may write. More effort takes longer and raises the top of the price range.
| Effort | Menu says | Sonnet 5.5 holds |
|---|---|---|
| Low | Quickest and cheapest, for simple pages | 33 |
| Medium | Balanced, for most pages: the default | 49 |
| High | Thorough, for detailed pages | 65 |
| Extra high | Thinks longer, for complex pages | 97 |
| Max | Thinks the longest, costs the most | 129 |
Gemini 4 Argon and Gemini 3.8 Flash go up to High, Grok 4.7 to Extra high, and Kimi's models offer Low, High and Max. MiniMax M3.1 Flash takes all five. MiniMax M3 always thinks at full depth, so it has no effort chip. If a run stops with "The page was too long to finish at this effort", choose a higher effort or ask for less.
Edit a page with a prompt
Any page can be revised: select it, say what to change, and a new version arrives as its own run, the old one kept.
- Hover the page in the Code view and click Turn to…, then Turn to Code. (Or select it and click Turn to Code in the panel.) It's attached above the prompt as Revising 1 page.
- Keep What it makes on the page's own format.
- Describe the change ("Describe what to change in the page") and press Generate.
A revision of one page writes only its edits, a few hundred tokens instead of the whole page, so it costs less: the price shows from 2 credits, and the run is charged for what it wrote. That's for a Website, Simple HTML page, React app, HTML component, Motion design, Three.js scene, Brand guide, or a Design system revised from one; an Article, Plain text, SVG, Social post, Site data, Calendar or Tasks is written whole again and priced that way. GPT-6 Astra and GPT-6.1 Sol write the whole page again. You can attach up to two pages; with two, the page is written whole. For changes by hand, open the page in Design; to ask an agent who can also make pictures, see Edit with the agent.
When a file has earlier versions, the full view's top bar shows how many, such as 2 versions: pick one to look at it, and Restore saves it as a new version, so nothing is lost.
Generate code on a canvas
On a canvas, a Code node does the same and reads more: wire in prompts, documents (read whole, up to 60,000 characters), up to 8 pictures and up to 2 pages. Add one with the code button in the toolbar at the bottom (or press 5 on the canvas) and press Generate on the node.

After a run, the node's button depends on what it makes:
| Formats | The button | What it does |
|---|---|---|
| Website, Simple HTML page, React app | Edit with agent | Opens it in Design with the agent |
| Design system, Site data, Calendar, Tasks, Kanban board, Slides, Social post | Edit | Changes the one file in place, as the box above it asks ("What should change in the calendar?") |
| The other formats | Add | Makes another take; the one you pick feeds the next node |
- Before a canvas run starts, Claude Sonnet 5.5 reviews it. For a Website, Simple HTML page or React app it can offer a page design and pictures for its sections, made first; pick an option, or Generate as is. Skills, social posts, calendars, task lists, Kanban boards and slides aren't reviewed.
- Ask for several files from one Code node, such as "break this page down into sections, each an HTML component", and the review offers one HTML component per section, all sharing one new brand when you ask for one. Click a section to leave it out, open Prompts for N components to change what they share or what each makes, then press Make N components: the node makes the first, a new Code node beside it makes each of the others, wired from the same page, and they all start at once at the price shown. Ask the same in a Prompt node wired from the page and Plan offers the same components.
- Wire in a video and the node reads it as a storyboard: frames taken across it, each stamped with its time, one of its pictures. So an Article or Plain text node can write a scene-by-scene prompt, a script or notes from a clip. A Social post shows the videos and pictures wired into it as the post's own media, as its platform carries them: on X, LinkedIn, TikTok and YouTube a video goes alone. Fil makes each video's storyboard once, while the canvas is open; the run waits a few seconds for one that isn't made yet.
- Asking for a new brand, names, numbers, copy or colours without saying what they become is enough: the model makes them up for the same kind of business. A page pasted from the web keeps its own pictures.
- Turn into skill in the panel writes a SKILL.md from the whole flow that made a result, so you can make work like it again.
- A Calendar or Tasks node reads the documents wired into it and lists every dated item or follow-up. To start one empty, for free, click + in the toolbar and pick Calendar or Task list. Ticking a task or marking an event done is free and saved as a new version.
- In a calendar's full view, drag an event to another day, click a day to see what's on it, and open an event to change its date, time, partner, type or notes, or delete it. New event, or a double-click on a day, adds one. The agent at the foot of the side adds, moves or checks events as you ask, reading the calendar and the documents wired into it. Every change is free and saved as a new version; the agent's and deletions come with Undo.
- A Kanban board (see Kanban boards) starts empty from + in the toolbar (or ⇧K), with To do, In progress and Done, for free; or pick Kanban board as what a Code node makes to have it made from a prompt or the documents wired into it. Drag a card to another column, or up and down its own, right on the canvas; + on a column adds a card there. In its full view, click a card to change its title, column, due date, partner or notes; Add column adds one, and a column's menu renames, moves or deletes it, or makes it where finished cards go. The agent at the foot of the side adds, moves or sorts cards as you ask. Every change is free and saved as a new version.
Download, upload and share
- Download in the panel or the full view saves a page as one HTML file with its pictures inside. Articles save as Markdown, plain text as TXT, an SVG as SVG, a skill as SKILL.md, and a calendar, a task list, a Kanban board, slides or a social post as JSON. On a canvas the link says which (Download SKILL.md, Download JSON), and a React app's reads Download project (a Vite project, as a zip).
- To bring a page of your own in, use the upload button beside the price (its tooltip reads Upload HTML), or drop the file on the feed. Then Turn to Code revises it like any other.
- A social post is published as a web page or exported to post yourself: see Social posts.
- Pages stay in your library: Community doesn't show them, so the lock chip in the Code view can't be switched. To put a site on the web, see Publish a website; to take the code elsewhere, Download a website or sync it to GitHub.
Costs and limits
- Longer prompts, documents, pictures and pages to revise raise both ends of the range; a higher effort raises the top.
- A run that fails is refunded in full. Only GPT-6 Astra and GPT-6.1 Sol runs can be stopped once started, with the stop button beside the prompt in the feed (its tooltip reads Cancel); a stopped run is charged for what it wrote. Other models say "This provider cannot cancel a submitted run. It will finish and settle normally."
- Without enough credits, pressing Generate says so: "This run needs 49 credits; you have 20."
- A prompt can be up to 4,000 characters. Three.js scenes build every model from code, so they can't load 3D files; for a model you can download, see 3D generation.
What's next
- Websites in Fil: sites, simple pages and React apps, and how they differ.
- The Design tab: edit any page layer by layer, or with the agent.
- Social posts: posts and threads as each platform shows them.
- Publish a website: put a page or a site on the web.