|

How can AI save tokens when writing 3D scenes with Three.js? Author’s self-test shows 35% less output on average

How can AI save tokens when writing 3D scenes with Three.js? Author’s self-test shows 35% less output on average

When you generate a Three.js scene with a model, the part that most often goes wrong usually isn’t “it can’t draw it”—it’s “the window fills up before it’s done drawing.” Pack a camera, lighting, materials, and geometry into a single HTML file, and the output token count shoots straight up—the 64K context window runs out fast.

This article is built around the author’s own testing of Inkling 2 Mini-3D-Coder and separates two things clearly: how many tokens it actually saves, and whether, once those tokens are saved, scenes more often fail to render.

This is only preview data tied to a snapshot version, and it can’t be treated as a general conclusion. Every percentage will state who measured it and which epoch it was measured on, and will also spell out which inferences it can’t support.

Core value: After reading, you’ll be able to judge whether this LoRA is worth trying locally, and, if you switch to a cloud API for scene generation, how the saved output tokens convert into money.

inkling-2-3d-scene-token-savings-en-image-0

What Does the Inkling 2 Token Benchmark for Writing 3D Scenes Actually Measure?

Let’s nail down the testing boundaries first. If you jump straight to the percentages without understanding the boundaries, it’s easy to mistake this for a “token-saving trick that works for every model.”

Item Specific Setting Impact on the Conclusion
Base model Thinking Machines Lab’s Inkling 2 Mini Only holds for this one base model; not universal across models
Fine-tuning method rank-16 LoRA, trained with Tinker It’s a lightweight adapter layer, not a 3D-specialized model retrained from scratch
Training data 7137 complete conversations: 3889 from ThreeJS 3D Scenes v1 plus 3248 from v2, MIT license Small data volume, so this is narrow-domain fine-tuning
Task format Output a single HTML file, Three.js r160 core ES modules, hand-written camera, no plugins The token-saving goal is “writing the same file shorter”
Comparison scale 75 prompt-and-seed pairs, 19 scenes Small sample size, good for spotting trends, not for treating as an industry benchmark
Sampling parameters Context limit 65536, reasoning effort 0.9, top-p 1.0 Context is capped at 64K, and this fact directly determines every number below
Version status Early preview, epoch 5 snapshot; the author says training continues toward epoch 7 The numbers aren’t final and will change

The row most easily overlooked in this table is “context limit 65536.” It’s both an evaluation condition and the core motivation behind this work: if 64K can’t hold a scene, the model can only truncate it, and a truncated artifact usually won’t run in a browser.

What Does the Task Format of Inkling 2 Mini-3D-Coder Actually Look Like?

Its output isn’t sharded code, nor a component, but a self-contained HTML file: Three.js r160 core ES modules, hand-written camera, no third-party plugins. This constraint matters a lot, because a single file means every geometry, material, and animation loop has to fit into a single output, which naturally costs more tokens than “generate a module, then assemble it.”

Another commonly misread point is the scope of its capabilities. The author states that this 3D fine-tune treats both training and evaluation as pure text, and that image projection is a separate capability the base model already has. In other words, don’t expect it to also generate textures or rendered results just because of the word “3D.”

inkling-2-3d-scene-token-savings-en-image-1

How Is Inkling 2’s Average Token Savings Calculated?

The headline number the author gives is an average of 34.7% fewer output tokens at epoch 5. The comparison baseline is the same base model’s output length under identical conditions, across a sample of 75 prompt-and-seed pairs spanning 19 scenarios.

Version Average token savings Notes
epoch 4 34.2% An earlier snapshot under the same batch conditions
epoch 5 34.7% The author’s featured snapshot and the number cited most in this article
epoch 5 (with reruns) 35.8% The average after re-running the 12 base-model results that maxed out 64K back into the comparison

The three numbers look close, but they’re read differently. The first two compare output lengths directly from the same batch. The third corrects for a statistical bias: the base model maxed out 64K outright 12 times, so its output was truncated — the length was pinned by the context ceiling, not because it “wanted to write that much.” Re-running those 12 cases under workable conditions and recomputing pushed the average savings up to 35.8%.

