Generating 3D Web Pages with a Lightweight AI Model: A Single-Test Case Study at ~0.18 RMB

    This article explores a case study where a lightweight AI model (224B total parameters, 12B activated) generated a functional 3D web page from scratch in a single run, costing approximately 0.18 RMB. We detail the generation process, MoE architecture, cost calculation formula, and practical test results, while outlining the model's boundaries, reproduction guidelines, and security compliance requirements. Ideal for developers seeking low-cost 3D web prototyping.

    Conclusion First

    This test completed a single task. The model generated a web page containing a 3D scene and control code from scratch. The page opens in modern browsers, displaying lighting, texture mapping, and orbit controls. Rotation and zoom functions were not verified item by item, and the original log did not list failure items. The total cost for this single test was approximately 0.18 RMB, with the original log providing no breakdown of input and output tokens.

    This result reflects only this single task. It does not prove the model’s stability in high-frequency development nor represent long-term costs.

    Suitable for: Developers looking to build low-cost 3D web prototypes who can conduct small-scale tests using the methods in this article.

    Not suitable for: Treating the single-test cost as a long-term benchmark, or using the shorter wall-clock time as proof of efficiency improvement.

    Boundaries of the Test

    The original materials did not specify the public name or version of the tested model; it is referred to as the “test model” below. The materials mentioned approximately 224 billion total parameters, 12 billion activated parameters, and a 1 million token context, but these figures lack official sources and cannot be verified individually. The parameter numbers mentioned below are used solely to understand the architecture. Please consult the official technical documentation before quoting, and verify the documentation address yourself.

    This test was run only once, without a control group or multiple averages. The time, cost, and efficiency metrics mentioned represent only this single result.

    Architecture: Large Total Parameters, Small Single Computation

    Mixture of Experts (MoE) is a common architecture for this type of model. The model contains many expert sub-networks internally, but only a small fraction is activated for each input. The materials state the test model has about 224 billion total parameters and activates approximately 12 billion during a single inference.

    This design reduces single-pass computation and inference costs. However, since all total parameters must still be loaded into memory or VRAM, a lower number of activated parameters does not lower the hardware threshold for self-hosted deployment. API users primarily care about billing and speed, whereas self-hosting teams must evaluate hardware independently.

    The materials also claim the model supports a 1 million token context and outputs 30% to 40% less content on average than similar models. These claims come from the materials themselves and have not been statistically validated across multiple tasks. Longer inputs increase costs, and the model’s attention to the middle section of excessively long content may decline. In practice, you can first have the model read the directory structure, then read specific files in chunks by module.

    Pricing and Cost Calculation

    The materials list the price as: 0.5 RMB per million input tokens, and 2 RMB per million output tokens. Prices may change; please refer to the official pricing page before use.

    The formula for single-pass cost is as follows:

    Single Cost = (Input Tokens / 1,000,000 * Input Unit Price) + (Output Tokens / 1,000,000 * Output Unit Price)

    Below is a hypothetical example for demonstration purposes, not actual test data. Suppose a task uses 250,000 input tokens and 27,500 output tokens:

    • Input cost: 0.25 * 0.5 = 0.125 RMB
    • Output cost: 0.0275 * 2 = 0.055 RMB
    • Total: ~0.18 RMB

    This example is only to demonstrate the calculation method. The original log stated 0.18 RMB as the total test cost without providing the actual token counts for input and output, making it impossible to reverse-engineer the exact breakdown using the formula.

    Cost accounting should also include costs beyond the above results: tokens consumed by failed tasks, retries after errors, platform or gateway service fees, and cumulative calls during debugging. If a task averages two to three retries, the actual cost will increase accordingly.

    In older records, a similar task using a flagship model cost about 3.6 RMB. Because the prompts, token counts, and running environments of the two tests were not publicly compared, a precise multiplier cannot be calculated, nor can the gap be entirely attributed to unit price differences.

    Test: Generating a 3D Web Page from Scratch

    The test task required the model to build a web page with a 3D scene from scratch, featuring rotation and zoom interactions. The task was divided into four steps:

    1. Requirement Understanding: Extract three elements from natural language: 3D scene, interactive controls, and responsive layout.
    2. Technology Selection: Recommend technical solutions, such as Three.js or native WebGL.
    3. Code Generation: Generate HTML, CSS, and JavaScript step by step.
    4. Self-check and Fix: Check syntax, validate logic, and attempt to fix discovered issues.

    The test results are as follows:

    Metric Result Measurement Criteria Control Context
    Completion Time Single task wall-clock time ~60% less than previous record Single task wall-clock time, sample size 1 Previous task differs, cannot be an efficiency conclusion
    Page Execution Opens in modern browsers, includes lighting, texture mapping, orbit controls Manual check once, no automated testing None
    Interactive Features Task required rotation and zoom; original log did not list results item by item Not recorded Not recorded
    Self-check and Fix Not listed in original log Not recorded Not recorded
    Failure Items Not listed in original log Not recorded Not recorded
    Single Cost ~0.18 RMB Total cost for single test, tokens not split None

    The “~60% less” is derived from comparing the single-task wall-clock time with a previous record, but the previous task was different. This figure can only serve as an observation and cannot be concluded as an efficiency improvement.

    Reproduction Record Checklist

    If you want to verify using the same method, please record at least the following information:

    • Model Name and Version: If the vendor does not disclose it, state “Undisclosed”.
    • Complete Prompts: Including system prompts and the input for each step.
    • Running Environment: Invocation method, platform, temperature, and other parameters.
    • Browser version and Three.js version.
    • Input tokens, output tokens, and total cost, recorded separately.
    • Number of retries, and the reason for each failure.
    • Original Artifacts: Save call logs, billing statement screenshots, browser console screenshots, and running screen recordings. Billing screenshots verify the 0.18 RMB; recordings verify rotation and zoom.
    • Manual Acceptance Criteria: Can it rotate and zoom? Are lighting and textures correct? Are there console errors?
    • Results from multiple runs; do not keep only one.

    FAQ

    Are lightweight models reliable for 3D web pages? In the single test, it generated an openable page, but reliability requires multiple tests to judge.

    How is the 0.18 RMB calculated? Using the formula above: input cost plus output cost, plus retries and platform fees. The original log did not provide a token breakdown, so the 0.18 RMB cannot be reverse-engineered by the formula, and the demo example does not represent actual test data.

    How to choose for high-frequency development? First run your real tasks 10+ times, tracking success rate, average cost, and manual modification time.

    What to record for reproduction? Refer to the checklist in the previous section.

    What are common failures? The original log did not list failure items, so they need to be recorded separately during reproduction. When troubleshooting 3D web page generation failures, first check for console errors, then verify the Three.js version and script import paths, and finally check if the generated code is complete.

    Security and Compliance

    Do not paste code with secret keys or environment variables into prompts. Generated code requires dependency and license scanning to confirm that each third-party library’s license permits your use. Before deployment, check the Content Security Policy (CSP), validate user input, and confirm the loading sources of external resources. Performance and security testing are also essential, especially for parts involving user input or loading external resources.