modal provider entry for Kimi K3. Enable it after Modal gives you an endpoint URL.
Prerequisites
- A Modal account
- A Kimi K3 Shared API or Auto Endpoint
- A Modal proxy-token pair
Create or select an endpoint
Use the Kimi K3 Shared API from the Modal model library, or create a dedicated Auto Endpoint:modal endpoint list. Modal serves its OpenAI-compatible API under /v1.
Create a proxy token
Modal endpoints are authenticated with two headers. Create a proxy-token pair:wk- and a secret that starts with ws-. Modal shows the secret only once, so save both values immediately.
If your Modal workspace uses RBAC, allow the token in the endpoint’s environment:
Enable the provider
Add the provider override to the settings file used by the Fabro server. Include/v1 in the endpoint URL and omit a trailing slash.
settings.toml
Configure credentials
Store both proxy-token values in the target Fabro server vault:fabro provider login --provider modal is not supported in this release because that command accepts one credential value. Use the two fabro secret set commands above.Modal-Key and Modal-Secret headers and does not send an Authorization header.
Included model
The catalog marks Kimi K3 as supporting tools, vision, reasoning, and prompt caching. Modal’s model ID is case-sensitive.
Use Kimi K3
--server value:
workflow.fabro
Direct SDK environment credentials
The built-in Modal provider authenticates with two headers,Modal-Key and Modal-Secret, read from the secrets MODAL_TOKEN_ID and MODAL_TOKEN_SECRET. Direct SDK use reads the same two names from the process environment.
For direct SDK use, enable Modal and set its endpoint URL in the [llm] overlay, then build the client with fabro_llm::build_client over a VaultCredentialSource whose vault holds both secrets. The catalog you pass to the client must be built from the same settings file with fabro_llm::build_catalog.
settings.toml
Costs
Fabro estimates Shared API costs from Modal’s published Kimi K3 prices. Completion and reasoning tokens use the output rate. Modal responses do not include an authoritative charge, so Fabro reports the cost source ascatalog.
Dedicated Auto Endpoints use Modal compute billing instead of the Shared API token prices. The Fabro estimate does not represent that compute bill.
Troubleshooting
Modal requests fail with 404 — Add the Modal endpoint URL asbase_url under [llm.providers.modal]. Include /v1.
Modal is not configured — Set both MODAL_TOKEN_ID and MODAL_TOKEN_SECRET in the target server vault. One value is not sufficient.
401 or 403 — Confirm that the token pair belongs to the correct Modal workspace and environment. If the workspace uses RBAC, allow the token in that environment.
404 — Confirm that the base URL is the endpoint URL followed by /v1, with no trailing slash.
Unknown model — The built-in API ID is exactly moonshotai/Kimi-K3. Run fabro model test --provider modal --model kimi-k3 to test the configured offering.
Further reading
Modal Kimi K3
Shared API prices, model specifications, and Auto Endpoint setup.
Modal endpoint authentication
Proxy-token headers and endpoint calling conventions.