So 34.7% is closer to “under normal conditions you’ll save roughly a third of your output,” while 35.8% is closer to “the real gap once truncation is accounted for.” Neither should be treated as a precise promise — the sample is only 19 scenarios, and the author explicitly says training is still heading toward epoch 7.

How Big Is the Token Gap in Specific Scenarios?

Averages are easy to gloss over; individual scenarios make it concrete. Here are four examples with complete numbers.

Scenario Base model output tokens Epoch 5 output tokens Gap
Home cutaway 184685 (completed under a 256K context) 29567 About 84% fewer
Voxel cherry blossom bonsai 38287 19576 About 49% fewer
Manhattan model 44246 29427 About 33% fewer
Voxel red panda 55761 37898 About 32% fewer

The home cutaway is the most extreme case. The base model needed a 256K context just to finish, while epoch 5 wrapped up inside 64K using 29567 tokens; its shortest run used only 24404 tokens, 86.8% fewer than the base model’s longest run. That 86.8% often gets quoted on its own, but it’s actually a ratio between the base model’s longest run and epoch 5’s shortest run — a difference between two extremes, not an average.

The 32% to 49% across the first three scenarios is closer to your intuition of “saving about a third on average.” It also explains why the 34.7% average looks flat: some scenarios differ hugely, while others differ by only around 30%.

🎯 Technical tip: If you want to reproduce this comparison, fix the same prompt and seed and change only the model version — otherwise scenario differences will drown out the token gap. If you plan to cross-check output length across multiple models, you can switch between them through a single interface with APIYI at apiyi.com, saving yourself the time of reconfiguring clients over and over.

After Inkling 2 Cuts Tokens, Can It Still Draw the Scenes?

The scariest side effect of saving tokens is “shorter, but also broken.” The author used a 70-run panel to check exactly this, with the criterion being that WebGL rendering appears in the browser and there are no page errors or console errors.

Metric (70-run panel) Base epoch 4 epoch 5
Completed HTML output 57/70 Not reported 70/70
Hit the 64K ceiling and got truncated 12 times Not reported 0 times
Browser pass 44/70 59/70 56/70

Two things in this table are counterintuitive. First, the base failed to produce complete HTML 13 times, and 12 of those were truncations at the 64K ceiling—meaning “didn’t finish writing” was itself the main source of failure. Second, epoch 4’s browser pass rate was 59/70, higher than epoch 5’s 56/70.

Epoch 5’s advantage is stable endings: all 70 runs produced complete HTML, never once hitting the ceiling. What it sacrificed was a small share of “runnable” results, dropping from 59 to 56. The author didn’t explain this regression; given that training is still heading toward epoch 7, it looks more like normal fluctuation during training than a final outcome.

Inkling 2’s Browser Pass Rate Should Be Viewed Separately from “Whether the Scene Matches the Prompt”

The 56/70 figure only tells you that “the page runs, there are no errors, and something was actually drawn.” The author was clear about it: browser pass does not equal the scene matching the prompt.

This makes a big difference in practice. A scene might render normally in the browser, but the camera position, object proportions, lighting direction, and your description could be completely different—and that kind of deviation is exactly what automated checks are worst at catching. So 56/70 is closer to a “runnable rate” than a “deliverable rate.” If you want to use it in production, you’ll still need to add a layer of manual or visual comparison.

inkling-2-3d-scene-token-savings-en-image-2

Getting Started Quickly with Inkling 2 for 3D Scenes

If your GPU’s context budget is tight, this preview is worth a trial run using the epoch 5 numbers. The onboarding path isn’t complicated—the key is not to touch a few parameters.

There are five release formats; pick based on your VRAM and use case:

  • Q4_K_M GGUF: Smallest footprint, good for first checking whether your prompt makes sense, with some quality loss.
  • Q8_0 GGUF: Lighter quantization, the middle-ground choice for local inference.
  • F16 GGUF: Essentially no precision loss, but the highest VRAM requirement.
  • Merged BF16: LoRA weights merged into the base model, so deployment loads one fewer layer.
  • Standalone LoRA: Keeps the adapter as a separate load, making it easy to reattach after a base model update.

