Skip to content

feat: add NEAR AI pricing and model configs - #982

Merged
narengogi merged 2 commits into
mainfrom
feat/near-ai-pricing
Oct 15, 2026
Merged

narengogi merged 2 commits into
mainfrom
feat/near-ai-pricing

Conversation

@narengogi

@narengogi narengogi commented Oct 12, 2026 •

Copy link
Copy Markdown
Member
  • Adds pricing/near-ai.json and general/near-ai.json (53 models: 52 chat, 1 embedding), priced from NEAR's public catalog
  • Includes cache read (47 models) and cache write (7 models) pricing; long-context and priority tiers not modelled

🤖 Generated with Claude Code

Adds pricing/near-ai.json and general/near-ai.json for NEAR AI Cloud
(https://near.ai), an OpenAI-compatible private inference provider.

53 models (52 chat, 1 embedding) from NEAR's public catalog
(GET https://cloud-api.near.ai/v1/model/list). NEAR reports prices as
amount x 10^-scale USD per token; converted to cents per token
(amount x 10^-7), e.g. claude-sonnet-4-5 3000 -> 0.0003.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 12, 2026 03:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The large externally sourced pricing and capability dataset requires human verification against NEAR’s live catalog.

0 open findings

What changed in this PR

Adds NEAR AI model metadata and token pricing for the provider’s catalog.

Changes:

  • Configures 52 chat models and one embedding model.
  • Adds per-model input and output token pricing.
File Description
general/​near-ai.json Defines model capabilities and parameters.
pricing/​near-ai.json Defines token rates and cost calculations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sambharia

Copy link
Copy Markdown
Contributor

@narengogi can we add cache read and write pricing.
i think you have intentionally skipped: long context, and different modality model -- that's fine for this PR.

@akhilmmenon

Copy link
Copy Markdown
Member

@narengogi this PR looks good, we can also add cache_read pricing and add the openai/privacy-filter model if we want to support it for this provider. There are individual models under decisions, image, rerank and transcription categories which are not in this PR, can be added for complete support of 58 models from this provider.
Here is my reference: https://near.ai/models

Cache read for the 47 models NEAR prices it for, cache write for the 7
that publish it (textPricing default tier). Long-context and
priority/flex tiers are not modelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 03:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The large externally sourced pricing catalog requires final human verification against NEAR AI’s live catalog.

0 open findings

🧠 Review effort: Balanced

@narengogi

Copy link
Copy Markdown
Member Author

changes made

@whysumedh
whysumedh self-requested a review October 13, 2026 03:29
@narengogi
narengogi merged commit 2cc6cf7 into main Oct 15, 2026
3 checks passed
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.

5 participants