Docs menu
Introduction

One endpoint for every model

Sluice is an AI inference optimization platform designed to reduce the cost of running AI models without sacrificing the quality, speed, or reliability required by each application.

Instead of simply reselling discounted inference, Sluice optimizes how AI requests are processed, which models execute them, and which infrastructure providers deliver the results.

Through a single API, developers can access multiple AI models and providers while Sluice automatically optimizes costs across the entire inference process.

Your app
OpenAI SDK
Sluice
picks cheapest
Groqrouted here
OpenRouter
Fireworks
Together
One model, many hosts (bar = relative price). Sluice sends each request to the cheapest healthy provider — and if it's down, it fails over to the next automatically.

Everything Sluice does

A single integration gives you all of this — most of it on by default, the rest a field on the request:

Unified OpenAI API

One endpoint for every model and provider. Keep your OpenAI SDK — change the base URL and key.

Cheapest-capable routing

Each request goes to the lowest-priced healthy provider that serves your model.

Automatic failover

If a provider is down or slow, Sluice retries the next one so your call still succeeds.

Cost receipts

Every response reports what it cost, what you were charged, and what routing saved you.

Streaming

Token-by-token SSE, with usage and the cost receipt in the final chunk.

Tool calling

Function calling and tool_choice pass straight through to the model.

Structured outputs

JSON mode and JSON-schema responses for models that support them.

Caching

Identical requests are served from cache with no provider fee; plus provider prompt caching.

Batches

Run up to 10,000 requests asynchronously on discounted batch capacity.

Keys & spend limits

Per-key spend limits, rate limits and a prepaid balance you can't overspend.

Prepaid + crypto

Top up with USDC on Solana. Credit doesn't expire; a free tier gets you started.

Seven providers

OpenAI, Anthropic, Groq, Together, DeepInfra, Fireworks and OpenRouter — one bill.

Already using OpenAI?
Moving over is a two-line change. Jump to the Quickstart, or see how it works first.

The essentials

Base URL
https://api.sluice.one/v1
Auth
Bearer token — your sk-sluice-… key in the Authorization header
Format
OpenAI Chat Completions (streaming and non-streaming), plus a batch API
Billing
Prepaid credit; the provider's price plus 5% of what Sluice saves you, never more than going direct