Skip to main content

Overview

By default, all AI generation is billed through the platform’s model pool at a per-generation rate. With BYOK, you supply your own API key for a supported LLM provider. Generation costs are then charged directly to your provider account - platform fees still apply for compute, storage, and tooling. BYOK is available on Pro and Enterprise plans.

Supported providers

The model_preference field lets you specify which of your provider’s models to use. Consult your provider’s documentation for available model identifiers.

Set your key

Replace proj_your_id_here with the ID of the project the key belongs to. Your key is encrypted at rest using AES-256-GCM and is never returned in API responses.

Check key status

Revoke your key

After revocation the platform reverts to its default model pool. Any in-flight generation jobs complete using the previously cached credentials before expiry.

Security notes

  • Keys are stored encrypted; only the last 4 characters are ever displayed.
  • Rotating your provider key: call PUT /v1/projects/proj_your_id_here/byok with the new key - the old one is overwritten atomically.
  • The scope byok:write is required on the API key used to set or revoke a BYOK entry.