The sampling settings used in the evaluation were a context limit of 65536, reasoning effort 0.9, and top-p 1.0. Copy these three values as-is for now—change any one of them and the output length shifts, so 34.7% is no longer a number from the same baseline. The task shape has to line up too: single-file HTML, Three.js r160 core ES modules, hand-written camera, no plugins. If any of those change, the length comparison loses its comparability.

Once the parameters are aligned, there’s really only one thing to change on the calling side. With an OpenAI-compatible client, point base_url to https://api.apiyi.com/v1; the rest of the request structure stays the same as usual, and switching models means changing just one field.

🚀 Quick start: If you don’t have a local environment yet, sign up for an account through APIYI at apiyi.com to get free trial credits, run a few rounds of prompts through the unified OpenAI-compatible interface, confirm the scene description itself isn’t ambiguous, and then decide whether to invest in local deployment.

Generating 3D scenes in the cloud: how do you work out the token bill?

Let’s get one thing straight first: Inkling 2 Mini-3D-Coder isn’t in APIYI’s model list right now, and neither is Inkling 2 Mini. This LoRA hasn’t been listed yet—we’ll get it up as soon as we can; model names and pricing are subject to the platform’s model list.

So for now, if you want to generate scenes in the cloud, the on-shelf unit prices you can compare against are those of two other general-purpose models. The main difference between them comes down to output pricing:

Model on shelf Input price Output price Cached read price
gemini-4-hydrogen $1.5 $7.5 $0.075
gemini-4-carbon $4 $20 $0.2

To get this math right, there’s one premise you need to set straight: that 34.7% on the local side is a relative difference measured under “same base model, same sampling parameters, 19 scenes”—you can’t just multiply it onto any row of the bill above. What you save in the cloud is the output token line item, and the exact amount depends on the output unit price of the model you actually invoke.

The estimation method isn’t complicated. Take the 29567-token output from that household cutaway as an example: you just multiply 29567 by the output pricing unit of the model you’re invoking, and that’s the output cost for that run. Swap in gemini-4-carbon and you multiply that number by its higher output unit price—the gap between the two widens noticeably. Conversely, if you write scenes more concisely in the cloud, the savings land on the same line item, regardless of the input-side unit price.

💰 Cost tip: For exact pricing units, cache-hit rules, and available models, refer to the model list at APIYI apiyi.com. When budgeting, first convert using the actual unit price of the model you’re invoking, then use the percentages in this article as a sensitivity reference. Do it the other way around and it’s easy to skew the math.

FAQ

Q1: What is Inkling 2 Mini-3D-Coder?

It’s a rank-16 LoRA layered on top of Thinking Machines Lab’s Inkling 2 Mini, trained with Tinker, specifically to get the model to write a Three.js r160 scene in a single HTML file. It’s an early preview for now — what’s public is the epoch 5 snapshot.

Q2: How is it different from just asking the base model to write Three.js scenes?

The main differences are output length and the ability to actually finish. The base model left 13 of 70 panel runs unfinished, and 12 of those hit the 64K ceiling. Epoch 5 finished every run without hitting the ceiling once, and emitted 34.7% fewer tokens on average. The trade-off: the browser pass rate didn’t climb to the top alongside it — epoch 4’s 59/70 was actually higher.

Q3: Are 34.7% and 86.8% final numbers?

No. Both come from the author’s own testing on the epoch 5 snapshot, using 75 prompt-and-seed pairs across 19 scenes, and the author explicitly notes that training is still moving toward epoch 7. On top of that, 86.8% is the result of subtracting extremes: it’s the ratio of epoch 5’s shortest 24404 tokens to the base model’s longest 184685 tokens, so it’s not something you should cite as an average.

Q4: Does saving tokens make scenes more likely to come out wrong?

Judging by runnability, there’s no obvious regression — epoch 5’s browser pass rate is 56/70 versus 44/70 for the base. But the author is clear that a browser pass doesn’t mean the scene matches the prompt. “It runs” and “it looks like what you asked for” are two different things, and you’ll still need to eyeball the latter yourself.

Q5: What do I need to get started, and can I change the parameters?

It ships as three GGUF formats — Q4_K_M, Q8_0, and F16 — plus a merged BF16 and a standalone LoRA. My advice is to copy the eval settings verbatim first: context 65536, reasoning effort 0.9, top-p 1.0. Change any one of those and output length shifts, at which point the 34.7% is no longer comparable.

