Sparti API
Two entry points, one key.
Sparti Gateway — an OpenAI-compatible API at /api/sparti/llm/v1. Point any
OpenAI SDK, editor or agent framework at it: set the base URL below and use a
Sparti key where the client asks for an OpenAI key.
MCP — the Model Context Protocol endpoint at /mcp, so an agent can call
Sparti skills as tools. app.sparti.ai/mcp is the canonical public address;
this host serves the same endpoint.
Authentication
A workspace API key, sk_live_…, minted in the app under
Connectors → Sparti → Sparti Gateway. Send it as
Authorization: Bearer sk_live_….
Every other path on this host is private: it answers the app and the
background services, and returns 404 to a browser.
Models
sparti-free— free routers only.-
sparti-auto— the workspace's own routing: free first, then the session's model, then a paid model when the workspace allows it. - Any concrete model id returned by
GET /v1/models.
Optional attribution headers: x-sparti-brand-id (bill and scope the call to
one brand) and x-sparti-client-model (the model your client is running).