Docs
SocketLLM speaks the APIs you already use. Point your SDK at https://socketllm.com/v1 and send your
SocketLLM key as the bearer token.
Quick start
- Sign up; the console makes your team.
- Make a key in the console. Keep it secret: it spends your team's budget.
- Use it with any OpenAI SDK:
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://socketllm.com/v1", apiKey: process.env.SOCKETLLM_KEY });
const res = await client.chat.completions.create({
model: "claude-sonnet-5-5",
messages: [{ role: "user", content: "Hello" }],
});
Endpoints
| Endpoint | What |
|---|---|
POST /v1/chat/completions | OpenAI's Chat Completions, streaming too |
POST /v1/messages | Anthropic's Messages |
POST /v1/responses | OpenAI's Responses |
POST /v1/embeddings | Embeddings |
GET /v1/models | The models your key can use |
GET /v1/key | Your key: its limits and what's left |
The full reference is the OpenAPI document, which also covers batches, images, audio, moderation and the rest.
Errors
401: no key, a wrong key, or a revoked one.429: your team's monthly budget is used, or a rate limit; the message says which.502/503: every provider for that model failed; retrying later is safe.
Teams
Your team has owners, admins and members. Owners and admins invite people by email and make and revoke keys; members see keys and usage. Manage people under Team.