How-to

How to self-host an LLM

Run model weights on infrastructure you control, with full ownership of the data boundary.

Short answer. Self-hosting an LLM means running model weights on your own infrastructure. Plan GPU capacity, choose a serving stack with an OpenAI-compatible endpoint, secure the network and add observability before going live.

What self-hosting an LLM means

Self-hosting an LLM means running the model weights on infrastructure you control, rather than calling a hosted API. You own the hardware, the network boundary and the data flow. The trade-off is operational burden: GPUs, capacity planning, patching and model updates become your problem. This guide covers the decisions you need to make before committing.

Hardware and GPU planning

Start with your throughput and latency targets. Model size, quantisation level and batch size determine VRAM needs. Plan for peak concurrency, not average. Include headroom for model swaps and updates. If you cannot size confidently, run a short benchmark on representative prompts before buying hardware.

Model selection

Choose models that fit your hardware and your use case. Larger models are not always better for a given task. Consider quantised variants for lower memory, and keep a fallback model for overload. Check licence terms for commercial use and redistribution.

Serving stack

Pick a serving framework that matches your needs: vLLM, TGI, llama.cpp, Ollama or a managed runtime. Look at OpenAI-compatible endpoints, batching, speculative decoding and observability. Test streaming and tool calling, since these are where implementations differ.

OpenAI-compatible endpoint

Expose an OpenAI-compatible API so your application code stays portable. This also lets you fall back to a hosted provider if your own capacity is exhausted. Keep the base URL in configuration.

Networking and security

  • Private network only; no public endpoints unless required.
  • TLS termination and mTLS between services.
  • Key-based authentication and per-tenant limits.
  • Audit logging without storing prompt bodies unless needed.

Observability

Track tokens per second, time to first token, queue depth, GPU utilisation and error rates. Alert on saturation before users notice. Log enough to debug, but avoid storing sensitive prompt content by default.

Capacity and scaling

Plan horizontal scaling: multiple GPUs, model replicas and a load balancer. Decide whether you need autoscaling or fixed capacity. Pre-warm replicas to avoid cold starts. Test failover by removing a node during load.

Updates and maintenance

Schedule model and runtime updates with a rollback plan. Keep a staging environment. Document the change window and who approves it. Track which model version served which request for audit.

When not to self-host

If you do not have GPU operations capacity, or your volume is low, a hosted API is usually cheaper and faster to ship. Self-hosting makes sense for data-boundary requirements, predictable high volume, or workloads where you need full control over the model and runtime.

Cost reality

Self-hosting has fixed costs: hardware, power, cooling and ops time. Compare total cost of ownership against a flat-rate hosted API at your expected volume, including peak headroom. Include the cost of on-call coverage.

Pricing, plans and limits

Plugsky plans are flat-rate: Builder at $20 per month, Scale at $60 per month and Enterprise at $120 per month, with no monthly token cap on Builder and Scale tiers. There are no overage fees on the flat plans. Fair-use and abuse limits still apply and are stated in the terms of service. Enterprise terms, including dedicated capacity and SLAs, are agreed in writing per engagement. A 7-day money-back guarantee applies to paid plans.

Across all plans you get access to 39 public models through one OpenAI-compatible endpoint, with per-key rate limits and concurrency controls documented in the docs. If you need guaranteed throughput for a launch or a regulated workload, ask about dedicated capacity rather than relying on shared limits.

Security and compliance posture

Plugsky provides authentication, role-based access control, SSO via SAML, audit export, spend controls and bring-your-own-key (BYOK). Private deployment options include VPC, on-premises and air-gapped. Plugsky does not claim ISO 27001, SOC 2 or FedRAMP certification. Controls and deployment options are described; suitability for a regulated environment is determined by your own review against your requirements.

Support and service levels

We reply to inquiries within one business day, and same-day on WhatsApp during GCC business hours. The shared service targets 99.9% uptime, excluding the Hobby tier, governed by a signed order form. Private deployments and SLAs are agreed per engagement. We do not publish customer logos, case studies or metrics without written approval.

Migration and exit

Because the API is OpenAI-compatible, migration in is usually a base-URL change. Migration out is also straightforward: your prompts, tools and parsing are standard, so you can move to another OpenAI-compatible provider without rewriting. Export your keys, usage data and audit logs before cancelling. We do not lock you in through proprietary formats.

Getting started

Start with the docs, test against the sandbox, then move to a paid plan when ready. For private deployments, residency requirements or partner terms, contact us first so we can scope the engagement before you commit.

Implementation checklist

Before going live, confirm the following: the base URL and model identifiers are configured in your client; keys and per-tenant caps are set; rate and concurrency limits are understood; observability and audit export are wired into your stack; and a runbook covers failover, key rotation and incident response. For private deployments, also confirm network egress rules, backup and DR regions, and the update cadence. Review the terms of service and the data processing terms before signing.

If you are migrating from another provider, run a parallel test: send the same prompts to both endpoints and compare outputs, latency and cost on your own workload. Do not rely on benchmark tables alone. Document the rollback plan before cutover. Keep a copy of your prompts and expected outputs so you can re-run the comparison after any model or platform update.

Operational considerations

Plan for key rotation, log retention and cost monitoring from day one. Set spend alerts per key and per tenant so a runaway loop is caught early. Keep an eye on model deprecation notices and test successor models before the old ones are retired. For teams, document who owns the API keys and who can rotate them, and review access quarterly.

Related pages

Get started in minutes

OpenAI-compatible API with all public models, a 7-day money-back guarantee and a 99.9% uptime SLA. No code changes required.

Start Free → Read the docs