Lumart DevelopersAPI Reference

API Documentation
OpenAI/v1Anthropic/anthropic

OpenAI- and Anthropic-compatible endpoints with ready-to-paste IDE integration guides.

Quickstart

Call multimodal models with one key

OpenAI and Anthropic compatibility across text, images, video, audio, and embeddings with unified auth, routing, and Stars billing.

One-minute setup
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);
Point baseURL to Lumart and keep the OpenAI SDK code you already use.
01

Choose a protocol

Use the OpenAI baseURL for existing OpenAI SDK apps; use the Anthropic endpoint for Claude-style tools.

02

Create or paste a key

Full keys are shown only once. Examples show prefixes; live requests need the full key pasted manually.

03

Copy an example

Examples use the current origin automatically while keeping native SDK conventions.

Choose a protocol

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.

OpenAI-compatible

Recommended

Drop-in replacement for the OpenAI API — no code change needed

  • Works with every official OpenAI SDK (Python / Node / TS)
  • /chat/completions, /embeddings, /images, /audio paths preserved
  • Tested with ChatBox, NextChat, LobeChat, Cursor, Cline, Codex
/v1

Claude-compatible

Native Anthropic Messages API support, including streaming

  • Works with the Anthropic SDK and Claude Code CLI
  • Full /v1/messages with streaming SSE events
  • Tested with CC Switch and LobeChat (Claude provider)
/anthropic

Endpoint directory

Organized by developer task so you can pick a capability, then read parameters and examples.

Visible 16
Account / Balance
Chat
Images
Audio
Video
Embeddings
Models
OpenAI-Compatible and Claude-Compatible API Documentation | Lumart AI