Feature · Providers
Bring your own model. Keep your bill.
Book Fork's engine is provider-agnostic. Point a connection at any OpenAI-compatible endpoint — hosted or on your own hardware — and your translation requests go straight to your provider.
One adapter covers the field.
The generic OpenAI-compatible adapter speaks to any chat-completions endpoint: OpenAI, an Azure-style gateway, Ollama, vLLM, or your own proxy. You supply a base URL, a key and a default model. The core imports no vendor SDK, and the engine never knows which vendor answered.
Routing itself is data. A model can be declared strong for German→Japanese and weak for Japanese→Persian through a capability matrix, and the quality tiers — best, balanced, quality, fast, economy — rank candidates by capability and cost. No tier embeds a model name.
What runs today.
Protocols with a shipped adapter, stated plainly.
| Protocol | Adapter today | Notes |
|---|---|---|
| OpenAI-compatible | Supported | OpenAI and any compatible gateway |
| Ollama (self-hosted) | Supported | Runs through the same adapter |
| Anthropic | Not yet | Catalog record only; use an OpenAI-compatible gateway meanwhile |
| Google Gemini | Not yet | Same — reachable via a compatible gateway |
| Custom endpoint | Not yet | Adding any protocol is one adapter; the engine is untouched |
Built to be trusted with a key.
Encrypted at rest
Provider keys are encrypted with Fernet, stored in a superuser-only collection, decrypted only to build a client, never logged and never returned in a response.
SSRF-guarded endpoints
User-supplied URLs are validated before use: loopback, private, link-local and cloud-metadata addresses are blocked. A local Ollama is allowed only when you explicitly permit private addresses.
Safe connection tests
Test a connection and get a secret-free diagnostic: connected, authentication failed, model unavailable, endpoint unreachable, unsupported protocol, or unsafe URL.
Point Book Fork at your own endpoint.
Add a connection, test it, and run a job that costs nothing beyond your provider bill.