Data Handling

Data minimization is a core design principle at Chuizi.AI. The Gateway does not persist any user message content. It only records the usage metadata necessary for billing and monitoring.

Message Content: Zero Storage

During request forwarding, the Gateway does not save, log, or cache your prompts or model responses. Message content exists only briefly in memory for stream forwarding and is released immediately after the request completes.

This means:

  • Your prompts never appear in our database
  • Model responses are not persisted
  • When you query the /v1/generation endpoint, you only see metadata, never message content

Metadata We Record

After each API request completes, we record the following metadata:

FieldTypeDescription
idstringUnique request identifier (gen- prefix)
user_iduuidOwning user
api_key_iduuidAPI key used
modelstringRequested model name
providerstringUpstream provider
input_tokensintegerInput token count
output_tokensintegerOutput token count
cached_tokensintegerCache-hit token count
reasoning_tokensintegerReasoning token count
costdecimalCost of this request
latency_msintegerResponse latency in milliseconds
status_codeintegerHTTP status code
error_typestringError type, if any
created_attimestampRequest timestamp

There are no prompt, messages, response, or any message content fields in this data.

API Key Security

API keys are stored using irreversible encryption:

  • The database stores only a securely encrypted hash of each key
  • The key prefix (ck-xxxx) is stored separately for identification in the Dashboard
  • The full key is shown exactly once at creation and cannot be recovered afterward
  • If you lose a key, you must deactivate the old one and create a new one

Cache Policy

Temporary cached data is limited to:

  • Key mapping: API key verification data (speeds up authentication)
  • Rate limit counters: Request rate tracking (RPM/TPM)
  • Balance freezes: Pre-deducted amounts for in-flight requests

The cache layer does not store any message content.

Server-Side Logs

Server request logs include the following for troubleshooting:

  • Request ID
  • Timestamp, HTTP method, path
  • Model name, status code, latency
  • Error details, if any

Logs do not include request bodies or response bodies.

Encryption in Transit

All communication uses HTTPS encryption (TLS 1.2+):

  • User to Cloudflare CDN: TLS encrypted
  • Cloudflare to Chuizi.AI Gateway: TLS encrypted
  • Gateway to upstream provider: TLS encrypted

Your data remains encrypted throughout the entire transit path. For details on where your requests are processed geographically, see Data Regions.

Next Steps