Skip to content

Add NEAR AI Cloud provider#1771

Closed
Evrard-Nil wants to merge 1 commit into
anomalyco:devfrom
Evrard-Nil:add-nearai
Closed

Add NEAR AI Cloud provider#1771
Evrard-Nil wants to merge 1 commit into
anomalyco:devfrom
Evrard-Nil:add-nearai

Conversation

@Evrard-Nil
Copy link
Copy Markdown
Contributor

Summary

Adds NEAR AI Cloud (nearai) as a new OpenAI-compatible provider, serving 33 models at https://cloud-api.near.ai/v1.

Approach

  • First-party mirrors (anthropic/*, openai/*, google/*) use extends with overrides only where cloud-api pricing or limits differ from canonical (per the README guidance — wrappers shouldn't duplicate first-party defs).
  • NEAR-hosted open-weight models (Qwen3 family, zai-org/GLM-5.1-FP8, openai/gpt-oss-120b, openai/whisper-large-v3, black-forest-labs/FLUX.2-klein-4B) ship with full TOML definitions.
  • One alibaba mirror (Qwen/Qwen3.5-122B-A10B) uses extends against the canonical alibaba entry, with cost/limit overrides for cloud-api pricing and context size.

Pricing, context windows, and modalities are sourced from GET https://cloud-api.near.ai/v1/models.

Validation

bun validate passes locally with exit code 0; the generated nearai entry materialises all 33 models with the expected pricing and limits.

Test plan

  • bun install
  • bun validate (exit 0)
  • CI validate workflow on the PR

Adds nearai as an OpenAI-compatible provider at https://cloud-api.near.ai/v1
serving 33 models. First-party mirrors (anthropic/openai/google) use `extends`;
NEAR-hosted open-weight models (Qwen, GLM-5.1-FP8, gpt-oss, whisper, FLUX) have
full definitions.

Pricing and context limits sourced from cloud-api.near.ai/v1/models.
@Evrard-Nil
Copy link
Copy Markdown
Contributor Author

Reopening from the nearai org fork (nearai/models.dev) so the PR is owned by the NEAR AI organization.

@Evrard-Nil Evrard-Nil closed this May 13, 2026
@Evrard-Nil Evrard-Nil mentioned this pull request May 13, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants