OpenAI Node SDK
new OpenAI({ baseURL })
Same one-argument change as the Python SDK, with full TypeScript types.
Code
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://starseaapi.com/v1", apiKey: process.env.STARSEA_KEY });
const r = await client.chat.completions.create({
model: "glm-5.3-flash",
messages: [{ role: "user", content: "Hello" }] });Quickstart
- Create an API key — Sign up, then create a token in the console. A key works across the whole catalogue; scope and quota can be restricted per key.
- Point your client at the endpoint — Set base_url to https://starseaapi.com/v1 and use the key. Any OpenAI-compatible SDK, IDE or desktop client works.
- Pick a model — Start with a low-cost tier for prototyping. Every id in the catalogue can be swapped without touching code.
- Watch cost, not just quality — Output tokens are usually priced at a multiple of input, and reasoning models emit thinking tokens. Keep stable prompt prefixes first so caching applies.
Integrations