docs: add OpenRelay to the OpenAI-compatible providers section

Open Beginner friendly
#25,685 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
62/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
ai-infra-agents, typescript
Domain
documentation

Research direction

Read the OpenAI-compatible provider pages in content/providers/04-openai-compatible-providers/, especially the TopxAI page referenced in the issue, and check that section's index. Add an OpenRelay page and its index entry using the setup facts and examples in the issue; the issue says the draft has seven code blocks validated against the named SDK versions. Done means the provider is documented in the section in the same shape as the existing page.

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 OpenRelay page to content/providers/04-openai-compatible-providers/.

Disclosure: I work at OpenRelay, so this is a vendor request.

OpenRelay serves open models (Kimi K3.1 Pro, DeepSeek V4.1 Flash, GLM-5.3-Flash, Gemma 4 31B, and the bge-m3 embedding model) through an OpenAI-compatible Chat Completions and Embeddings API. It is a paid service with public sign-up at https://app.openrelay.inc. The integration needs no provider package: createOpenAICompatible with a baseURL is the full setup.

Vendor-controlled AI SDK instructions

Our AI SDK guide: https://docs.openrelay.inc/docs/inference/ai-sdk. Its samples (generateText, streamText, tools, Output.object, reasoning, embed) were run against the API with ai 7.0.186 and @ai-sdk/openai-compatible 3.0.97 before it was published.

Setup facts

  • Base URL: https://inference.openrelay.inc/v1 (POST /chat/completions, POST /embeddings)
  • Auth: Authorization: Bearer <key>. Keys start with or_ and are created in the console. Accounts are prepaid, so a new account needs a deposit before its first call.
  • Env var used in examples: OPENRELAY_API_KEY
  • Chat model IDs: openrelay/kimi-k3.1-pro, openrelay/deepseek-v4.1-flash, openrelay/glm-5.3-flash, openrelay/gemma-4-31b. Embeddings: openrelay/bge-m3 (1,024 dimensions). The public price list needs no key: https://api.openrelay.inc/v1/public/pricing. GET /v1/models is not served on the inference host yet.

API behavior, checked through the AI SDK and the raw API on 2026-11-30 and 2026-12-01

  • Tool calling with OpenAI tools, and response_format json_schema (strict) and json_object, on all four chat models.
  • Reasoning is returned in reasoning_content, which the provider maps to reasoning parts. Kimi K3.1 Pro and DeepSeek V4.1 Flash take reasoning_effort none, low, high or max, which the AI SDK's reasoning setting sends as is.
  • Streaming: the final chunk carries usage whether or not stream_options.include_usage is sent, so includeUsage is not needed.
  • Cached prompt tokens are reported in usage.prompt_tokens_details.cached_tokens.

I have a page drafted in the shape of the TopxAI page (#22276): 70-openrelay.mdx (203 lines) and one line in the section index. Its seven code blocks type-check against [email protected] and @ai-sdk/[email protected] and ran against the live API. Would you take it? I can open it as a PR linked here, or you can generate the page from this issue, whichever suits you.

Docs: https://docs.openrelay.inc/docs/inference/quickstart, https://docs.openrelay.inc/docs/inference/authentication, https://docs.openrelay.inc/docs/inference/chat-completions, https://docs.openrelay.inc/docs/inference/streaming, https://docs.openrelay.inc/docs/inference/models, https://docs.openrelay.inc/docs/inference/pricing

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

const openrelay = createOpenAICompatible({
  name: 'openrelay',
  apiKey: process.env.OPENRELAY_API_KEY,
  baseURL: 'https://inference.openrelay.inc/v1',
  supportsStructuredOutputs: true,
});

const { text } = await generateText({
  model: openrelay('openrelay/deepseek-v4.1-flash'),
  prompt: 'Explain what a context window is in two sentences.',
});
AI SDK Version
  • ai: 7.0.186
  • @ai-sdk/openai-compatible: 3.0.97
Code of Conduct
  • I agree to follow this project's Code of Conduct
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.