Choose a protocol
Use the OpenAI baseURL for existing OpenAI SDK apps; use the Anthropic endpoint for Claude-style tools.
/v1Anthropic/anthropicOpenAI- and Anthropic-compatible endpoints with ready-to-paste IDE integration guides.
OpenAI and Anthropic compatibility across text, images, video, audio, and embeddings with unified auth, routing, and Stars billing.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.LUMART_API_KEY,
baseURL: "/v1",
});
const result = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello Lumart!" }],
});
console.log(result.choices[0].message.content);Use the OpenAI baseURL for existing OpenAI SDK apps; use the Anthropic endpoint for Claude-style tools.
Full keys are shown only once. Examples show prefixes; live requests need the full key pasted manually.
Examples use the current origin automatically while keeping native SDK conventions.
Lumart AI provides a unified API fully compatible with OpenAI and Anthropic — use the SDK you already know to access multiple upstream models, billed in Stars under a single key.
Drop-in replacement for the OpenAI API — no code change needed
/v1Native Anthropic Messages API support, including streaming
/anthropicOrganized by developer task so you can pick a capability, then read parameters and examples.