Short answer. Call a hosted, OpenAI-compatible API from a thin service layer in your application. Give each tenant its own key or endpoint, route routine work to a small model and hard work to a frontier model, keep retrieval and prompts in your codebase, and keep the base URL and model map in configuration. You inherit serving, failover and model updates; you keep the product logic and the customer relationship.
Key facts
| API surface | OpenAI-compatible /v1/chat/completions; one integration for the catalogue |
|---|---|
| Tenant isolation | Separate API keys or endpoints per tenant for attribution and control |
| Routing | Model routing lets one feature call different model tiers by task |
| Retrieval | Embeddings and RAG are documented as live for per-tenant knowledge |
| Structured output | JSON mode keeps AI output inside your application schemas |
| Deployment | Cloud, private VPC, on-premises or air-gapped by contract for enterprise customers |
| Pricing model | Flat monthly self-serve plans; no per-token billing on self-serve |
| Endpoint roadmap | Chat, streaming, JSON mode, function calling, embeddings, RAG and agents are documented as live; check the docs for the current endpoint list |
| Catalogue | 39 public model IDs; 262,144-token serving context on the main text models, with specialist exceptions |
TL;DR
- Ship AI features with API calls, not GPUs, queues and model operations.
- Isolate tenants with separate keys or endpoints and meter usage per key.
- Route easy tasks to small models and hard tasks to frontier models.
- Offer residency and private deployment to close enterprise deals.
- Keep prompts, retrieval and schemas in your codebase where they belong.
What “AI for SaaS” means in practice
There are two different products hiding under the phrase. The first is AI inside a SaaS application: a summarise button, a search box that understands intent, a drafting assistant, a classification step in a workflow. The second is AI as the SaaS product: you resell model access behind your own interface. Both use the same API; they carry different obligations.
For the first, the buyer is your existing customer and the feature has to fit an interface they already understand. For the second, you are the vendor of record for the model behaviour, the limits and the support path. The architecture is similar, but the contract, the metering and the incident process are not.
Decide which one you are building before you choose a provider. A feature team can ship in days with one key and one model. A platform team needs per-tenant keys, quota policy, abuse handling and an exit plan from day one.
How it works, step by step
- Choose one feature where AI changes the outcome, not just the demo, such as search, summarisation or drafting.
- Wrap the model call behind your own service layer so provider, model and prompts can change without touching product code.
- Issue per-tenant or per-environment keys and record usage for attribution and limits.
- Add routing so routine requests use small models and complex ones escalate.
- Ground answers with tenant-scoped embeddings instead of putting customer data in prompts.
- Handle failures with retries, timeouts and a graceful degradation path.
- Add private deployment options when enterprise buyers require residency.
The order matters. Teams that start with the model call and add tenancy later usually rewrite the credential layer, the logging and the billing path at the same time. Start with the wrapper and the key model, then make the model choice a configuration detail.
Try it yourself
Open the AI workload router simulator to see how routing a mixed workload changes the model mix before you write the integration.
Build the feature, not the platform
Model infrastructure is a full-time product: serving, scaling, version pinning, GPU capacity and on-call rotations. Every hour spent there is an hour not spent on your actual product. An OpenAI-compatible API removes that layer while keeping your code portable, because the call shape is the same one your team already knows.
Keep everything that encodes your product's value in your own codebase: prompts, retrieval, schemas, evaluation sets and the UX around the output. Those are the assets a competitor cannot copy from a model card, and they are also the parts that should change on your release schedule rather than the provider's.
The line is not “never touch infrastructure”. It is “do not own undifferentiated infrastructure”. A queue in front of the API, a cache for repeated prompts and a retrieval index are yours. GPU procurement, driver upgrades and model serving are not.
Keep the wrapper thin but real. One module should own the base URL, the model map, the timeout, the retry policy and the token accounting. If those values are scattered across feature code, a provider change becomes a search-and-replace project.
Multi-tenant keys and cost controls
Multi-tenancy is mostly credential design. Issue a distinct key per tenant or environment, store keys in your secrets manager, and use usage analytics per key for internal chargeback and quota enforcement. Never let one tenant's traffic share a production credential with another.
Where a customer needs stronger isolation, move that tenant to a dedicated endpoint or private deployment. The same requests keep working because the API surface does not change.
| Pattern | How it works | Best fit | Operational cost |
|---|---|---|---|
| Key per tenant | One API key per workspace, stored in your secrets manager | Self-serve SaaS with many small tenants | Low; key rotation and leak response must be automated |
| Endpoint per tenant | A dedicated endpoint or deployment for a large or regulated tenant | Enterprise accounts with isolation clauses | Medium; capacity and configuration are per tenant |
| Pooled key with metadata | One key, tenant identity attached to each request and log | Early prototypes and internal tools | Lowest; weakest attribution and blast radius |
Per-key analytics are the cheapest chargeback system you will ever build. Log the tenant, the model, the input and output token counts, the latency and the outcome for every call. That record answers finance's question, support's question and the reliability review at the same time.
import os
from openai import OpenAI
# One client per tenant; the key comes from your secret manager.
def client_for(tenant_key: str) -> OpenAI:
return OpenAI(
api_key=tenant_key,
base_url="https://api.plugsky.com/v1",
timeout=20.0,
max_retries=2,
)
def draft(client: OpenAI, prompt: str) -> str:
response = client.chat.completions.create(
model="plugsky-plus", # model map lives in config, not in feature code
messages=[{"role": "user", "content": prompt}],
max_tokens=600,
temperature=0.2,
)
return response.choices[0].message.content
Code examples use https://api.plugsky.com/v1. The docs also show https://plugsky.com/v1 as an alias; choose one host and keep it in configuration.
Routing and reliability
Not every request deserves the largest model. Route classification, extraction and short summaries to fast, inexpensive models, and reserve frontier models for reasoning-heavy tasks. Model routing lets you express that policy in one place instead of scattering model names through the codebase. See the model routing guide for the policy patterns.
Add timeouts, bounded retries and a fallback model. Degrade the feature gracefully rather than failing the page, and measure error and fallback rates as product metrics. A drafting feature that returns a shorter answer is usable; a page that throws a 502 is not.
Three numbers belong on the dashboard: the share of requests that fall back to a secondary model, the p95 latency at peak, and the rate of schema-invalid outputs. If any of them moves after a prompt change, the change is a release, not a copy edit.
Cost control that survives a launch
Flat self-serve plans remove the per-token line, not the need for a budget. A runaway agent loop can consume the daily allowance in an afternoon even when the invoice is fixed.
- Cap output. Set
max_tokenson every call path, including the ones that “never” run long. - Trim context. Summarise old turns and retrieve fewer, better chunks. Input tokens are still tokens even when the bill is flat.
- Route by task. A small model for classification and formatting; a frontier model for ambiguity and reasoning.
- Watch the daily allowance. Hobby and Starter have daily request and token caps; Builder and Scale have no monthly token cap but still publish concurrency and RPM limits.
- Alert at 80%. A quota warning is cheaper than an incident review.
Current plan limits and prices live on the pricing page. Quote them from there rather than from a deck, because plan packaging changes.
Closing enterprise deals
Enterprise buyers ask about residency, isolation and key management before they ask about model quality. Plugsky supports region selection and private VPC, on-premises and air-gapped deployment, with the scope confirmed in writing. Document these options once, then reuse the security appendix in every deal.
The live regions are Frankfurt (eu-central-1), UAE (me-central-1), Singapore (ap-southeast-1) and Virginia (us-east-1). Riyadh is available on Enterprise and is not a self-serve default region. For a country without a local region, the honest options are the nearest live region, a private VPC, on-premises or air-gapped — and the buyer should be told which one is being proposed.
Keep the evidence pack current: a SOC 2 alignment statement under NDA with its period and scope, a DPA with EU standard contractual clauses, a subprocessor list, an architecture diagram, a data-flow map and an incident-response summary. The data-residency decision page covers the region-by-region view; /facts holds the approved claim wording.
Honest comparison
This table compares integration models, not vendors. The criteria are the ones a SaaS team can act on: where engineering time goes, how tenants are isolated, what reliability you inherit, how the bill behaves and how long the first release takes. We did not benchmark any provider. The Plugsky column reflects published plan and deployment facts checked on 20 November 2026; the other columns describe structural trade-offs, not a scored review.
| Capability | Plugsky | Building model infrastructure | Single-vendor AI API |
|---|---|---|---|
| Engineering focus | Your product features | Serving, GPUs, on-call | Your product, if compatible |
| Model flexibility | 39 public model IDs behind one API | Whatever you deploy and maintain | Vendor catalogue only |
| Tenant isolation | Keys or endpoints per tenant; private deployments | Custom isolation work | Usually account-level |
| Reliability | Managed platform with status page | You build redundancy | Vendor-managed |
| Cost model | Flat monthly self-serve plans | Capacity planning and utilisation | Per-token |
| Time to first release | Days | Quarters | Days, with migration risk |
Plugsky is not the right choice for every SaaS team. If you need a model that exists only on one vendor's platform, or you have a committed GPU fleet and a platform team with spare capacity, that path can be rational. The point of the comparison is not that managed always wins; it is that the undifferentiated layer should be a deliberate buy.
What we did not verify
- We did not run a multi-tenant SaaS integration end to end. The code sample shows the shape of the wrapper, not a production deployment.
- We did not benchmark model quality for summarisation, search or drafting. Run your own evaluation on real tenant data.
- We did not review a signed DPA, SOC 2 report or subprocessor list. Request them under NDA and confirm the period and scope.
- We did not test VPC, on-premises or air-gapped deployment. Those are contract-led and environment-specific.
- We did not verify every plan limit. Check /pricing on the day you commit.
Frequently asked questions
Do we need ML engineers to ship an AI feature?
No. Integration is standard API engineering: a service wrapper, keys, retrieval and evaluation. Keep that layer thin so models and prompts are configuration, not rewrites.
How should we handle per-tenant data?
Store tenant content in your own database, embed it per tenant, and pass only the minimum context into the model call. Never mix tenant vectors or contexts in one retrieval namespace.
How do we keep costs predictable for finance?
Self-serve plans are flat monthly with fair-use limits, so bills do not scale with token traffic. Use per-key analytics for internal chargeback, and check the pricing page for current plan terms.
What if a customer requires residency?
Region selection covers many needs, and VPC, on-premises and air-gapped deployments cover stricter requirements. The API stays OpenAI-compatible, so product code does not change.
Can we offer our own API on top?
Yes. Wrap the platform in your own service layer and expose the interface your customers expect. See the white-label API guide for packaging patterns.
Which endpoints are live for product features?
Chat, streaming, JSON mode, function calling, embeddings, RAG and agents are documented as live. Check the docs for the current endpoint list before you commit a roadmap.
How do we start testing?
Use the free plan for early development, then a paid plan to validate quality on real workloads. Paid plans include a 7-day money-back guarantee.
Related
Ship the feature, not the platform
One OpenAI-compatible endpoint, 39 public model IDs and a free tier for the first integration.
Start free See pricingCite this page
Plugsky (2026). “AI for SaaS: Embed AI Without Owning Infrastructure”. Plugsky. Available at: https://plugsky.com/articles/ai-for-saas-embed-ai-without-becoming-an-ai-infrastructure-company (last updated 20 November 2026).
By Plugsky Research · Last updated 20 November 2026.
Sources
Integration guidance and plan facts were checked on 20 November 2026. Where a claim is contractual, the contract governs.
- Microsoft Azure Architecture Center: Multitenant SaaS patterns — tenancy models, isolation and noisy-neighbour considerations. Checked 20 November 2026.
- AWS Well-Architected SaaS Lens — tenant isolation, metering and operational models for SaaS. Checked 20 November 2026.
- OpenAI chat completions reference — the request shape an OpenAI-compatible client sends. Checked 20 November 2026.
- Plugsky docs — endpoints, streaming, JSON mode, function calling and embeddings. Checked 20 November 2026.
- Plugsky model catalogue — 39 public model IDs and context ceilings. Checked 20 November 2026.
- Plugsky pricing — plan limits and current prices. Checked 20 November 2026. The homepage pricing section at /#sec-pricing shows the same plans.
- Plugsky facts — approved claim wording for residency, SOC 2 and deployment. Checked 20 November 2026.
Last checked 20 November 2026. Product facts live at /facts; plan terms live at /pricing. Legal: Terms and SLA.