Quickstart
Connect with OpenAI, Anthropic, or the AI SDK. Pick a method tab, set the base URL and API key, then call catalog models.
Get started in 4 steps#
- 1
Create an account
Sign up with email. A 100-credit bonus is granted instantly just for signing up (30 days).
- 2
Issue an API key
Create a key starting with
plm_on the dashboard's API Keys page and paste it into the code below. - 3
Send your first request
Pick one of the connection methods below, set the base URL and key, and call right away. You can preview the example code before issuing a key.
- 4
Top up credits (when needed)
Local payments are unavailable; their introduction is under review.
Connect#
Start with Terminal Coding Agent (Claude Code)
RecommendedConfigure Claude Code instantly with a single npx command without manual file editing and start coding right away.
npx pleumrouter wire claudeApplication SDKs & Direct API Integration#
Choose AI SDK, Chat Completions, Messages, Responses, or Images. For the Anthropic SDK, use the root origin without /v1 (https://apirouter.pleum.ai). See AI SDK for the provider package.
OpenAI Chat Completions API
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "plm_xxxxxxxxxxxxxxxx",
baseURL: "https://apirouter.pleum.ai/v1",
});
const response = await client.chat.completions.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Why is the sky blue?" }],
});
console.log(response.choices[0].message.content);OpenAI Chat Completions API
from openai import OpenAI
client = OpenAI(
api_key="plm_xxxxxxxxxxxxxxxx",
base_url="https://apirouter.pleum.ai/v1",
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
print(response.choices[0].message.content)OpenAI Chat Completions API
curl https://apirouter.pleum.ai/v1/chat/completions \
-H "Authorization: Bearer plm_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Why is the sky blue?"}]
}'cost field; Messages/Responses expose cost via X-Cost-* headers.