Q6: Can I call this LoRA directly on APIYI right now?

Not yet. APIYI’s model list as of 2026-12-03 doesn’t include Inkling 2 Mini-3D-Coder, or Inkling 2 Mini either. This model isn’t listed yet, and we’ll get it up as soon as we can — check the platform’s model list for the exact model names and pricing. In the meantime, you can use other listed models on APIYI (apiyi.com) to validate your prompts and scene descriptions.

Q7: If I generate scenes in the cloud, how should I estimate the bill?

Estimate it as “number of output tokens × the actual output unit price of the model you’re calling.” gemini-4-hydrogen is $7.5 for output; gemini-4-carbon is $20. Input pricing is $1.5 and $4 respectively, and cached reads are $0.075 and $0.2. Don’t take the local 34.7% saving and apply it directly to those two bills — that’s a relative difference measured under different conditions.

Q8: What are its known limitations?

Three are pretty clear. First, it’s a preview, so the numbers will change as training continues. Second, both training and evaluation were done in plain text, and the image projection comes from the base model rather than this fine-tune layer. Third, the sample is only 19 scenes, so extreme values can easily skew the average. On top of that, it only targets single-file Three.js r160 core ES module scenes — switch frameworks or switch approaches, and there’s no guarantee you’ll get the same savings.


Key Takeaways for Writing 3D Scenes with Inkling 2

  • The core numbers: In the author’s own tests, epoch 5 produced 34.7% less output on average — 35.8% once you include 12 reruns that hit the cap.
  • Extreme case: A cutaway view of a house dropped from 184,685 tokens to 29,567, with the shortest run at 24,404 — 86.8% less than the base model’s longest.
  • Finishing ability: Across 70 panels, epoch 5 always completed the HTML without maxing out 64K; the base model managed only 57/70.
  • Pass rate isn’t fidelity: 56/70 passing in the browser only means it runs — the author is explicit that this doesn’t mean it matches the prompt.
  • Version status: epoch 5 is an early preview snapshot, training continues toward epoch 7, and these numbers aren’t final.
  • Cloud math: Don’t apply local percentages to your bill — cloud pricing follows the output rates for gemini-4-hydrogen or gemini-4-carbon.
  • Getting started: With an OpenAI-compatible client, point base_url at https://api.apiyi.com/v1, or grab free credits at APIYI apiyi.com first to validate your prompt.

Summary

Back to the original question — this LoRA’s answer comes down to three points:

  1. It really does save a lot: 34.7% less output on average, up to 86.8% in the most extreme case, and almost all of that gain comes from “being able to finish within 64K.”
  2. The cost is tail performance: the browser pass rate wasn’t optimized alongside token count — epoch 4 was even higher — so runnability and visual fidelity have to be evaluated separately.
  3. Don’t apply it across scenarios: 19 scenes, a single base model, a preview release. These numbers work as a directional reference, not as a budgeting basis.

If your local GPU keeps getting maxed out by output, trying epoch 5’s settings for a round is reasonable. If you’re going through the cloud, confirm the model you want to call is available and check its output pricing before talking about how much you’ll save.

If you want to compare output lengths across different models on the same prompt, start with the free credits at APIYI apiyi.com — one API key through a unified interface saves you the repeated setup.

Reference Materials

  1. Mindstudio Blog: Inkling 2 Mini-3D-Coder Token-Saving Benchmarks

    • Link: mindstudio.ai/blog/inkling-2-mini-3d-coder-benchmarks
    • Notes: Recounts the measured figures from the model card along with the results of 70 panels — most of the percentages in this article come from here.
  2. Inkling 2 Mini-3D-Coder Model Page

    • Link: modelscope.ai/models/ccore/Inkling-2-Mini-3D-Coder
    • Notes: The author’s original write-up from their own testing, the training data composition, and the list of release formats.
  3. APIYI Model and Pricing List

    • Link: apiyi.com
    • Notes: Used to verify the models currently listed, output unit prices, and cache pricing rules — model availability status is based on this source.

Author: APIYI Technical Team
Technical Discussion: Feel free to reach us through the APIYI website homepage; more materials are available at the docs.apiyi.com documentation center.

Similar Posts