FAQ
Can I use my console login as an API key?
No. Console JWTs are accepted only on /api/*. Clients must use an API key (sk-…) on /v1/* and /servers/*. API keys are likewise rejected on /api/*.
My key is lost: can I recover it?
No. Keys are stored as SHA-256 digests and shown once at creation. To rotate without downtime, create a replacement key, switch clients to it, and delete the old key.
Can one model name map to several providers?
Yes. A model mapping can point to multiple providers. Set a priority on each mapping: higher priority is tried first, and failures fall back down the chain. Mappings with the same priority can also set a weight (default 1) to split traffic (for example, 2 beside 1 receives twice the requests). See Models & Pricing.
Why does cost_usd show as null?
null means unknown, not free: either no rate is configured for the model/mapping, or the request had nothing billable. Configure pricing manually or via models.dev sync to compute cost. See Cost Control.
Why did I get HTTP 200 with an error JSON body?
The non-streaming keepalive had already committed HTTP 200 before the failure occurred. Check the logs for the full error; the response body contains the error JSON. This only affects non-streaming requests that outlive the grace period (60 s by default).
A request returned 403 model_not_allowed. Where do I fix it?
Two allowlists apply: the user's and the key's, and effective access is their intersection. Check Users & Roles and API Keys. An explicitly empty allowlist denies all models.
Does the proxy support vision / tools / reasoning / JSON mode?
Yes, provided the selected upstream supports them; the proxy translates between protocols. Capability flags on the model record drive routing and the model catalog, and do not block non-chat endpoints. See Create chat completion and Tools & Reasoning.
How are files and media mapped when I route to another provider?
The proxy converts each media part into the form the target upstream accepts, whether as inline bytes, a remote URI, or an uploaded-file reference:
file_idis passed through as-is. Because the proxy has no/v1/filesstore, the ID must have been issued by the receiving upstream. Sending an OpenAI Files API ID to Gemini (or vice versa) fails upstream.- HTTP(S) image URIs are sent as native URL sources where supported (Anthropic
imageURL sources, Geminifile_data.file_uri, OpenAI / OpenRouterimage_url). Otherwise, the proxy downloads and inlines the image before forwarding, subject to SSRF protection. - Document URLs on Chat Completions vary by provider: OpenRouter uses
file.file_data, Zhipu / Z.AI (GLM) usesfile.file_url, and Mistral usesdocument_url. OpenAI and genericopenai-compatibleproviders do not accept file URLs, so URL documents routed there are downloaded and inlined as base64 (with SSRF protection) when the media type is supported. PDFs becomefileparts, while non-PDFs degrade because OpenAI'sfilepart is PDF-only. DeepSeek'sfilepart supports images and Files API IDs only, so documents routed there degrade. - Zhipu / Z.AI (GLM) cannot mix a
filepart with an image or video part in the same message. Such messages are split into separate messages (filein one,image_url/video_urlin another) while keeping text parts and ordering intact. - Video URIs are not downloaded. Gemini fetches video itself and reliably accepts only YouTube URLs, File API URIs, or
gs://URIs; arbitraryhttps://…/v.mp4URLs are rejected upstream. - Anthropic has no
filecontent block. Responsesinput_fileparts map to Anthropic's native blocks:application/pdf(base64 or URL) and plain text (.txt,.md,.csv, etc.) becomedocumentblocks, images becomeimageblocks, andfile_idbecomes adocumentorimagefile source. Unsupported media types (.docx,.xlsx, etc.) followunsupported_block_policy. - Anthropic has no audio content block. Audio routed there degrades to an
[Audio: …]text placeholder. - OpenAI Responses accepts only
input_text,input_image, andinput_filein messages. Audio routed to the built-inopenaiprovider (which targets/responses) degrades to an[Audio: …]text placeholder. Audio passes through verbatim on native Responses passthrough, and Chat Completions upstreams keepinput_audiosupport. - Multimodal tool results stay structured where supported (Responses
function_call_output.output, Gemini 3functionResponse.parts), and degrade to a text placeholder elsewhere. - Any block the target provider cannot represent follows
unsupported_block_policy. Provider default resolves todropfor all providers today, whiledegradekeeps a text placeholder ([Image: …],[File: …], or[<TypeName> block]).
Can I export logs to my own system?
There is no bulk export endpoint. Use GET /api/logs with cursor pagination (up to 200 per page) or collect container stdout. Per-user tracing to Langfuse, OpenTelemetry, or LangSmith covers LLM-level observability.
Is there an OpenAPI/Swagger page?
Not at runtime: /docs, /redoc, and /openapi.json stay disabled on the server. A generated OpenAPI 3.1 document covering /v1 is published at OpenAPI Specification, matching the request schemas the server validates. Pair it with the Endpoint Index.
Can I run multiple replicas?
Yes, with PostgreSQL and REDIS_ENABLED=true plus REDIS_RATE_LIMIT_ENABLED=true. Without Redis, rate limits, circuit breaker state, and provider statistics are per-process. Migrations run at startup per process, so run migrations once before scaling out. See PostgreSQL & Redis.
Is response keepalive on by default?
Yes. With no saved override, the runtime defaults to enabled, 60 s grace, 15 s interval, matching what the Settings form displays. Disable it there if a client cannot tolerate whitespace heartbeats.
Does the proxy inject MCP tools into model requests?
No. MCP servers are exposed as MCP endpoints at /servers/<name>/mcp for MCP clients; they are not injected into /v1/* model requests. See MCP Servers.
What happens to a request when the client disconnects?
The upstream call is cancelled and the request is logged with status 499. Budgets count whatever usage was recorded up to that point.
I'm locked out of the console. How do I get back in?
Login lockout is off by default, so a wrong password normally returns 401. If you enabled it and are locked out, wait out the 15-minute window or restart the proxy (lockout counters live in process memory).
Another admin can reset your password from Team (which forces a password change at next sign-in).
If you are the last admin and forgot your password, run the offline recovery command on the host with database access:
bashuv run llm-proxy-reset-password --username admin --config /path/to/config.dbThe password is read interactively so it never appears in shell history. The account is forced to change it at next sign-in, and all existing JWTs and session API keys for that account are revoked. Omit
--configif the database is at the default path, and stop the proxy first so there is only one writer.
Which languages does the console support?
English and 中文, switchable per user in Account → Preferences (stored locally in the browser).
Where do feature requests and bugs go?
Open an issue on GitHub issues.