50/50 RevShare Integration: OpenUI & AIML API

Open
#1,188 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@hugoaimlapi is already working on this.

Since Sep 24, 2026.

  • #1238 by @hugoaimlapi — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript

Research direction

Start by reviewing linked pull request #1238 and the existing Vercel AI SDK example. The requested entry points are examples/miscellaneous/aimlapi, examples/README.md, and examples/examples.json. Done means the example uses the requested provider and model environment variable, and is listed under miscellaneous.

Written by the indexing model from the issue text.

Description

Hi! I'm Hugo from aimlapi.com — an AI aggregator that gives access to 1000+ models in one API, trusted by 400k+ users.

We'd love to be available as a verified provider option inside OpenUI — so we went ahead and did all the technical work on our side, in our fork: https://github.com/aimlapi/openui-aimlapi (branch feat/aimlapi-example, rebased cleanly on main).

To build our partnership, we offer a 50/50 revenue share on all traffic from this integration. (P.S.: tracking starts as soon as this release goes live, so no earnings will be lost during setup)

My contacts: [email protected] (email / Slack), Telegram: @hug0the


Is your feature request related to a problem? Please describe.

Every example in examples/ points at OpenUI Cloud Completions (https://api.thesys.dev/v1/embed). There is no reference implementation of <AgentInterface /> running against an OpenAI-compatible provider directly, so the two things that change when no Gateway is in the path are not shown anywhere: the openuiLibrary system prompt has to be compiled locally with generateSystemPrompt() instead of cloud: true, and invalid OpenUI Lang is no longer corrected server-side — only the renderer's own recovery is left.

Describe the solution you'd like

An examples/miscellaneous/aimlapi example: the Vercel AI SDK example's client wiring and tools, with createOpenAICompatible({ baseURL: "https://api.aimlapi.com/v1" }) as the provider and the model picked by an AIMLAPI_MODEL env var, so the same app can be pointed at any of the 1,000+ models AI/ML API serves under one key by changing one variable. Listed in examples/README.md and examples/examples.json under miscellaneous.

Describe alternatives you've considered

  • Documenting the direct-provider path in the Vercel AI SDK example's README rather than adding an example — that example is about Cloud Completions, and carrying both paths in one route makes it harder to read.
  • Putting it under agent-frameworks — the seam here is the model provider, not the agent runtime, so miscellaneous ("backend services that do not justify another top-level category") is the right home.

Additional context

Examples-only, nothing under packages/ changes, so no changeset. Opening this issue first as the contributing guidelines ask — happy to open the PR against main as soon as you confirm the direction.

Dominant language
TypeScript
Stars
10k
Forks
698
Avg merge
1d 6h
Merged PRs (30d)
148

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 thesysdev/openui

All issues in thesysdev/openui

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.