FAQ
Questions, answered plainly.
Short answers to the questions that come before the first request and after the first failure. For request fields and the exact error envelope, use the API reference.
Start here
What is Savant Gateway?
It is an independent inference gateway: one OpenAI-compatible Chat Completions endpoint over several upstream model families. It owns the account, key, catalog, prepaid credit, usage ledger and operator console, so you do not manage an upstream provider account yourself. This deployment is pre-launch: plans are not on sale, and there is no uptime guarantee.
Read the newcomer guideDo I need credit to make a first request?
Start with an account, an active API key, and prepaid credit. If you already have a subscription that includes the model, its allowance covers eligible requests.
How do I get an API key?
Create an account at /signup, accept the current policies, then open /account and create a key. The secret is shown once; only a hash is stored after that. Send it as a Bearer token or in x-api-key on every /v1 request.
Create an accountHow do I rotate or revoke a key?
Create a second key on /account, move your traffic to it, then revoke the first. Revocation is immediate: requests using that key stop working. A secret cannot be recovered after creation, so a lost key is replaced, not reset. An account may hold 10 active keys and create 20 keys per hour; revoking one does not reset the hourly issuance limit.
Manage your keysCan I use the OpenAI SDK I already have?
Yes, for Chat Completions. Set the client base URL to your gateway origin plus /v1 and use your Savant key as the API key. Pointing an OpenAI client at this gateway does not add the Responses API or native provider features; only the documented Chat Completions surface is implemented.
See the SDK exampleWhich models can I call?
Available models span multiple families and can include OpenAI GPT and Anthropic Claude. Use an id from GET /v1/models or /models with the OpenAI-compatible Chat Completions API. Availability changes with provider routes and pricing; a listing does not guarantee your account has the required credit or subscription.
Browse the catalogModels and pricing
What do paid and subscription mean?
Paid models can be called with prepaid credit at the listed sell price. Subscription-only models require an active plan that includes the model. The gateway returns 403 subscription_required when that entitlement is missing.
Read the vocabularyHow does a request count toward my plan allowance?
Each input and output token counts once toward your allowance. Your account page shows your remaining tokens and when the current period ends.
Why is a price shown as zero?
A subscription-only model without a sell rate uses its plan allowance. A paid model needs a sell rate before it can accept requests.
Why did a model disappear from the catalog?
A provider sync marks a vanished row as delisted rather than deleting it, so its prices, usage and history remain. The model also becomes unavailable if its provider is disabled, its row is manually disabled, or a paid row loses its sell price. There is no automatic failover to another provider.
Do you support the Anthropic Messages or OpenAI Responses API?
Claude models can be called when they appear in the catalog, using the OpenAI-compatible Chat Completions API. The native Anthropic Messages and OpenAI Responses APIs are not exposed: /v1/messages and /v1/responses are not implemented. Some upstream providers use Anthropic Messages internally, which the gateway translates. Anthropic-native and Responses-native clients cannot use those native endpoints here. Embeddings, image generation, audio and batch endpoints are also absent.
Read the chat contractDo tools and vision work?
Only when the selected model advertises the capability. The model object exposes supports_tools and supports_vision. Tool definitions and image content are forwarded in the OpenAI shape; the gateway does not reject a payload based on those flags, so a model without the flag is unsupported and the upstream may fail. Check the row before building the feature around it.
Read the model fieldsCredit and billing
When does a paid request charge me?
A paid call reserves an estimated hold before dispatch. When the response finishes, fails, or the stream closes, one settlement transaction releases the hold and debits the actual charge. Included subscription usage draws from the plan allowance. When the allowance runs out, the plan blocks calls or charges prepaid credit according to its overage policy.
Read the request flowWhat is a hold, and why is available credit lower?
A hold is admission control for a request that is still in flight. Available credit is the balance minus those holds, so it can be lower than the balance while calls are running. A completed request releases its hold and debits the actual charge. A failed request that has not settled can leave a hold visible for reconciliation.
Can my balance go negative?
Yes. A hold is an estimate, not a ceiling; if the provider reports more usage than estimated, the actual debit can exceed it and leave a negative balance. Paid calls are then refused with 402 until the account is funded. The gateway records the real charge instead of silently clamping the balance to zero.
How do top-ups work?
When the operator has configured Stripe, the Add credit card on /account opens Stripe Checkout for $5 to $500, in whole cents, with $10, $25, $50 and $100 presets. The app never sees card data, and a successful redirect alone grants nothing: credit is written only after a signed Stripe webhook confirms the payment. If payments are not configured, the top-up endpoint returns 503 and invents no credit.
Open your accountDo credits expire, and can I get a refund?
Prepaid credit has no expiry and no inactivity fee. Refunds are not automatic: a duplicate or erroneous charge, an unauthorized charge, or a legally required refund is handled through support, and the operator may use discretion. Consumed credit is not refundable. Card refunds are manual Stripe actions, not an automated button in this app.
Read the refund policyCan I buy a subscription plan?
Not during this launch. Plans can be authored and existing comped or previously purchased subscriptions remain honored, but new plan sales are disabled and the public plan catalog stays empty. Changing that is an offering decision, not a checkout setting.
See the plan statusIs my payment information safe?
Card details are entered on Stripe's hosted page and are never sent to this application. The gateway stores a provider reference, amount and fulfilment state, and credits the account only from a signed webhook with a matching amount and currency. A replayed event is acknowledged without crediting twice.
Errors and limits
Why did I get a 401?
The request had no key, a malformed key, a revoked key, or a key belonging to an inactive account. Send Authorization: Bearer sk-... or x-api-key: sk-... and confirm the key is still listed as active on /account. A key secret cannot be recovered after creation; create a new one if it was lost.
Why did I get a 402 or 403?
402 means the request cannot be covered because credit is insufficient, a subscription is past due, or an allowance is exhausted under a block policy. 403 subscription_required means the model needs an active plan that includes it.
Why did I get a 429?
A rate or capacity limit is active. Calls from your keys count toward the account limit. Check the Retry-After header before retrying.
Why did I get a 502 or 503?
502 means the upstream provider failed or returned an invalid response. 503 means the model or gateway is unavailable. Retry with backoff or choose another model.
Why did my stream fail after producing text?
A stream can carry partial text and then fail on an upstream error, a client disconnect or a settlement failure. The gateway attempts accounting on close; when settlement fails it withholds the terminal [DONE] and reports the failure instead of pretending the stream succeeded. Treat that response as failed and check the usage ledger before retrying a paid call.
Do you retry a failed provider request automatically?
No. Each model has exactly one serving provider, and the gateway does not silently reroute or replay a completion. A client can retry with backoff, but a paid request is not idempotent: after partial output, check the account usage before sending it again so a settled charge is not duplicated.
What are the output-token limits?
The gateway defaults max_tokens to 4,096. Supplied max_tokens and max_completion_tokens must each be integers from 1 to 65,536; max_completion_tokens takes precedence when both are valid. Only n=1 is supported. Inference bodies are limited to 2 MiB, with at most 256 messages and 128 tools. The model's context window is informational; the provider still enforces its own limits and can return an upstream error.
Read the request fieldsAccount, privacy and support
Where do I see usage and the ledger?
The account page shows balance, held credit, keys, usage rows and the credit ledger. Usage records the settled charge and upstream cost separately; the ledger records money moving in and out of the balance. If a support request is resolved, the operator's note appears on that request in the same account view.
Open your accountAre my prompts and outputs stored?
Not as content. The gateway records the model, token counts, charge, latency, redacted error text and timestamps in a usage row, but does not store the request body or the completion. The selected upstream provider receives the content and handles it under its own terms.
Read the privacy noticeHow do I request deletion of my data?
Send a data-deletion request from the support card on your signed-in account. The request is recorded against the account; deletion is a manual operator action, not a self-service button. Usage events are retained with the account link removed for billing and audit integrity, as the privacy notice describes.
Read the privacy noticeDo you send email?
Email verification and password reset are available when the operator configures account email delivery. Request verification from /account or a password reset from /recover. Links expire and work once; requesting a newer link invalidates the earlier one. Password reset revokes all sessions and API keys. When delivery is not configured, those screens state that it is unavailable. Support remains an authenticated queue; read its resolution note on /account.
Read about supportWhat are the log and backup retention windows?
The privacy notice states that hosting logs are retained for up to 30 days and database backups for up to 30 days. A deletion is not immediately propagated into existing backups. The current policy version is v1.1; older versions remain readable at their permanent legal routes.
Read the retention sectionIs there an SLA or uptime commitment?
No. This is a pre-launch deployment with no uptime guarantee or service-level credit. A deployment or host failure can cause downtime. /api/health reports liveness and /api/ready reports whether configuration and storage can serve.
Read the termsHow do I report a security issue?
Do not put credentials, customer keys, prompts or payment details in a public issue. Use the support queue from your signed-in account for an account-specific concern; the repository's SECURITY.md describes the private reporting path for the codebase.
Open supportStill need a hand?
Support requests are tied to a signed-in account and answered in the same queue. Start with the newcomer guide if you have not made a request yet.