Can Open-Source APIs Replicate Web Apps? Testing Six LLM Groups
This article reviews an experiment testing whether six groups of large language models can independently replicate a web application using open-source APIs. Covering test methodologies, API validation strategies, optimization priorities, and engineering risks, it provides qualitative insights and practical recommendations for developers using AI to clone web applications.
Recently, a cloud provider open-sourced its omni-modal API, featuring capabilities like deep thinking, file parsing, and voice interaction. Their tech blog claimed that developers could achieve a “1:1 replication” of their conversational app using these interfaces. This move is relatively rare in the highly competitive AI market. Simultaneously, user quotas were adjusted, leading to speculation that the provider aims to encourage developers to build their own ecosystems, thereby freeing the core team to focus on artificial general intelligence (AGI) research. Regardless of the underlying motives, this article focuses on a verifiable question: Can mainstream large language models (LLMs) independently replicate a web application under identical tasks?
1. Test Scope and Criteria
The test subjects were six groups of LLMs, encompassing flagship versions and lightweight agent collaboration modes. Because the original report omitted specific model versions, full prompts, toolchains, and runtime environments—and its model codenames could not be verified—this article refers to them as “Model A to F.”
The task was divided into two rounds. The first round provided only requirements, testing the models’ planning and resource-gathering capabilities. The second round supplied API access keys to simulate a real development environment. Each group was required to deliver three items: functional documentation and architecture diagrams, a replicated web page with matching visuals and interactions, and an optimized iteration of that page.
Evaluation dimensions included fidelity, functional completeness, bug count and fix rounds, API validation depth, the quantity and necessity of optimizations, and time spent. As the original report did not publish specific metrics for these dimensions, the comparisons below are qualitative observations rather than rankings.
2. Validating Business Logic After Receiving API Keys
The second round revealed significant differences in how models validated API keys. Some models simply sent a greeting message and stopped upon receiving an HTTP 200 status code. This smoke test only proves that the interface is reachable, not that the business logic is correct.
Other models actively constructed multi-turn conversations with historical messages to check context management, streaming output, and session isolation. This exploratory testing aligns more closely with standard engineering practices. When validating, developers should at least cover the following points:
- Multi-turn context: Can the model correctly reference previous messages?
- Streaming interruptions: Can the frontend state recover gracefully if the stream breaks midway?
- Concurrency: Do parallel sessions for different users experience data interference?
- Error handling: Does the UI display clear prompts when rate limits are hit or error codes are returned?
3. Restore First, Then Optimize
Some models, after completing the replication, focused their optimizations on core experience features such as dark mode adaptation, shortcut panels, and context compression for long conversations. Others leaned heavily into animations, offering limited improvements to overall usability.
It is recommended to first ensure that the replication fidelity meets standards, and then evaluate each optimization item: Does it solve a real pain point? Does it increase maintenance costs? Does it impact existing features?
4. Easily Overlooked Deployment Details
One model noted in its product report that sharing acceptance links requires changing the browser environment. Such issues are typically related to Cross-Origin Resource Sharing (CORS) configurations and caching, and they usually only surface after actual deployment. It is advisable to perform a complete walkthrough in an independent, cache-free environment before handing the project over for acceptance testing.
5. Engineering Risks and Precautions
The original report mentioned that a few models generated API call logic with hardcoded key names in the source code. Since no code snippets were provided, the exact implementation cannot be confirmed. Developers should inspect frontend code and build artifacts, searching for key strings and hardcoded endpoint addresses.
The report also found that some optimized pages called API parameters that do not exist in the documentation. To mitigate these risks, the following measures are recommended:
- Store keys on the server side or in environment variables; the frontend should not hold long-term valid keys.
- Apply least privilege to keys and rotate them regularly.
- Build contract tests against the official documentation; trigger errors for undocumented parameters.
- Conduct human code reviews on AI-generated code, particularly for authentication, data storage, and network requests.
6. Conclusion and Applicability
This test indicates that, under the given tasks and with human review, some models can produce high-fidelity prototypes. However, this conclusion applies only to the task setup in this article and does not imply that the output is ready for production environments. Given the incomplete data in the original report, readers should treat these observations as references rather than rankings.
In real-world projects, AI-generated code still requires human review, production-level contract testing, and regression testing. Developers must clearly articulate requirements, understand the underlying architecture, and be capable of detecting and fixing abnormal behaviors in model outputs.
