Docs
Ship in five minutes.
OpenAI-compatible endpoint. Swap the base URL, keep your SDK, get smart routing across every provider.
Quickstart
curl or SDK in 5 lines.
Smart routing
auto:quality, auto:cost, auto:speed.
Model catalog
Search 300+ models.
Providers
21 upstreams and counting.
Streaming & tools
SSE + function calling.
Usage API
Programmatic spend + traces.
Quickstart
curl https://api.llmcloud.ai/v1/chat/completions \
-H "Authorization: Bearer $LLMCLOUD_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto:quality",
"messages": [{"role":"user","content":"Draft a launch tweet."}]
}'Smart routing
Pass a routing directive as the model name. We score every eligible upstream on capability, live latency, price, and quality benchmarks — then pick the winner.
auto:quality
Highest scoring model that fits the prompt.
auto:cost
Cheapest model that hits quality floor.
auto:speed
Lowest TTFT that meets quality.
Streaming & tools
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmcloud.ai/v1",
apiKey: process.env.LLMCLOUD_KEY,
});
const stream = await client.chat.completions.create({
model: "auto:quality",
stream: true,
tools: [{ type: "function", function: { name: "getWeather", parameters: {} } }],
messages: [{ role: "user", content: "Weather in Tokyo?" }],
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");Usage API
Every request returns x-llmcloud-route and x-llmcloud-cost. See the usage dashboard for spend, latency, and per-model traces.