What to Do When Your Free Quota Runs Out: API Recharge and Front-End Self-Hosting Guide

    This article explains how to continue using AI services after the free quota is exhausted. It covers two main approaches: directly recharging via the developer platform's API and self-hosting the open-source front-end demo. It details the billing paths, compares front-end self-hosting with true local inference, and provides step-by-step instructions for three usage methods. Finally, it offers an API key security checklist and a cost estimation framework for pay-as-you-go pricing.

    Conclusion First

    The consumer App of this team does not have a recharge entry point. Once the free quota is exhausted, there are generally two ways to continue using it: apply for an API Key on the developer platform, pre-recharge, and pay per call; or wait for the quota to reset. The open-source front-end Demo can be self-hosted, but it merely changes the interface. Every conversation is still sent to the cloud API, meaning the costs and limits remain unchanged.

    Where is the Paid Path

    The team focuses its commercialization efforts on the developer platform (Platform). Users need to register on the web console, bind a payment method, pre-recharge, and then create an API Key. This is pay-as-you-go, not a monthly or annual subscription. Once the recharged balance is depleted, most platforms will reject new requests, requiring another recharge. Specific billing rates, validity periods, and refund conditions are subject to the platform’s published terms, which should be read carefully before use.

    Front-End Demo Self-Hosting: What It Can and Cannot Do

    The official open-source chat Demo has an interaction style similar to the online product. Users download the release package, open it in a browser, enter the API Key in settings, and start using it. The interface is provided by the user’s own device or server, but the model’s computation still happens in the cloud.

    The following table compares front-end self-hosting with true local inference:

    Item Front-End Self-Hosting (Official Demo) True Local Inference
    Model Weights Location Cloud Local machine or private server
    Inference Compute Location Cloud Local GPU or CPU
    Internet Connection Required Yes Can run offline after downloading weights
    Main Costs Pay per API call Hardware, electricity, and model licensing conditions
    Destination of Conversation Content Passed through API provider Can remain local
    Hardware Requirements Low Depends on model size, usually high

    It can be seen that self-hosting the front-end may bypass the App’s entry restrictions, but it will not bypass API quotas, billing, and rate limits. To run truly offline, you need to obtain the model weights separately, deploy an inference engine, and verify whether the model’s license allows such usage.

    Three Specific Use Cases

    1. Local Extraction and Execution

    Suitable for users who do not want to configure a development environment. Steps are as follows:

    1. Download the Release zip package from the official release page (links provided in the official repository or documentation). Do not use packages from unknown sources.
    2. If the release page provides a checksum (such as SHA256), verify it after downloading to ensure the file has not been tampered with.
    3. Unzip and double-click the HTML file to open it in a modern browser like Chrome, Edge, or Safari.
    4. Enter the API Key in settings and send a test message to confirm the connection is working.

    If you want to import online conversation records, first check if the exported file contains sensitive personal or corporate information. After import, conversation data is usually saved in the browser’s local storage, depending on the Demo’s implementation. Records may be unrecoverable if you switch devices or clear browser data.

    2. Static Page Hosting

    If the official documentation provides a static Demo URL, you can open it directly on your phone, tablet, or another computer. This URL only serves the front-end page; conversation inference requests still call the API. It should not be relied upon as an officially hosted service: the official team makes no availability guarantees and does not promise to retain it long-term. Before accessing, confirm the link is indeed from the official documentation and check if the project license allows usage on other devices.

    3. Secondary Development and Self-Hosting

    Users with basic front-end knowledge can modify and deploy it themselves. Steps include:

    1. Execute the build command in the source code repository to generate static artifacts (usually the dist directory). See the project’s README for specific commands.
    2. Upload the dist directory to static hosting platforms like GitHub Pages or Cloudflare Pages, or deploy automatically via a CI pipeline.
    3. Bind a custom domain and enable HTTPS.
    4. If multi-user or multi-device access is needed, add login authentication.

    There is a critical risk to note here. In pure front-end projects, the API Key is packaged into the page or saved in the browser. Anyone who can open the page might see it via developer tools. For public deployments, you should add a proxy layer on the server side: the server saves the Key and forwards requests, while the front-end only holds the user’s own login credentials.

    To sync conversation records between a computer and a phone, a database and backend API are required, which significantly increases the workload. The modified interface and features can be adjusted as needed, but the model capabilities, available quota, and service stability are still determined by the API terms of service. The modification itself cannot exceed the officially provided capabilities.

    API Key and Cost Control Checklist

    • Use a common email for registration and enable two-factor authentication (2FA) for the account.
    • Confirm billing rules, balance validity, and refund conditions before recharging.
    • Create a separate API Key for each project to track usage and facilitate individual revocation.
    • Set up usage alerts or spending limits in advance if the platform supports them.
    • Never hardcode API Keys into code, screenshots, or public repositories. If accidentally committed, revoke and regenerate immediately.
    • Review bills regularly. Rotate the Key immediately if anomalous calls are detected.
    • For high-consumption tasks like long text or role-playing, estimate the single-call cost using a short sample first before deciding on long-term use.

    How to Estimate Costs After Free Quota Exhaustion

    The difference between pre-paid and subscription lies in the pricing model. Users accustomed to monthly subscriptions and easy cancellation often feel uncomfortable with the recharge-then-consume approach. This feeling is real, but it reflects that the two pricing models target different usage habits; it does not indicate a flaw in the product design.

    To estimate pay-as-you-go costs, use a simple formula: average number of tokens per conversation, multiplied by the unit price, multiplied by the number of monthly conversations. The resulting monthly cost can be compared with subscription prices and the total cost of local hardware. If you only use it for a short period each day, pay-as-you-go is usually cheaper. For long-term, high-frequency calls, hardware depreciation, electricity, and maintenance time must be factored in.

    From the service provider’s perspective, a common interpretation is that pre-paid users have more defined usage purposes and lower churn costs. This is mere speculation; this article has found no public data to support it, and readers should not treat it as an established fact.

    Conclusion

    By open-sourcing the front-end Demo and providing APIs through the developer platform, this team allows users to decide where to deploy the interface and which paths the data passes through. This approach indeed improves transparency. However, one thing remains unchanged: inference is still done online, and pay-as-you-go billing still applies. Understand this clearly before judging whether self-hosting is worth the time investment. If your need is long-term offline usage, you must separately evaluate the model weights, hardware, and licensing conditions, rather than relying on this front-end Demo.