Skip to content

feat(models): add openrouter/aion-labs/aion-3.5-mini pricing - #42743

Merged
kerry-berri merged 1 commit into
mainfrom
litellm_openrouter_aion_3_5_mini
Sep 23, 2026
Merged

kerry-berri merged 1 commit into
mainfrom
litellm_openrouter_aion_3_5_mini

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • OpenRouter lists aion-labs/aion-3.5-mini, litellm has no price for it
  • Calls through litellm to that model were logged at $0 spend

How it solves it:

  • Adds openrouter/aion-labs/aion-3.5-mini to both catalog files
  • Values copied from the raw OpenRouter models API row

User Flow

Before: a developer routing openrouter/aion-labs/aion-3.5-mini through the proxy sees no spend for it

  1. They send POST https://litellm-domain/v1/chat/completions with "model": "openrouter/aion-labs/aion-3.5-mini"
  2. The response comes back 200 with token usage
  3. https://litellm-domain/ui/?page=logs shows the request at $0 spend and the model as unknown to the cost map

After: the same request is priced

  1. They send POST https://litellm-domain/v1/chat/completions with "model": "openrouter/aion-labs/aion-3.5-mini"
  2. The response comes back 200 with token usage
  3. https://litellm-domain/ui/?page=logs shows the request at non-zero spend, $0.70 per million input and $1.40 per million output

Relevant issues

Raised by the provider pricing sync Slack flag "Shape changed: openrouter, 1 new model: aion-labs/aion-3.5-mini"

Affected release

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests (catalog data only, covered by the schema and cost map guard suites)
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

Raw source, fetched with a cache-buster on 2026-09-23 (curl -s "https://openrouter.ai/api/v1/models?x=$RANDOM"), row for id aion-labs/aion-3.5-mini:

pricing.prompt = "0.0000007"          -> input_cost_per_token 7e-07
pricing.completion = "0.0000014"      -> output_cost_per_token 1.4e-06
pricing.input_cache_read = "0.00000018" -> cache_read_input_token_cost 1.8e-07
context_length = 262144               -> max_input_tokens
top_provider.max_completion_tokens = 32768 -> max_output_tokens, max_tokens
architecture.input_modalities = ["text"], output_modalities = ["text"]
supported_parameters = [include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, temperature, tool_choice, tools, top_p]

Before (d525b0a)

  1. python -c "import litellm; print(litellm.get_model_info('openrouter/aion-labs/aion-3.5-mini'))" raises: model isn't mapped yet

After (817d4b0)

  1. python -c "import litellm; r = litellm.completion(model='openrouter/aion-labs/aion-3.5-mini', messages=[{'role':'user','content':'Say hi'}], max_tokens=5); print(r.usage)" with OPENROUTER_API_KEY set
  2. Output: Usage(completion_tokens=5, prompt_tokens=8, total_tokens=13, ..., cost=1.26e-05, cost_details={'upstream_inference_prompt_cost': 5.6e-06, 'upstream_inference_completions_cost': 7e-06}), which is 8 x 7e-07 and 5 x 1.4e-06, matching the catalog values

Type

🆕 New Feature

Caveats (if any)

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/56c4a1e176f04803bc455605c6bf371c
Open in Devin Desktop: https://app.devin.ai/desktop/session/56c4a1e176f04803bc455605c6bf371c?variant=devin
Requested by: @kerry-berri


Note

Low Risk
Data-only catalog update with no runtime logic changes; incorrect values would only affect cost reporting for this model.

Overview
Adds openrouter/aion-labs/aion-3.5-mini to the LiteLLM cost/capability catalogs (model_prices_and_context_window.json and the backup copy), using OpenRouter API pricing and limits so proxy usage and spend logging are no longer $0 for that model.

The new entry includes input/output/cache-read token costs, 262144 input / 32768 output context, and flags for chat mode, function calling, prompt caching, reasoning, response schema, and tool choice.

Reviewed by Cursor Bugbot for commit 817d4b0. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the catalog-only addition is internally consistent and no actionable defects were identified.

Summary

Adds pricing and capability metadata for openrouter/aion-labs/aion-3.5-mini.

  • Records input, output, and cached-input token costs.
  • Defines context and output-token limits.
  • Advertises the model’s supported OpenRouter capabilities.
  • Keeps the primary and backup catalogs synchronized.

Reviews (1) · Last reviewed commit: "feat(models): add openrouter/aion-labs/a..."

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 817d4b0. Configure here.

@codspeed

codspeed Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_openrouter_aion_3_5_mini (817d4b0) with main (d525b0a)

Open in CodSpeed

@kerry-berri kerry-berri 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.

LGTM

@kerry-berri
kerry-berri merged commit 2dccc0d into main Sep 23, 2026
93 checks passed
@kerry-berri
kerry-berri deleted the litellm_openrouter_aion_3_5_mini branch September 23, 2026 14:39
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant