Documentation
One key, one balance, every model. The API is OpenAI-compatible for chat and submit-then-poll for media, these pages cover the whole surface. Raw markdown mirrors of every doc live under /llm for agents.
Quickstart
Get a key, point any OpenAI SDK at the CompanyFabric base URL, and make your first metered call.
Authentication
Bearer authentication with sk-cf- keys: creation, budget caps, revocation, and how metering attributes spend per key.
Chat Completions
POST /v1/chat/completions, the OpenAI wire format across every text and code model, with streaming and exact usage.
Models & IDs
How model ids work: canonical 2-segment ids, branded aliases, and the companyfabric/* meta-models, plus the /v1/models listing endpoint.
Media Jobs
POST /v1/jobs, the async API for video, image, and audio models: submit with the model in the body, poll until completed, read outputs and exact cost.
Errors
Every error is structured JSON with a code, a human message, and a machine-actionable resolution, built for agents that fix their own failures.
BYOK, Bring Your Own Keys
Route through CompanyFabric on your own provider keys at 0% fee, the vault stores them encrypted and never returns more than the last four characters.