Skip to content
NEWgpt-6-luna removed from Codex Plus / Codex Pro: switch to gpt-5.6-lunaView pricing
HopBase
← Back to blog

Enterprise AI API Security Checklist (2026): Keys, Data Retention, Audit, Verification

Enterprise AI API Security Checklist (2026): Keys, Data Retention, Audit, Verification

The short answer: enterprise security review of an LLM API vendor comes down to four layers β€” key governance (least privilege and instant revocation: a leaked key should burn alone, revocable in seconds without touching any other team's traffic), the data path (is request and response content ever persisted, which fields do logs keep and for how long, and can any of it be used for training), audit and reconciliation (every call traceable to a key, a model, and a token count β€” failed requests not billed, and any partially generated output labelled as such), and vendor verifiability (verbal promises do not count; only behavior you can reproduce does). Below is a ten-item checklist where every row states not just the pass bar but how to verify it yourself β€” create two keys and revoke one, force a failure and check the bill. Use it against any vendor, including us.

Layer 1: key governance

Nearly every incident starts with a leaked credential. The only sound principle: the blast radius of any single key must be minimal.

  • One key per app, per team β€” a leak burns one key, and revoking it touches nothing else;
  • Model allowlists β€” a key can only call the models provided by the groups it includes, so a leaked key cannot reach anything outside that scope;
  • Independent quotas β€” per key, per member and per department, so a runaway integration cannot burn the global budget;
  • Hash-only storage β€” HopBase stores API keys as one-way hashes; plaintext keys never touch the database, so even a stolen database cannot yield your key.

Layer 2: the data path

Put three questions to any vendor, in writing:

  1. Is request and response content ever persisted?
  2. Which fields do logs keep, and for how long?
  3. Can the data ever be used for training or any secondary purpose?

Our published position: no long-term content retention β€” prompts and outputs are used only to complete the request, never kept as business data and never used to train models. Billing metadata (model, token counts, latency, status) is kept for invoices and audits; failed requests may be held briefly for troubleshooting, then deleted automatically. All traffic is TLS-encrypted in transit. Channel attributes for each plan are labelled on our pricing page, so you can assess them plan by plan.

Layer 3: audit and reconciliation

  • Every request leaves a trace β€” model, usage, latency, status β€” so anomalies can be traced to a key, a time, a model, and a volume;
  • usage detail is exportable, and billed amounts equal actual consumption;
  • failed requests are not billed: a request that fails before producing output costs nothing. The one exception is a request interrupted after output was already generated (for example, the client disconnects mid-stream) β€” that is charged for the usage already generated and labelled "Request interrupted, charged for the usage already generated" in the export, so every row can be checked.

Layer 4: vendor verifiability

Everyone claims no model swapping, no silent nerfs, no data retention. Claims are unverifiable; behavior is not. Require your vendor to:

  • publish channel attributes β€” what each plan runs on, in the open;
  • pass errors through β€” the model provider's error codes are returned as-is, never swallowed or rewritten;
  • welcome testing β€” a vendor that objects to a reproducible fidelity test has already answered your question.

The one-page checklist

ItemPass barHow to verify
Key granularityOne key per app, instant revocationCreate two keys, revoke one, confirm the other is unaffected
Model allowlistKeys only reach authorized modelsCall an unauthorized model; expect a clean rejection
Quota isolationIndependent per key/member/departmentExhaust a test key's quota; other keys must be unaffected
Content retentionNo long-term prompt/output retention, no training use, retention scope and period documentedDemand the retention policy and field list in writing
TransportTLS everywhereInspect the cert chain; plaintext HTTP is disqualifying
Key storageServer keeps hashes onlyAsk: can a database leak reveal plaintext keys?
Audit granularityPer-request model/usage/latency/statusExport usage detail and spot-check it
Billing on failureFailed requests cost nothing; interrupted-after-output requests are labelledForce failures and check the bill and export notes
Error passthroughProvider error codes returned as-isTrigger a rate limit; compare with official behavior
FidelityVendor welcomes testingRun the five fidelity checks and watch the reaction

FAQ

Does HopBase store my data or use it for training?

Your data is not used for training and is not kept as business data. Prompts and outputs are used only to complete the request; billing metadata (model, token counts, latency, status) is kept for invoices and audits; failed requests may be held briefly for troubleshooting, then deleted automatically.

Is a gateway an extra hop and therefore extra risk?

That one hop buys centralized governance: uniform key tiers, quotas, allowlists, audit, and revocation. The alternative β€” N teams each holding raw provider keys β€” has a larger leak surface and higher governance cost. The path itself is TLS end to end.

How should I use this checklist?

Run several vendors through it in parallel, requiring a demo or written confirmation per item; verify the model side with the fidelity test. Only then talk price.

For enterprise onboarding and security review, contact us; integration details in the docs.