Gateway
One API for OpenAI and Anthropic models, with an OpenAI-compatible endpoint for existing SDKs.
- Execution profiles instead of hard-coded models
- Deterministic routing with a reason per model
- Structured JSON output with one repair attempt
Connect any model. Power any application. Control every dollar. Bring your own provider keys. SpicaAI routes every request, enforces your budget before money is spent, and leaves a receipt you can audit.
Your keys stay yours: in BYOK workspaces SpicaAI never falls back to keys it pays for.
We label each part honestly. “In private beta” works today; “early access” works with limits; “roadmap” is not built yet.
One API for OpenAI and Anthropic models, with an OpenAI-compatible endpoint for existing SDKs.
Provider keys are encrypted with per-secret keys and are never shown, logged or sent anywhere but the provider.
Budgets are reserved before a request leaves, and settled with the real cost when it returns.
Applications and agents get scoped keys and grants: which connections, models, purposes and how much per call.
A briefing on your own usage: budgets near their limit, connections that need attention, blocked traffic.
Spicanet products and your own SaaS call the same gateway with their own applications and keys.
Compare models on your own prompts and datasets, with cost and quality side by side, before you switch.
Every request estimates its maximum cost from the price table and reserves it against every budget that applies. If any budget cannot cover it, nothing is sent. When the provider answers, the reservation is replaced by the real cost. If the outcome is unknown — a timeout after the request left — the reservation stays until it is reconciled, so you are never over budget by surprise.
SpicaAI powers Spicanet products, and it is designed so your own SaaS can use it the same way: workspaces, projects, applications, scoped keys, per-customer accounting and full data export.
Use the native API for profiles, purposes, cost caps and receipts — or point an OpenAI SDK at the compatible endpoint. Streaming is not available yet.
curl https://ai.spicanet.net/api/v1/inference/generate \
-H "Authorization: Bearer $SPICAAI_KEY" \
-H "Content-Type: application/json" \
-d '{
"purpose": "support.reply.draft",
"profile": "text.economy",
"input": {"messages": [{"role": "user", "content": "Draft a reply…"}]},
"constraints": {"max_cost_usd": "0.02"}
}'from openai import OpenAI
client = OpenAI(
base_url="https://ai.spicanet.net/api/v1/openai",
api_key=os.environ["SPICAAI_KEY"],
)
client.chat.completions.create(
model="text.general", # a profile or "provider/model"
messages=[{"role": "user", "content": "Hello"}],
extra_headers={"X-Spica-Purpose": "crm.reply"},
)BYOK gateway, vault, budgets, receipts, OpenAI-compatible API, Python SDK.
Streaming, Gemini, Mistral and DeepSeek connections, budget alerts by email, webhooks.
Lab evaluations, model radar, embedded BYOK for your customers, white-label.
Reselling tokens behind your back. Managed funding is opt-in and contractual.