Singapore-hosted AI price router
Automatic routing to the cheapest live AI API.
CPEN gives developers one OpenAI-compatible API, real-time price checks, hard USD caps, provider-group status, and automatic route selection for extraction, cleanup, batch jobs, and mini-chat.
openai-compatiblebase_url swap
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://cpenrouter.space/v1",
apiKey: process.env.CPEN_API_KEY
});
await client.chat.completions.create({
model: "cpen/auto-extract",
messages: [{ role: "user", content: "clean this row" }],
routing: {
currency: "USD",
max_input_per_1m: "0.03",
max_output_per_1m: "0.15"
}
});$1signup credit
5%platform fee
4%data opt-in fee
SGSingapore primary region
Router catalog
Use stable CPEN aliases first. Pin provider groups later when you know exactly what price, uptime, region, or data policy you need.
| Router | Endpoint | Default cap | Best for | Routing |
|---|---|---|---|---|
| cpen/auto-chat | POST /v1/chat/completions | $0.03 in / $0.15 out per 1M | Mini chat, summaries, app helpers | 107 candidates |
| cpen/auto-extract | POST /v1/extractions | $0.03 in / $0.15 out per 1M | JSON extraction, cleanup, tagging | provider-group filtered |
| cpen/auto-cheap | POST /v1/chat/completions | lowest live route | Batchable low-stakes work | cheapest available |
Cost controls before model hype
The product is optimized for people who care about price ceilings, fallback behavior, and batch throughput more than leaderboard screenshots.
- No anonymous API traffic
- Provider group status before dispatch
- Hard per-request USD caps
- OpenAI-compatible chat path plus extraction and batch surfaces
Drop-in quickstart
Swap the base URL, keep the OpenAI-style request shape, and set per-request routing caps in USD.
curl https://cpenrouter.space/v1/extractions \
-H "authorization: Bearer cpen_live_..." \
-H "content-type: application/json" \
-d '{
"model": "cpen/auto-extract",
"input": "Alice paid 12.50 USD for a notebook.",
"schema": {"type": "object"},
"routing": {
"currency": "USD",
"max_input_per_1m": "0.03",
"max_output_per_1m": "0.15"
}
}'