Are Open-Source LLMs Free? Pricing Models and Local Deployment Explained

    This article breaks down what "free" actually means for open-source large language models by separating three layers: model weights, hosted chat services, and metered APIs. It compares the cost structures of three usage paths—official online portals, hosted API calls, and self-hosting on local hardware or private cloud—and explains the key constraints of local deployment, starting with VRAM estimation and quantization. You will also find a practical cost-modeling template, engineering fallbacks for rate limits and "service busy" errors, a selection checklist, and common misconceptions to avoid.

    1. Defining the Real Boundary Between Free and Paid

    The question “is it free software?” sparks debate because it blends three separate things into one: whether model weights are open, whether the online service is charged, and whether API calls are billed by usage. A rigorous answer requires pulling these three layers apart.

    Model layer: open source means accessible weights. Open-source LLMs are typically released as downloadable weight files with a license attached. The license defines commercial scope, redistribution conditions, attribution requirements, and whether derivative changes must be made public. So “open source” does not mean “unconditionally zero cost”—it shifts the cost from licensing fees to compute and operations.

    Service layer: free tiers on online chat portals. Platforms that offer an online chat entry point often trade free quotas for user scale and feedback data, while capping total spend through rate limits, queues, and context-length ceilings. The “service busy” message you see at peak hours is essentially queuing in a shared resource pool, not a software failure.

    API layer: metered billing is the industry norm. When you call a model through an API, billing usually depends on input and output token counts, number of calls, concurrency tier, and whether long context or retrieval augmentation is enabled. Per-unit pricing and metering conventions vary widely across vendors and change over time, so any concrete price should be taken from the official billing page at the time you connect. This article cites no numbers that cannot be verified.

    Bottom line: if you only need everyday Q&A and writing assistance, the free quota on an online portal is usually enough. If you need to reliably carry business traffic, you must pay for compute and operations—whether through an API or self-hosting.

    2. Cost Structure of the Three Usage Paths

    Path A: the official online portal. The cost form is “zero cash outlay + time cost.” The upside is no deployment and continuously updated model versions. The downside is availability that depends on a shared resource pool, data that must be uploaded to the provider, and difficulty meeting strict data-residency requirements.

    Path B: calling a hosted API. The cost form is “pay per usage + minor client-side changes.” The upside is elasticity, fast time to launch, and no need to care about GPU models. The downside is that marginal cost grows linearly under sustained high-frequency calls, plus sensitivity to network conditions and rate-limit policies. It suits projects with volatile traffic and short validation cycles.

    Path C: self-hosting on local hardware or private cloud. The cost form is “one-time hardware investment or a cloud annual/monthly commitment + ongoing electricity and staff.” The upside is data control, deep customization, and unit inference cost that falls as utilization rises. The downside is a high entry barrier, requiring GPU VRAM, an inference framework, monitoring and alerting, and canary-release capability.

    A common rule of thumb: when average daily call volume is stable and contexts are long, amortized self-hosting cost more easily comes out ahead; when calls are sparse or peak-to-trough swings are extreme, metered APIs are more economical.

    3. The Key Constraint in Local Deployment: VRAM Is the First Principle

    Whether self-hosting can run at all depends first on VRAM capacity, not CPU or system memory. A rough estimation formula builds intuition:

    1. VRAM need ≈ parameters × bytes per parameter + KV Cache + framework and activation overhead
    2. bytes per parameter: FP16 ~2, INT8 ~1, INT4 ~0.5

    Example: a 7-billion-parameter model in FP16 needs about 14 GB for weights alone. Add context caching and runtime overhead, and a single 24 GB-class device is already near its limit. If you expand the context from 2K to 32K, the KV Cache swells significantly, at which point quantization or tensor parallelism becomes almost mandatory.

    Three engineering concerns also matter: first, batching strategy—continuous batching can significantly boost throughput; second, the accuracy loss from quantization, which must be validated on your business evaluation set; third, VRAM fragmentation and pre-allocation configuration in long-text scenarios.

    4. An Actionable Template for Cost Modeling

    Don’t decide by gut feeling. Fix the variables in a table:

    Variable Meaning Notes
    QPS Peak requests per second Determines the number of concurrent replicas
    Input/output tokens Average length Directly affects compute and bandwidth
    Average daily calls Total volume Used to amortize self-hosting cost
    Utilization Actual load / rated load Below 30%, self-hosting is usually uneconomical
    Staff cost Operations investment Often underestimated

    Suggested steps: first, collect two weeks of real traffic and use P95 rather than the average; then, work backward from your target time-to-first-token and throughput to derive the replica count; finally, fold electricity, depreciation, and staff into unit cost and compare it against the API quote on the same basis.

    5. Engineering Fixes for Availability and “Service Busy”

    Queuing and rate limiting are the norm for shared services. Mature teams build three layers of fallback:

    Client layer: exponential backoff retry with jitter, avoiding simultaneous retries that cause a secondary avalanche.

    1. import random, time
    2. def call_with_retry(fn, max_retries=4):
    3. for i in range(max_retries):
    4. try:
    5. return fn()
    6. except Exception:
    7. if i == max_retries - 1:
    8. raise
    9. time.sleep(min(8, 2 ** i) + random.random())

    Routing layer: primary/backup models and multi-tier degradation—switch to a smaller-parameter model first to preserve availability, then asynchronously compute complex tasks.

    Architecture layer: result caching, request coalescing, and streaming responses, turning long waits into perceptible incremental output.

    6. Selection Checklist

    • Can data leave the domain? If not, rule out public API options immediately.
    • Traffic shape: stable heavy load favors self-hosting; sparse and volatile favors metered billing.
    • Team capability: do you have experience with inference frameworks, monitoring and alerting, and canary releases?
    • Compliance requirements: license commercial terms, audit logs, and content safety policies.
    • Exit cost: avoid tight coupling to a single API; abstract a model gateway layer to make replacement easy.

    7. Common Misconceptions

    1. Treating “open source” as “zero cost” and ignoring hardware and staff.
    2. Looking only at unit price and not the metering convention—differences in input/output ratios can inflate the bill.
    3. Using average QPS for capacity planning; peaks will inevitably break through.
    4. Ignoring license terms and failing to verify redistribution and attribution requirements before commercial use.
    5. Going straight to maximum context, letting the KV Cache fill VRAM and throughput collapse.

    8. Conclusion

    There is no single answer to “free or paid”—only fit or no fit. Separate the model layer, service layer, and API layer, run an amortization model on real traffic data, then layer in data-compliance and team-capability constraints. That lets you make an explainable, reviewable technical choice among public portals, metered APIs, and private deployment. If an organization already runs inference services on Baidu AI Cloud’s compute and container platforms, the same modeling and fallback framework applies, keeping the architecture portable and costs under control.