docs: add OpenRelay to the OpenAI-compatible providers section
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
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 withor_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/modelsis 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, andresponse_formatjson_schema(strict) andjson_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 takereasoning_effortnone,low,highormax, which the AI SDK'sreasoningsetting sends as is. - Streaming: the final chunk carries
usagewhether or notstream_options.include_usageis sent, soincludeUsageis 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel/ai
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel/ai#25682 · 4 comments ·
Maintainers usually reply within 1 day
-
factory-active factory-waiting-on-user task-identify-bug-discovery-awaiting-author task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
vercel/ai#25668 · 3 comments ·
Maintainers usually reply within 1 day
-
docs: add Vidai Control Room to the OpenAI-compatible providers sectionPossibly taken @wasim-builds claimed this 1 day ago. Openfactory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
agentscan:mixed-signals pending triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vueuse/vueuse#5737 · 2 comments ·
Maintainers usually reply within 9 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Marker-Inc-Korea/AutoRAG#2288 ·
Maintainers usually reply within 1 day
-
Resources: New templates of Guangzhou Metro Line 13Possibly taken @rmt-svc claimed this today. Openresources
Difficulty 1/5 Under an hour Newbie friendliness 76/100
railmapgen/rmg-templates#2730 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day