docs: add OpenLux to the OpenAI-compatible providers section

Open Beginner friendly
#25,522 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, typescript
Domain
documentation

Research direction

Add an OpenLux page under content/providers/04-openai-compatible-providers/. Read nearby OpenAI-compatible provider pages to match the documentation structure, then verify the setup details against the issue’s provided base URL, environment variable, and createOpenAICompatible example. Done when the page explains setup and usage consistently with the existing provider docs.

Written by the indexing model from the issue text.

Description

factory-active task-identify-harness-labels-done task-identify-issue-type-done
Description

Please add an OpenLux page to content/providers/04-openai-compatible-providers/.

Disclosure: I work on OpenLux (COGNIS AI PTE. LTD., Singapore). This is a vendor request, so weigh it accordingly.

OpenLux is an OpenAI-compatible API gateway. One API key reaches chat models from OpenAI, Anthropic, Google, DeepSeek, Alibaba (Qwen), xAI, Moonshot (Kimi), Zhipu (GLM), MiniMax and others, billed pay-as-you-go in USD. It is a live paid service with public sign-up at https://www.openlux.ai.

The integration needs no provider package. createOpenAICompatible with a baseURL is the full setup.

Vendor-controlled AI SDK instructions

Setup facts

  • Base URL: https://api.openlux.ai/v1
  • Auth: Authorization: Bearer <key>. Keys are created in the console after sign-up at https://www.openlux.ai/register?channel=c_zluxhnwa.
  • Env var used in examples: OPENLUX_API_KEY
  • Model discovery: GET https://api.openlux.ai/v1/models with the key lists the model IDs.
  • Example chat model IDs: claude-sonnet-5-5, gpt-5.4, gemini-3.1-flash-lite, deepseek-v4-pro, qwen3.5-plus.

Tested on 2026-11-26 with [email protected] and @ai-sdk/[email protected]

import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import { generateText } from 'ai';

const openlux = createOpenAICompatible({
  name: 'openlux',
  baseURL: 'https://api.openlux.ai/v1',
  apiKey: process.env.OPENLUX_API_KEY,
  includeUsage: true,
});

const { text } = await generateText({
  model: openlux('claude-sonnet-5-5'),
  prompt: 'Say hello in one sentence.',
});
  • generateText works with gpt-4o-mini, claude-sonnet-5-5, deepseek-v4-pro and gemini-3.1-flash-lite. streamText works with qwen3.5-plus. With includeUsage: true, streamed usage arrives at the end.
  • Reasoning: providerOptions: { openlux: { reasoningEffort } } is passed through. claude-sonnet-5-5 (high) and deepseek-v4-pro (low) return reasoning text, and qwen3.5-plus reports reasoning tokens in usage.
  • Tool calling and multi-step tool use with stopWhen: work on gpt-4o-mini, claude-sonnet-5-5 and deepseek-v4-pro (two steps, tool input parsed, final answer uses the tool result).
  • Structured output: with supportsStructuredOutputs: true, Output.object sends json_schema and works on gpt-4o-mini and gemini-3.1-flash-lite.

OpenLux is also proposed for models.dev (https://github.com/anomalyco/models.dev/pull/14665) with the same provider ID and env var.

Dominant language
TypeScript
Stars
28.3k
Forks
5.7k
Avg merge
19h 31m
Merged PRs (30d)
593

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vercel/ai

All issues in vercel/ai

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.