diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0ca5d762..69b4ce27 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: c48cf606-fb42-4a45-9c23-8f0555307828 management: - docChecksum: b10f20660e60239add4fb6a817b5184a + docChecksum: c9da7072b344134eb20731bd712ce638 docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.189 - configChecksum: 566b481e733ebb38c4f3e8ca1ca57206 + releaseVersion: 1.3.190 + configChecksum: b445739770bcc6cd2794ad0a87e6e945 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: ff9bcdf8-7a3e-4d4a-aec1-cea02ab13261 - pristine_commit_hash: c29dcb08a75ee3667e67b2ad57d0c804ff9dd26c - pristine_tree_hash: 13e272d01b88c537634ba5b1cb1d6082058237c5 + generation_id: a0ff5c3e-f728-4bdc-a59a-ba041061beec + pristine_commit_hash: c87692e30d60600c239be623c3e44e81af0c0d36 + pristine_tree_hash: 6e0f16ed895970b58095bea1e671720732b3a96d features: python: acceptHeaders: 3.0.0 @@ -80,8 +80,8 @@ trackedFiles: pristine_git_object: 9c1506b8f539140db04b239d7a84d8b599747932 docs/components/aabenchmarkentry.mdx: id: 35ebea5f13ae - last_write_checksum: sha1:73a9ee986cb4f5726e15a0bdaa5e4b9bfed40e7f - pristine_git_object: d13b9f95950ac1083b38062b4c38f554022f1991 + last_write_checksum: sha1:b874a4bed948f38ed89a5b8fc1a8a07578801ef0 + pristine_git_object: 31cf5a055afca8f2fea52602fd1e214671694325 docs/components/account.mdx: id: b174f975ca46 last_write_checksum: sha1:88a5b5a6c6a36afaa89c78643aef73d5adc87964 @@ -5528,8 +5528,8 @@ trackedFiles: pristine_git_object: 432f9b632b00dbc6e7cd8a87908df962923bf3d6 docs/components/model.mdx: id: ee338c3cef0a - last_write_checksum: sha1:c9277ba12f527c7c16ff67cd9f6850b2fd85221a - pristine_git_object: 0e60fa4d21ec8b7f26d58460eda2cf2451be4a4d + last_write_checksum: sha1:c5ad36f2f2bd6274a59e03caa41c5340793e225a + pristine_git_object: 74d129f6cbe456fd2442b591f1843f45cabddb7b docs/components/modelaliastarget.mdx: id: 4c176a0fc594 last_write_checksum: sha1:f62206b85ab831a8851bb952302699c14d9f4aef @@ -5604,8 +5604,8 @@ trackedFiles: pristine_git_object: aa249e0b80016a508217b2e71857980148df1cf8 docs/components/modelbenchmarks.mdx: id: a56406a8820b - last_write_checksum: sha1:7603f1bd5366c48135f3392d5d9b96719853cdeb - pristine_git_object: e1f0625c7722abb7c1e8ac433424bf7a1fefb31d + last_write_checksum: sha1:e8a272a79b1440e1b78cfa5c3e938adf4802f341 + pristine_git_object: 3b25f535d7bb875175c6b7a5100a9b6706ede21b docs/components/modelgroup.mdx: id: 8f246164d34c last_write_checksum: sha1:2954097c66c1dd56fa0440a501630275a6cfebea @@ -8888,8 +8888,8 @@ trackedFiles: pristine_git_object: 710712bd83dc820773f9b220873ef64e7a7746b5 docs/components/unifiedbenchmarksaaitem.mdx: id: 17da67bd22b0 - last_write_checksum: sha1:16fe983e8f3cc6d7ccfdfac5af318ee2a6dd1b00 - pristine_git_object: 3d56a72b89e5c06fd24e7a615b75b3ab417d5a07 + last_write_checksum: sha1:2e16a446cac23f6de015846fd152f63d19aa4847 + pristine_git_object: 22a293997d0cadad2527693ea514871e840fa01d docs/components/unifiedbenchmarksaaitemsource.mdx: id: 181f24319290 last_write_checksum: sha1:6b6b0883911fb085166e280f6f473337bf421956 @@ -10320,8 +10320,8 @@ trackedFiles: pristine_git_object: 274aa021a035d63106eb432eb84e38e80ebd85eb docs/operations/getbenchmarksrequest.mdx: id: 704fb5d64a7c - last_write_checksum: sha1:49583135cdf0dcc449165abe57bf1666a24ca154 - pristine_git_object: 7aca7c792055388bae64fe82c0ee03f5852d40f4 + last_write_checksum: sha1:f190afa2bdc7e25c897b8a92fd8f044d7ab50751 + pristine_git_object: 5009b6d04ca1a5d2214e7d7bd442ec9a657e8dd0 docs/operations/getbudgetpolicyglobals.mdx: id: 1fd05a15603a last_write_checksum: sha1:042ba8a33b8116004832b9f96785dd49e21a2995 @@ -10464,16 +10464,16 @@ trackedFiles: pristine_git_object: 0f723aca82c55a90e4e4db888152d92e19bc65f1 docs/operations/getmodelsrequest.mdx: id: b2627beb1959 - last_write_checksum: sha1:fd7f21cd87f8923bb9c693e80775a8ebc802da95 - pristine_git_object: 3aff498bcb33781eaf6cb6d10078497311f249c4 + last_write_checksum: sha1:c15f5921a928111a548862c345dc4f88ddcace93 + pristine_git_object: d71b3a2ea13aa34d905be1bdb6e333c55e053aba docs/operations/getmodelsresponse.mdx: id: acfd4707ddde last_write_checksum: sha1:4cdb8094183af736a2679e306454157e8468da39 pristine_git_object: cb73087fe5c85685c95f4ddc6b814d2fda007e17 docs/operations/getmodelssort.mdx: id: 3cfd33e60661 - last_write_checksum: sha1:31da820631342fd10804d990ffc098eec10d2f5d - pristine_git_object: 771fe45d8ffcbe39bf2aca441bd3c98e6d274e89 + last_write_checksum: sha1:3c10c05f3d66cfd9cf087fb78b795f551a805406 + pristine_git_object: e6bb18af8096037d6c3e0d71f823c735d0954105 docs/operations/getmoderationpolicyglobals.mdx: id: ba912e4f7927 last_write_checksum: sha1:d00889f156ee52fea3c86ad2b73a9c578aaca4b9 @@ -10936,8 +10936,8 @@ trackedFiles: pristine_git_object: b6ff4ac617c15b9ce560d8f7be1f2813ac73b696 docs/operations/listmodelsuserrequest.mdx: id: 01537864056e - last_write_checksum: sha1:44d1c32fef1341f14997e60b8e37b34b4b98a83b - pristine_git_object: 4d81aec24e005978ab8775db1c29ca2126370aa5 + last_write_checksum: sha1:e5144a584a095fdaa577b6ff8e8c391c8f723082 + pristine_git_object: c2c096c88e6b41c927b6ac18d53c1f49a5ba72c7 docs/operations/listmodelsuserresponse.mdx: id: 34f7a1648ceb last_write_checksum: sha1:2ba3da93b8dd5a76d5f1acf0a080bc45ced552b6 @@ -10948,8 +10948,8 @@ trackedFiles: pristine_git_object: 30c48ec99d5e99e45a91ae00d14c4f1514628f8c docs/operations/listmodelsusersort.mdx: id: a6cd738b2b05 - last_write_checksum: sha1:8727603af278d196803f713cb443c4220592a36c - pristine_git_object: 574a4984cf9684e909691cd758d5e13fecc9afb6 + last_write_checksum: sha1:36ea49db5431753c6f2729604419d1566ec587c3 + pristine_git_object: 79cc3db80001900e782b159c6d9603582868d260 docs/operations/listmoderationpoliciesglobals.mdx: id: 9696f0898918 last_write_checksum: sha1:81f4f38601d5ac6cbf0ebfd33e4b1a3b2b0211d3 @@ -11320,8 +11320,8 @@ trackedFiles: pristine_git_object: 9b01565b648f986bbd230b5f897f3998623d00f9 docs/operations/tasktype.mdx: id: d3da8106d2d1 - last_write_checksum: sha1:42a44b770f7ea37a243793bd3c4bcd7aa003d97a - pristine_git_object: fdb7bf7ca805286505bb42eb526c609b35ea0b88 + last_write_checksum: sha1:9ba28929868c649bfd4bb86b632c566db141bdcf + pristine_git_object: 6fc4afe3bdbd4b23d77f415e9acedaeddc430ed4 docs/operations/timerange.mdx: id: 03a218211f06 last_write_checksum: sha1:471eae0736b3af652fe5eb42ecb93e252c8c5516 @@ -11536,8 +11536,8 @@ trackedFiles: pristine_git_object: 569ef3d149eed44d36c0e00c4507e5b3efa30ad1 docs/sdks/benchmarks/README.mdx: id: 5b483a6770ba - last_write_checksum: sha1:298b23dc76e681ff838e78ea11d2e9160a494f7f - pristine_git_object: 5e9e4d5428eacd9151c49d278c917fd769b2ec9e + last_write_checksum: sha1:10a8edbf3bc300bab53ce72c3a37c974971b74bd + pristine_git_object: cf7205ab21da2ead20d7e8ef594ccb0273b4c661 docs/sdks/betaresponses/README.mdx: id: 8a1e987c9840 last_write_checksum: sha1:b6c877d4e4d77e6ea6ce093fbb4964b18e87fa48 @@ -11608,8 +11608,8 @@ trackedFiles: pristine_git_object: d45846d4514d25a84fbd8cd439a6bd5c37e75946 docs/sdks/models/README.mdx: id: 58f1ca464e0b - last_write_checksum: sha1:fed0a9321e7705d29049028dabf4ed450b36f11a - pristine_git_object: fd084ff5bc58c423c324936ee08d612a5e0170f5 + last_write_checksum: sha1:2e89247b7ad63c2bdcf9da989ac4f2e758eee729 + pristine_git_object: 005bce4cf4181e5481bae659bc732b06ec6783c3 docs/sdks/oauth/README.mdx: id: 42b5079343d2 last_write_checksum: sha1:ed962f2d4afda6e456d031d8783a4825aeb85b97 @@ -11684,8 +11684,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:c86555f125b317c60b6dc7d75c8c85d53c9eddf5 - pristine_git_object: 2c447a174d355e2ee877a8c18638aee0f1f34948 + last_write_checksum: sha1:4b7f55d26346f021c209beef8eb917767d419a53 + pristine_git_object: 8276a5a66036d4b6c5dd3e48a8b55f5ee87ae894 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11712,8 +11712,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:b86400cde6e75e20c233ce7dad40aa8f9f9fa482 - pristine_git_object: ddfad6e3d91e021ed41cd523bed71648f074743b + last_write_checksum: sha1:47380d7d68265343e57dbb94215f504a0ef965c1 + pristine_git_object: dada0df7f1278e386e9b1982e017787d242279ab src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -11736,8 +11736,8 @@ trackedFiles: pristine_git_object: a333c0862a1f01a381e9d5323765a8dfbb12fb57 src/openrouter/benchmarks.py: id: 178d2ad8d706 - last_write_checksum: sha1:aec03783a8012aee174f71a1a41e1026ddc22930 - pristine_git_object: 69d54e690138cd75f4a983e057a772820fd5455b + last_write_checksum: sha1:be86f24d07ba86e9585f7d2bc2c384dba5185727 + pristine_git_object: 96fd5fccc3da873631ccdd9533c56956f445bd19 src/openrouter/beta.py: id: fffdf54fd8f5 last_write_checksum: sha1:21fb1d65cd9800c65c7a2ae520619002976e37cd @@ -11764,8 +11764,8 @@ trackedFiles: pristine_git_object: 63c4ac1dddec2fc2992e4413222b2faea7724416 src/openrouter/components/aabenchmarkentry.py: id: e2e0f0b48c82 - last_write_checksum: sha1:98f5828e7188c8fa506e51773ad54f256d94978d - pristine_git_object: fe000bbfabfe54ff6bab970496b5e04ba58f42e1 + last_write_checksum: sha1:08125e1d60df82793e11e8aed6e3c9fdb7512ebb + pristine_git_object: 89a1879e4885cfa53f8485f447d7e74bfd6ece51 src/openrouter/components/accountguardrailpolicy.py: id: 280c4cb634e8 last_write_checksum: sha1:397d865dd94f366abac85d10e5bffca666050c78 @@ -14020,8 +14020,8 @@ trackedFiles: pristine_git_object: b711944d157ac79e84abab12ebc4a37ac03c3400 src/openrouter/components/modelbenchmarks.py: id: efd0b01b6775 - last_write_checksum: sha1:7c999f6fc941aa4a8608c650c97f128a54b5186d - pristine_git_object: 4ad4302d287a960f8dbb3984ec268dfb26acbfb2 + last_write_checksum: sha1:0e0844554905ee8fe699d48662f8da207eba45df + pristine_git_object: 73747137e9340570ceb6437de9fa27550347cfd9 src/openrouter/components/modelgroup.py: id: ffb5492b0d39 last_write_checksum: sha1:75da0e0a977d4fd2908506683548c7a8c878b869 @@ -15320,8 +15320,8 @@ trackedFiles: pristine_git_object: bad387cea54fcab00e8a7fe54780dd97a29d72c3 src/openrouter/components/unifiedbenchmarksaaitem.py: id: cc8382ac1af5 - last_write_checksum: sha1:cd048ad949a165ab670eb60c823484b06b7e9ba4 - pristine_git_object: 21a530ac6525a203cfe9656013bdc53c34f49ab3 + last_write_checksum: sha1:c047dfc9bb3cb2faf2284b2748ebcce88360b8f6 + pristine_git_object: b730ef335fc5e7ac2bf1cdf8698d504a34d57ced src/openrouter/components/unifiedbenchmarksdaitem.py: id: 946501943ce2 last_write_checksum: sha1:c554401eb1ef4fb597743004c4bcf77afbd059ba @@ -15788,8 +15788,8 @@ trackedFiles: pristine_git_object: 5b741456655ff48919d17ffd552a6410f0587966 src/openrouter/models_.py: id: 4e1ae1fe5b98 - last_write_checksum: sha1:dd14d6eb07c88ebe699d616c81c853551202f72b - pristine_git_object: cd738baa66033d65d6bad495f822fd4381db7cd9 + last_write_checksum: sha1:7e3e5275d99180adffb5a4b044a5d93af02fb796 + pristine_git_object: e4a9e3e4f9aee7c6fbb8b9c3b35bea9873e34646 src/openrouter/oauth.py: id: 1948ce27255b last_write_checksum: sha1:938c8b5ac63c1410e1173a2873b9c2493d720a1d @@ -16080,8 +16080,8 @@ trackedFiles: pristine_git_object: 2e8240578f955bc7d8985533d4f57b81a85bd404 src/openrouter/operations/getbenchmarks.py: id: 5fb88644491e - last_write_checksum: sha1:35901dd9de7b6968dd73c45a25ebd16fe8fc0550 - pristine_git_object: 1e48e932b788665b9a91783c50b034fbd2e34c03 + last_write_checksum: sha1:f3cb5df6279d1e381513fe4a4f7bb7d6f78bbe66 + pristine_git_object: 558e2929e78bfad5928bcfb4e554105bcbfc30e7 src/openrouter/operations/getbudgetpolicy.py: id: e17092f50a72 last_write_checksum: sha1:5afb8cb870f2b3b0a533c95ec1ce85a2ed41135e @@ -16136,8 +16136,8 @@ trackedFiles: pristine_git_object: 607d128d5100c8275490b56b11fcec7ef735aaa6 src/openrouter/operations/getmodels.py: id: 5bd5dfcb0125 - last_write_checksum: sha1:e1267ce52ba9eeba08af7d5b5b33b36b75209596 - pristine_git_object: 5ae045de237788951e674010c38ef1470918a2a7 + last_write_checksum: sha1:3d84f2ca2ac484fe2dbdb6ec4d7b83f47aa54d88 + pristine_git_object: a8c181f4102dd3fbadaadfbd8b95b6afeb82b8f1 src/openrouter/operations/getmoderationpolicy.py: id: 423190ca3bf3 last_write_checksum: sha1:c7b742130072c52879d95fbe3b8f60296cca4353 @@ -16304,8 +16304,8 @@ trackedFiles: pristine_git_object: cdde733b97c9b409d550fd58f9d49184d1647f4d src/openrouter/operations/listmodelsuser.py: id: 16eb5946cf60 - last_write_checksum: sha1:b912ce89e88c901715893cd1cb88fca8db0fc5b4 - pristine_git_object: 15d06ccd09a0c9e3327a449af67a27755b8e7a8c + last_write_checksum: sha1:3f33a6cafa85f807e4225d05dbf7a6f79861ebd3 + pristine_git_object: 1bd150e3e1ef8470846c3a9c67b68246abbc205d src/openrouter/operations/listmoderationpolicies.py: id: a091a9ee01d0 last_write_checksum: sha1:589611d2c8438f22d130d88497aecd6fbe15ff0e @@ -18334,7 +18334,7 @@ examples: include_run_config: true responses: "200": - application/json: {"data": [{"agentic_index": 55.8, "coding_index": 63.2, "cyber_index": 36.4, "decision_index": 75.7, "display_name": "GPT-4o", "economics_index": 57.2, "engineering_index": 60.4, "finance_and_accounting_index": 58.1, "healthcare_and_medical_index": 56.9, "intelligence_index": 71.4, "legal_index": 52.3, "model_permaslug": "openai/gpt-4o", "multilingual_index": 0.82, "openness_index": 33.3, "pricing": {"completion": "0.00001", "prompt": "0.0000025"}, "source": "artificial-analysis", "strategy_and_ops_index": 61.7}, {"accuracy": 0.72, "accuracy_stddev": 0.03, "avg_cost_per_task": 0.002, "benchmark_type": "gpqa_diamond", "display_name": "GPT-4o", "last_run_timestamp": "2026-06-03T12:00:00Z", "model_permaslug": "openai/gpt-4o", "source": "openrouter", "total_tasks": 300}], "meta": {"as_of": "2026-06-03T12:00:00Z", "citation": null, "model_count": 1, "source": null, "source_url": null, "task_type": null, "version": "v1"}} + application/json: {"data": [{"agentic_index": null, "coding_index": null, "cyber_index": 36.4, "decision_index": 75.7, "display_name": "GPT-4o", "economics_index": 57.2, "engineering_index": 60.4, "finance_and_accounting_index": 58.1, "healthcare_and_medical_index": 56.9, "intelligence_index": 71.4, "legal_index": 52.3, "model_permaslug": "openai/gpt-4o", "multilingual_index": 0.82, "openness_index": 33.3, "pricing": {"completion": "0.00001", "prompt": "0.0000025"}, "source": "artificial-analysis", "strategy_and_ops_index": 61.7}, {"accuracy": 0.72, "accuracy_stddev": 0.03, "avg_cost_per_task": 0.002, "benchmark_type": "gpqa_diamond", "display_name": "GPT-4o", "last_run_timestamp": "2026-06-03T12:00:00Z", "model_permaslug": "openai/gpt-4o", "source": "openrouter", "total_tasks": 300}], "meta": {"as_of": "2026-06-03T12:00:00Z", "citation": null, "model_count": 1, "source": null, "source_url": null, "task_type": null, "version": "v1"}} "400": application/json: {"error": {"code": 400, "message": "Invalid request parameters"}} "401": @@ -21727,4 +21727,3 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.summary).format.enum(google_vertex_xai_responses_v1)` **Added**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.summary).format.enum(google_vertex_xai_responses_v1)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(assistant).reasoning_details[].union(reasoning.server_tool_call).format.enum(google_vertex_xai_responses_v1)` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(ReasoningItem).format.enum(google_vertex_xai_responses_v1)` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 89282fb8..3f2b7fc5 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.189 + version: 1.3.190 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 73d658aa..f641f108 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -24,10 +24,10 @@ components: Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. schemas: AABenchmarkEntry: - description: 'Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model''s best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model''s strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.' + description: 'Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model''s best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.' example: - agentic_index: 55.8 - coding_index: 63.2 + agentic_index: null + coding_index: null cyber_index: 36.4 decision_index: 75.7 economics_index: 57.2 @@ -42,16 +42,16 @@ components: properties: agentic_index: deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.' - example: 55.8 + description: 'Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.' + example: null format: 'double' type: - 'number' - 'null' coding_index: deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.' - example: 63.2 + description: 'Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.' + example: null format: 'double' type: - 'number' @@ -22280,8 +22280,8 @@ components: description: 'Third-party benchmark rankings for this model. Omitted when no benchmark data is available.' example: artificial_analysis: - agentic_index: 55.8 - coding_index: 63.2 + agentic_index: null + coding_index: null cyber_index: 36.4 decision_index: 75.7 economics_index: 57.2 @@ -36419,10 +36419,10 @@ components: - 'object' - 'null' UnifiedBenchmarksAAItem: - description: 'One model''s Artificial Analysis index scores. Each score is the model''s best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model''s strongest by Intelligence Index, then Coding Index, then Agentic Index. With `task_type` set to `intelligence`, `coding` or `agentic`, those three indexes all come from the configuration that scores best on the one named.' + description: 'One model''s Artificial Analysis index scores. Each score is the model''s best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes.' example: - agentic_index: 55.8 - coding_index: 63.2 + agentic_index: null + coding_index: null cyber_index: 36.4 decision_index: 75.7 display_name: 'GPT-4o' @@ -36443,16 +36443,16 @@ components: properties: agentic_index: deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.' - example: 55.8 + description: 'Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.' + example: null format: 'double' type: - 'number' - 'null' coding_index: deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.' - example: 63.2 + description: 'Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.' + example: null format: 'double' type: - 'number' @@ -36804,8 +36804,8 @@ components: UnifiedBenchmarksResponse: example: data: - - agentic_index: 55.8 - coding_index: 63.2 + - agentic_index: null + coding_index: null cyber_index: 36.4 decision_index: 75.7 display_name: 'GPT-4o' @@ -42156,12 +42156,12 @@ paths: example: 'artificial-analysis' type: 'string' x-speakeasy-unknown-values: allow - - description: 'Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter''s own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.' + - description: 'Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter''s own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.' in: 'query' name: 'task_type' required: false schema: - description: 'Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter''s own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.' + description: 'Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter''s own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.' enum: - 'intelligence' - 'coding' @@ -42176,7 +42176,7 @@ paths: - 'multilingual' - 'decision' - 'search' - example: 'coding' + example: 'intelligence' type: 'string' x-speakeasy-unknown-values: allow - description: 'Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources'' items as they are.' @@ -42260,8 +42260,8 @@ paths: application/json: example: data: - - agentic_index: 55.8 - coding_index: 63.2 + - agentic_index: null + coding_index: null cyber_index: 36.4 decision_index: 75.7 display_name: 'GPT-4o' @@ -52914,12 +52914,12 @@ paths: description: 'Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text".' example: 'text' type: 'string' - - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' + - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' in: 'query' name: 'sort' required: false schema: - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' + description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' enum: - 'most-popular' - 'newest' @@ -53126,48 +53126,48 @@ paths: - 'number' - 'null' - deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.' in: 'query' name: 'min_coding_index' required: false schema: - description: 'Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.' example: 50 minimum: 0 type: - 'number' - 'null' - deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.' in: 'query' name: 'max_coding_index' required: false schema: - description: 'Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.' example: 100 minimum: 0 type: - 'number' - 'null' - deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.' in: 'query' name: 'min_agentic_index' required: false schema: - description: 'Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.' example: 50 minimum: 0 type: - 'number' - 'null' - deprecated: true - description: 'Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.' in: 'query' name: 'max_agentic_index' required: false schema: - description: 'Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded.' + description: 'Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.' example: 100 minimum: 0 type: @@ -53828,12 +53828,12 @@ paths: description: 'Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text".' example: 'text' type: 'string' - - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' + - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' in: 'query' name: 'sort' required: false schema: - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' + description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.' enum: - 'most-popular' - 'newest' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6458ed30..68e71490 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:e95b634c569a5ce9ee37acbca9f4186e898d32a2cd71095d45647d307dc2f5ed - sourceBlobDigest: sha256:2df7f291fb43f7b1923db76195d20848afb2e1f8bc1a39c1aff0efe775ec6aee + sourceRevisionDigest: sha256:fb951fb28c28426dbf4366c208b8a19c02cc79c2480929e5180646bce86fcc83 + sourceBlobDigest: sha256:cbf13970f8a5daa031d7a82948a5150f4dc0f546fa5a23fd0d173ef9991ceae6 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:e95b634c569a5ce9ee37acbca9f4186e898d32a2cd71095d45647d307dc2f5ed - sourceBlobDigest: sha256:2df7f291fb43f7b1923db76195d20848afb2e1f8bc1a39c1aff0efe775ec6aee + sourceRevisionDigest: sha256:fb951fb28c28426dbf4366c208b8a19c02cc79c2480929e5180646bce86fcc83 + sourceBlobDigest: sha256:cbf13970f8a5daa031d7a82948a5150f4dc0f546fa5a23fd0d173ef9991ceae6 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:fba1ad7ea36a5ab7799d6d871c525193d8816d9c5c12b7cc56742efcf1fd1a78 + codeSamplesRevisionDigest: sha256:625d43d565e08b87680a132d5015bd9a18784fc9340f9ad18cc26593f3099455 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index f9d38c34..6368915c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4659,4 +4659,14 @@ Based on: ### Generated - [python v1.3.189] . ### Releases -- [PyPI v1.3.189] https://pypi.org/project/openrouter/1.3.189 - . \ No newline at end of file +- [PyPI v1.3.189] https://pypi.org/project/openrouter/1.3.189 - . + +## 2026-11-18 17:22:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.190] . +### Releases +- [PyPI v1.3.190] https://pypi.org/project/openrouter/1.3.190 - . \ No newline at end of file diff --git a/docs/components/aabenchmarkentry.mdx b/docs/components/aabenchmarkentry.mdx index d13b9f95..31cf5a05 100644 --- a/docs/components/aabenchmarkentry.mdx +++ b/docs/components/aabenchmarkentry.mdx @@ -2,23 +2,23 @@ title: "AABenchmarkEntry" --- -Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them. +Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them. ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`agentic_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed. | 55.8 | -| ~~`coding_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed. | 63.2 | -| `cyber_index` | *Nullable[float]* | ✔️ | Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 36.4 | -| `decision_index` | *Nullable[float]* | ✔️ | Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model. | 75.7 | -| `economics_index` | *Nullable[float]* | ✔️ | Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 57.2 | -| `engineering_index` | *Nullable[float]* | ✔️ | Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 60.4 | -| `finance_and_accounting_index` | *Nullable[float]* | ✔️ | Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 58.1 | -| `healthcare_and_medical_index` | *Nullable[float]* | ✔️ | Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 56.9 | -| `intelligence_index` | *Nullable[float]* | ✔️ | Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 71.4 | -| `legal_index` | *Nullable[float]* | ✔️ | Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 52.3 | -| `multilingual_index` | *Nullable[float]* | ✔️ | Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 0.82 | -| `openness_index` | *Nullable[float]* | ✔️ | Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 33.3 | -| `strategy_and_ops_index` | *Nullable[float]* | ✔️ | Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 61.7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`agentic_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null. | null | +| ~~`coding_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null. | null | +| `cyber_index` | *Nullable[float]* | ✔️ | Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 36.4 | +| `decision_index` | *Nullable[float]* | ✔️ | Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model. | 75.7 | +| `economics_index` | *Nullable[float]* | ✔️ | Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 57.2 | +| `engineering_index` | *Nullable[float]* | ✔️ | Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 60.4 | +| `finance_and_accounting_index` | *Nullable[float]* | ✔️ | Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 58.1 | +| `healthcare_and_medical_index` | *Nullable[float]* | ✔️ | Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 56.9 | +| `intelligence_index` | *Nullable[float]* | ✔️ | Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 71.4 | +| `legal_index` | *Nullable[float]* | ✔️ | Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 52.3 | +| `multilingual_index` | *Nullable[float]* | ✔️ | Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 0.82 | +| `openness_index` | *Nullable[float]* | ✔️ | Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 33.3 | +| `strategy_and_ops_index` | *Nullable[float]* | ✔️ | Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 61.7 | \ No newline at end of file diff --git a/docs/components/model.mdx b/docs/components/model.mdx index 0e60fa4d..74d129f6 100644 --- a/docs/components/model.mdx +++ b/docs/components/model.mdx @@ -11,7 +11,7 @@ Information about an AI model available on OpenRouter | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `alias_target` | [Optional[components.ModelAliasTarget]](../components/modelaliastarget.mdx) | ➖ | Concrete model targeted by this tilde-latest alias, when applicable | \{
"name": "Claude Sonnet 4.5",
"slug": "anthropic/claude-sonnet-4.5"
} | | `architecture` | [components.ModelArchitecture](../components/modelarchitecture.mdx) | ✔️ | Model architecture information | \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
} | -| `benchmarks` | [Optional[components.ModelBenchmarks]](../components/modelbenchmarks.mdx) | ➖ | Third-party benchmark rankings for this model. Omitted when no benchmark data is available. | \{
"artificial_analysis": \{
"agentic_index": 55.8,
"coding_index": 63.2,
"cyber_index": 36.4,
"decision_index": 75.7,
"economics_index": 57.2,
"engineering_index": 60.4,
"finance_and_accounting_index": 58.1,
"healthcare_and_medical_index": 56.9,
"intelligence_index": 71.4,
"legal_index": 52.3,
"multilingual_index": 0.82,
"openness_index": 33.3,
"strategy_and_ops_index": 61.7
},
"design_arena": [
\{
"arena": "models",
"category": "website",
"elo": 1385.2,
"rank": 5,
"win_rate": 62.5
}
]
} | +| `benchmarks` | [Optional[components.ModelBenchmarks]](../components/modelbenchmarks.mdx) | ➖ | Third-party benchmark rankings for this model. Omitted when no benchmark data is available. | \{
"artificial_analysis": \{
"agentic_index": null,
"coding_index": null,
"cyber_index": 36.4,
"decision_index": 75.7,
"economics_index": 57.2,
"engineering_index": 60.4,
"finance_and_accounting_index": 58.1,
"healthcare_and_medical_index": 56.9,
"intelligence_index": 71.4,
"legal_index": 52.3,
"multilingual_index": 0.82,
"openness_index": 33.3,
"strategy_and_ops_index": 61.7
},
"design_arena": [
\{
"arena": "models",
"category": "website",
"elo": 1385.2,
"rank": 5,
"win_rate": 62.5
}
]
} | | `canonical_slug` | *str* | ✔️ | Canonical slug for the model | openai/gpt-4 | | `context_length` | *Nullable[int]* | ✔️ | Maximum context length in tokens | 8192 | | `created` | *int* | ✔️ | Unix timestamp of when the model was created | 1692901234 | diff --git a/docs/components/modelbenchmarks.mdx b/docs/components/modelbenchmarks.mdx index e1f0625c..3b25f535 100644 --- a/docs/components/modelbenchmarks.mdx +++ b/docs/components/modelbenchmarks.mdx @@ -7,7 +7,7 @@ Third-party benchmark rankings for this model. Omitted when no benchmark data is ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `artificial_analysis` | [Optional[components.AABenchmarkEntry]](../components/aabenchmarkentry.mdx) | ➖ | Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them. | \{
"agentic_index": 55.8,
"coding_index": 63.2,
"cyber_index": 36.4,
"decision_index": 75.7,
"economics_index": 57.2,
"engineering_index": 60.4,
"finance_and_accounting_index": 58.1,
"healthcare_and_medical_index": 56.9,
"intelligence_index": 71.4,
"legal_index": 52.3,
"multilingual_index": 0.82,
"openness_index": 33.3,
"strategy_and_ops_index": 61.7
} | -| `design_arena` | List[[components.DABenchmarkEntry](../components/dabenchmarkentry.mdx)] | ✔️ | Design Arena ELO rankings across arena+category pairs. | [
\{
"arena": "models",
"category": "website",
"elo": 1385.2,
"rank": 5,
"win_rate": 62.5
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `artificial_analysis` | [Optional[components.AABenchmarkEntry]](../components/aabenchmarkentry.mdx) | ➖ | Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them. | \{
"agentic_index": null,
"coding_index": null,
"cyber_index": 36.4,
"decision_index": 75.7,
"economics_index": 57.2,
"engineering_index": 60.4,
"finance_and_accounting_index": 58.1,
"healthcare_and_medical_index": 56.9,
"intelligence_index": 71.4,
"legal_index": 52.3,
"multilingual_index": 0.82,
"openness_index": 33.3,
"strategy_and_ops_index": 61.7
} | +| `design_arena` | List[[components.DABenchmarkEntry](../components/dabenchmarkentry.mdx)] | ✔️ | Design Arena ELO rankings across arena+category pairs. | [
\{
"arena": "models",
"category": "website",
"elo": 1385.2,
"rank": 5,
"win_rate": 62.5
}
] | \ No newline at end of file diff --git a/docs/components/unifiedbenchmarksaaitem.mdx b/docs/components/unifiedbenchmarksaaitem.mdx index 3d56a72b..22a29399 100644 --- a/docs/components/unifiedbenchmarksaaitem.mdx +++ b/docs/components/unifiedbenchmarksaaitem.mdx @@ -2,27 +2,27 @@ title: "UnifiedBenchmarksAAItem" --- -One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. With `task_type` set to `intelligence`, `coding` or `agentic`, those three indexes all come from the configuration that scores best on the one named. +One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`agentic_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed. | 55.8 | -| ~~`coding_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed. | 63.2 | -| `cyber_index` | *Nullable[float]* | ✔️ | Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 36.4 | -| `decision_index` | *Nullable[float]* | ✔️ | Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model. | 75.7 | -| `display_name` | *str* | ✔️ | Model name as listed on Artificial Analysis. | GPT-4o | -| `economics_index` | *Nullable[float]* | ✔️ | Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 57.2 | -| `engineering_index` | *Nullable[float]* | ✔️ | Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 60.4 | -| `finance_and_accounting_index` | *Nullable[float]* | ✔️ | Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 58.1 | -| `healthcare_and_medical_index` | *Nullable[float]* | ✔️ | Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 56.9 | -| `intelligence_index` | *Nullable[float]* | ✔️ | Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 71.4 | -| `legal_index` | *Nullable[float]* | ✔️ | Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 52.3 | -| `model_permaslug` | *str* | ✔️ | Stable OpenRouter model identifier. | openai/gpt-4o | -| `multilingual_index` | *Nullable[float]* | ✔️ | Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 0.82 | -| `openness_index` | *Nullable[float]* | ✔️ | Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 33.3 | -| `pricing` | [Nullable[components.UnifiedBenchmarkPricing]](../components/unifiedbenchmarkpricing.mdx) | ✔️ | OpenRouter pricing per token for this model. Null if pricing is unavailable. | \{
"completion": "0.000015",
"prompt": "0.000003"
} | -| `source` | [components.UnifiedBenchmarksAAItemSource](../components/unifiedbenchmarksaaitemsource.mdx) | ✔️ | Benchmark source discriminator. | | -| `strategy_and_ops_index` | *Nullable[float]* | ✔️ | Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 61.7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`agentic_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null. | null | +| ~~`coding_index`~~ | *Nullable[float]* | ✔️ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null. | null | +| `cyber_index` | *Nullable[float]* | ✔️ | Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 36.4 | +| `decision_index` | *Nullable[float]* | ✔️ | Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model. | 75.7 | +| `display_name` | *str* | ✔️ | Model name as listed on Artificial Analysis. | GPT-4o | +| `economics_index` | *Nullable[float]* | ✔️ | Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 57.2 | +| `engineering_index` | *Nullable[float]* | ✔️ | Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 60.4 | +| `finance_and_accounting_index` | *Nullable[float]* | ✔️ | Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 58.1 | +| `healthcare_and_medical_index` | *Nullable[float]* | ✔️ | Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 56.9 | +| `intelligence_index` | *Nullable[float]* | ✔️ | Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 71.4 | +| `legal_index` | *Nullable[float]* | ✔️ | Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 52.3 | +| `model_permaslug` | *str* | ✔️ | Stable OpenRouter model identifier. | openai/gpt-4o | +| `multilingual_index` | *Nullable[float]* | ✔️ | Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 0.82 | +| `openness_index` | *Nullable[float]* | ✔️ | Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model. | 33.3 | +| `pricing` | [Nullable[components.UnifiedBenchmarkPricing]](../components/unifiedbenchmarkpricing.mdx) | ✔️ | OpenRouter pricing per token for this model. Null if pricing is unavailable. | \{
"completion": "0.000015",
"prompt": "0.000003"
} | +| `source` | [components.UnifiedBenchmarksAAItemSource](../components/unifiedbenchmarksaaitemsource.mdx) | ✔️ | Benchmark source discriminator. | | +| `strategy_and_ops_index` | *Nullable[float]* | ✔️ | Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model. | 61.7 | \ No newline at end of file diff --git a/docs/operations/getbenchmarksrequest.mdx b/docs/operations/getbenchmarksrequest.mdx index 7aca7c79..5009b6d0 100644 --- a/docs/operations/getbenchmarksrequest.mdx +++ b/docs/operations/getbenchmarksrequest.mdx @@ -4,17 +4,17 @@ title: "GetBenchmarksRequest" ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `source` | [Optional[operations.Source]](../operations/source.mdx) | ➖ | Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. | artificial-analysis | -| `task_type` | [Optional[operations.TaskType]](../operations/tasktype.mdx) | ➖ | Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. | coding | -| `benchmark_type` | [Optional[operations.BenchmarkType]](../operations/benchmarktype.mdx) | ➖ | Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. | search_widesearch | -| `include_run_config` | *Optional[bool]* | ➖ | Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. | true | -| `search_engine` | *Optional[str]* | ➖ | OpenRouter search benchmarks only: filter by the search engine used. | exa | -| `search_surface` | [Optional[operations.SearchSurface]](../operations/searchsurface.mdx) | ➖ | OpenRouter search benchmarks only: filter by the request surface the lane ran on. | server-tool | -| `arena` | [Optional[operations.Arena]](../operations/arena.mdx) | ➖ | Design Arena only: arena to query. Defaults to `models` when source is `design-arena`. | models | -| `category` | *Optional[str]* | ➖ | Design Arena only: category within the arena (e.g. `codecategories`, `uicomponent`, `gamedev`, `3d`, `dataviz`, `image`, `video`, `svg`). When omitted, returns all categories. | codecategories | -| `max_results` | *Optional[int]* | ➖ | Maximum number of items to return. When omitted, all matching results are returned. | 50 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `source` | [Optional[operations.Source]](../operations/source.mdx) | ➖ | Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. | artificial-analysis | +| `task_type` | [Optional[operations.TaskType]](../operations/tasktype.mdx) | ➖ | Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. | intelligence | +| `benchmark_type` | [Optional[operations.BenchmarkType]](../operations/benchmarktype.mdx) | ➖ | Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. | search_widesearch | +| `include_run_config` | *Optional[bool]* | ➖ | Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. | true | +| `search_engine` | *Optional[str]* | ➖ | OpenRouter search benchmarks only: filter by the search engine used. | exa | +| `search_surface` | [Optional[operations.SearchSurface]](../operations/searchsurface.mdx) | ➖ | OpenRouter search benchmarks only: filter by the request surface the lane ran on. | server-tool | +| `arena` | [Optional[operations.Arena]](../operations/arena.mdx) | ➖ | Design Arena only: arena to query. Defaults to `models` when source is `design-arena`. | models | +| `category` | *Optional[str]* | ➖ | Design Arena only: category within the arena (e.g. `codecategories`, `uicomponent`, `gamedev`, `3d`, `dataviz`, `image`, `video`, `svg`). When omitted, returns all categories. | codecategories | +| `max_results` | *Optional[int]* | ➖ | Maximum number of items to return. When omitted, all matching results are returned. | 50 | \ No newline at end of file diff --git a/docs/operations/getmodelsrequest.mdx b/docs/operations/getmodelsrequest.mdx index 3aff498b..d71b3a2e 100644 --- a/docs/operations/getmodelsrequest.mdx +++ b/docs/operations/getmodelsrequest.mdx @@ -4,58 +4,58 @@ title: "GetModelsRequest" ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | -| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | -| `category` | [Optional[operations.GetModelsCategory]](../operations/getmodelscategory.mdx) | ➖ | Filter models by use case category | programming | -| `supported_parameters` | *Optional[str]* | ➖ | Filter models by supported parameter (comma-separated) | temperature | -| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | -| `sort` | [Optional[operations.GetModelsSort]](../operations/getmodelssort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | -| `q` | *Optional[str]* | ➖ | Free-text search by model name or slug. | gpt-4 | -| `input_modalities` | *Optional[str]* | ➖ | Filter models by input modality. Comma-separated list of: text, image, audio, file. | text,image | -| `endpoints` | *Optional[str]* | ➖ | Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). | /api/alpha/extractions | -| `context` | *Optional[int]* | ➖ | Minimum context length (tokens). Models with smaller context are excluded. | 128000 | -| `min_price` | *OptionalNullable[float]* | ➖ | Minimum prompt price in $/M tokens. | 0 | -| `max_price` | *OptionalNullable[float]* | ➖ | Maximum prompt price in $/M tokens. | 10 | -| `arch` | *Optional[str]* | ➖ | Filter models by architecture/model family (e.g. GPT, Claude, Gemini, Llama). | GPT | -| `model_authors` | *Optional[str]* | ➖ | Filter models by the organization that created the model. Comma-separated list of author slugs. | openai,anthropic | -| `providers` | *Optional[str]* | ➖ | Filter models by hosting provider. Comma-separated list of provider names. | OpenAI,Anthropic | -| `distillable` | [Optional[operations.Distillable]](../operations/distillable.mdx) | ➖ | Filter by distillation capability. "true" returns only distillable models, "false" excludes them. | true | -| `zdr` | [Optional[operations.Zdr]](../operations/zdr.mdx) | ➖ | When set to "true", return only models with zero data retention endpoints. | true | -| `region` | [Optional[operations.Region]](../operations/region.mdx) | ➖ | Filter to models with endpoints in the given data region ("eu" or "us"). | eu | -| `min_output_price` | *OptionalNullable[float]* | ➖ | Minimum completion (output) price in $/M tokens. | 0 | -| `max_output_price` | *OptionalNullable[float]* | ➖ | Maximum completion (output) price in $/M tokens. | 10 | -| `min_age_days` | *OptionalNullable[int]* | ➖ | Minimum model age in days since its creation date. | 0 | -| `max_age_days` | *OptionalNullable[int]* | ➖ | Maximum model age in days since its creation date. | 90 | -| `min_intelligence_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 50 | -| `max_intelligence_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 100 | -| ~~`min_coding_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded. | 50 | -| ~~`max_coding_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded. | 100 | -| ~~`min_agentic_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded. | 50 | -| ~~`max_agentic_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded. | 100 | -| `min_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 50 | -| `max_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 100 | -| `min_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 50 | -| `max_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 100 | -| `min_legal_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 50 | -| `max_legal_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 100 | -| `min_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 50 | -| `max_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 100 | -| `min_engineering_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 50 | -| `max_engineering_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 100 | -| `min_economics_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 50 | -| `max_economics_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 100 | -| `min_cyber_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 50 | -| `max_cyber_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 100 | -| `min_openness_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 50 | -| `max_openness_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 100 | -| `min_multilingual_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 0.5 | -| `max_multilingual_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 1 | -| `min_decision_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 50 | -| `max_decision_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 100 | -| `min_tool_success_rate` | *OptionalNullable[float]* | ➖ | Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason). | 0.9 | -| `max_tool_success_rate` | *OptionalNullable[float]* | ➖ | Maximum tool-calling success rate, as a fraction in [0, 1]. | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | +| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | +| `category` | [Optional[operations.GetModelsCategory]](../operations/getmodelscategory.mdx) | ➖ | Filter models by use case category | programming | +| `supported_parameters` | *Optional[str]* | ➖ | Filter models by supported parameter (comma-separated) | temperature | +| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | +| `sort` | [Optional[operations.GetModelsSort]](../operations/getmodelssort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | +| `q` | *Optional[str]* | ➖ | Free-text search by model name or slug. | gpt-4 | +| `input_modalities` | *Optional[str]* | ➖ | Filter models by input modality. Comma-separated list of: text, image, audio, file. | text,image | +| `endpoints` | *Optional[str]* | ➖ | Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). | /api/alpha/extractions | +| `context` | *Optional[int]* | ➖ | Minimum context length (tokens). Models with smaller context are excluded. | 128000 | +| `min_price` | *OptionalNullable[float]* | ➖ | Minimum prompt price in $/M tokens. | 0 | +| `max_price` | *OptionalNullable[float]* | ➖ | Maximum prompt price in $/M tokens. | 10 | +| `arch` | *Optional[str]* | ➖ | Filter models by architecture/model family (e.g. GPT, Claude, Gemini, Llama). | GPT | +| `model_authors` | *Optional[str]* | ➖ | Filter models by the organization that created the model. Comma-separated list of author slugs. | openai,anthropic | +| `providers` | *Optional[str]* | ➖ | Filter models by hosting provider. Comma-separated list of provider names. | OpenAI,Anthropic | +| `distillable` | [Optional[operations.Distillable]](../operations/distillable.mdx) | ➖ | Filter by distillation capability. "true" returns only distillable models, "false" excludes them. | true | +| `zdr` | [Optional[operations.Zdr]](../operations/zdr.mdx) | ➖ | When set to "true", return only models with zero data retention endpoints. | true | +| `region` | [Optional[operations.Region]](../operations/region.mdx) | ➖ | Filter to models with endpoints in the given data region ("eu" or "us"). | eu | +| `min_output_price` | *OptionalNullable[float]* | ➖ | Minimum completion (output) price in $/M tokens. | 0 | +| `max_output_price` | *OptionalNullable[float]* | ➖ | Maximum completion (output) price in $/M tokens. | 10 | +| `min_age_days` | *OptionalNullable[int]* | ➖ | Minimum model age in days since its creation date. | 0 | +| `max_age_days` | *OptionalNullable[int]* | ➖ | Maximum model age in days since its creation date. | 90 | +| `min_intelligence_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 50 | +| `max_intelligence_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 100 | +| ~~`min_coding_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. | 50 | +| ~~`max_coding_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. | 100 | +| ~~`min_agentic_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. | 50 | +| ~~`max_agentic_index`~~ | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. | 100 | +| `min_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 50 | +| `max_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 100 | +| `min_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 50 | +| `max_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 100 | +| `min_legal_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 50 | +| `max_legal_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 100 | +| `min_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 50 | +| `max_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 100 | +| `min_engineering_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 50 | +| `max_engineering_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 100 | +| `min_economics_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 50 | +| `max_economics_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 100 | +| `min_cyber_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 50 | +| `max_cyber_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 100 | +| `min_openness_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 50 | +| `max_openness_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 100 | +| `min_multilingual_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 0.5 | +| `max_multilingual_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 1 | +| `min_decision_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 50 | +| `max_decision_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 100 | +| `min_tool_success_rate` | *OptionalNullable[float]* | ➖ | Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason). | 0.9 | +| `max_tool_success_rate` | *OptionalNullable[float]* | ➖ | Maximum tool-calling success rate, as a fraction in [0, 1]. | 1 | \ No newline at end of file diff --git a/docs/operations/getmodelssort.mdx b/docs/operations/getmodelssort.mdx index 771fe45d..e6bb18af 100644 --- a/docs/operations/getmodelssort.mdx +++ b/docs/operations/getmodelssort.mdx @@ -2,7 +2,7 @@ title: "GetModelsSort" --- -Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. +Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. ## Example Usage diff --git a/docs/operations/listmodelsuserrequest.mdx b/docs/operations/listmodelsuserrequest.mdx index 4d81aec2..c2c096c8 100644 --- a/docs/operations/listmodelsuserrequest.mdx +++ b/docs/operations/listmodelsuserrequest.mdx @@ -4,13 +4,13 @@ title: "ListModelsUserRequest" ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | -| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | -| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | -| `sort` | [Optional[operations.ListModelsUserSort]](../operations/listmodelsusersort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | -| `client` | [Optional[operations.Client]](../operations/client.mdx) | ➖ | Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. | codex | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | +| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | +| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | +| `sort` | [Optional[operations.ListModelsUserSort]](../operations/listmodelsusersort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | +| `client` | [Optional[operations.Client]](../operations/client.mdx) | ➖ | Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. | codex | \ No newline at end of file diff --git a/docs/operations/listmodelsusersort.mdx b/docs/operations/listmodelsusersort.mdx index 574a4984..79cc3db8 100644 --- a/docs/operations/listmodelsusersort.mdx +++ b/docs/operations/listmodelsusersort.mdx @@ -2,7 +2,7 @@ title: "ListModelsUserSort" --- -Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. +Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. ## Example Usage diff --git a/docs/operations/tasktype.mdx b/docs/operations/tasktype.mdx index fdb7bf7c..6fc4afe3 100644 --- a/docs/operations/tasktype.mdx +++ b/docs/operations/tasktype.mdx @@ -2,7 +2,7 @@ title: "TaskType" --- -Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. +Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. ## Example Usage diff --git a/docs/sdks/benchmarks/README.mdx b/docs/sdks/benchmarks/README.mdx index 5e9e4d54..cf7205ab 100644 --- a/docs/sdks/benchmarks/README.mdx +++ b/docs/sdks/benchmarks/README.mdx @@ -38,21 +38,21 @@ with OpenRouter( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `source` | [Optional[operations.Source]](../../operations/source.mdx) | ➖ | Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. | artificial-analysis | -| `task_type` | [Optional[operations.TaskType]](../../operations/tasktype.mdx) | ➖ | Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. | coding | -| `benchmark_type` | [Optional[operations.BenchmarkType]](../../operations/benchmarktype.mdx) | ➖ | Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. | search_widesearch | -| `include_run_config` | *Optional[bool]* | ➖ | Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. | true | -| `search_engine` | *Optional[str]* | ➖ | OpenRouter search benchmarks only: filter by the search engine used. | exa | -| `search_surface` | [Optional[operations.SearchSurface]](../../operations/searchsurface.mdx) | ➖ | OpenRouter search benchmarks only: filter by the request surface the lane ran on. | server-tool | -| `arena` | [Optional[operations.Arena]](../../operations/arena.mdx) | ➖ | Design Arena only: arena to query. Defaults to `models` when source is `design-arena`. | models | -| `category` | *Optional[str]* | ➖ | Design Arena only: category within the arena (e.g. `codecategories`, `uicomponent`, `gamedev`, `3d`, `dataviz`, `image`, `video`, `svg`). When omitted, returns all categories. | codecategories | -| `max_results` | *Optional[int]* | ➖ | Maximum number of items to return. When omitted, all matching results are returned. | 50 | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `source` | [Optional[operations.Source]](../../operations/source.mdx) | ➖ | Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. | artificial-analysis | +| `task_type` | [Optional[operations.TaskType]](../../operations/tasktype.mdx) | ➖ | Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. | intelligence | +| `benchmark_type` | [Optional[operations.BenchmarkType]](../../operations/benchmarktype.mdx) | ➖ | Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. | search_widesearch | +| `include_run_config` | *Optional[bool]* | ➖ | Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. | true | +| `search_engine` | *Optional[str]* | ➖ | OpenRouter search benchmarks only: filter by the search engine used. | exa | +| `search_surface` | [Optional[operations.SearchSurface]](../../operations/searchsurface.mdx) | ➖ | OpenRouter search benchmarks only: filter by the request surface the lane ran on. | server-tool | +| `arena` | [Optional[operations.Arena]](../../operations/arena.mdx) | ➖ | Design Arena only: arena to query. Defaults to `models` when source is `design-arena`. | models | +| `category` | *Optional[str]* | ➖ | Design Arena only: category within the arena (e.g. `codecategories`, `uicomponent`, `gamedev`, `3d`, `dataviz`, `image`, `video`, `svg`). When omitted, returns all categories. | codecategories | +| `max_results` | *Optional[int]* | ➖ | Maximum number of items to return. When omitted, all matching results are returned. | 50 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/docs/sdks/models/README.mdx b/docs/sdks/models/README.mdx index fd084ff5..005bce4c 100644 --- a/docs/sdks/models/README.mdx +++ b/docs/sdks/models/README.mdx @@ -92,62 +92,62 @@ with OpenRouter( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | -| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | -| `category` | [Optional[operations.GetModelsCategory]](../../operations/getmodelscategory.mdx) | ➖ | Filter models by use case category | programming | -| `supported_parameters` | *Optional[str]* | ➖ | Filter models by supported parameter (comma-separated) | temperature | -| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | -| `sort` | [Optional[operations.GetModelsSort]](../../operations/getmodelssort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | -| `q` | *Optional[str]* | ➖ | Free-text search by model name or slug. | gpt-4 | -| `input_modalities` | *Optional[str]* | ➖ | Filter models by input modality. Comma-separated list of: text, image, audio, file. | text,image | -| `endpoints` | *Optional[str]* | ➖ | Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). | /api/alpha/extractions | -| `context` | *Optional[int]* | ➖ | Minimum context length (tokens). Models with smaller context are excluded. | 128000 | -| `min_price` | *OptionalNullable[float]* | ➖ | Minimum prompt price in $/M tokens. | 0 | -| `max_price` | *OptionalNullable[float]* | ➖ | Maximum prompt price in $/M tokens. | 10 | -| `arch` | *Optional[str]* | ➖ | Filter models by architecture/model family (e.g. GPT, Claude, Gemini, Llama). | GPT | -| `model_authors` | *Optional[str]* | ➖ | Filter models by the organization that created the model. Comma-separated list of author slugs. | openai,anthropic | -| `providers` | *Optional[str]* | ➖ | Filter models by hosting provider. Comma-separated list of provider names. | OpenAI,Anthropic | -| `distillable` | [Optional[operations.Distillable]](../../operations/distillable.mdx) | ➖ | Filter by distillation capability. "true" returns only distillable models, "false" excludes them. | true | -| `zdr` | [Optional[operations.Zdr]](../../operations/zdr.mdx) | ➖ | When set to "true", return only models with zero data retention endpoints. | true | -| `region` | [Optional[operations.Region]](../../operations/region.mdx) | ➖ | Filter to models with endpoints in the given data region ("eu" or "us"). | eu | -| `min_output_price` | *OptionalNullable[float]* | ➖ | Minimum completion (output) price in $/M tokens. | 0 | -| `max_output_price` | *OptionalNullable[float]* | ➖ | Maximum completion (output) price in $/M tokens. | 10 | -| `min_age_days` | *OptionalNullable[int]* | ➖ | Minimum model age in days since its creation date. | 0 | -| `max_age_days` | *OptionalNullable[int]* | ➖ | Maximum model age in days since its creation date. | 90 | -| `min_intelligence_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 50 | -| `max_intelligence_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 100 | -| `min_coding_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded. | 50 | -| `max_coding_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded. | 100 | -| `min_agentic_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded. | 50 | -| `max_agentic_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded. | 100 | -| `min_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 50 | -| `max_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 100 | -| `min_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 50 | -| `max_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 100 | -| `min_legal_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 50 | -| `max_legal_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 100 | -| `min_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 50 | -| `max_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 100 | -| `min_engineering_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 50 | -| `max_engineering_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 100 | -| `min_economics_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 50 | -| `max_economics_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 100 | -| `min_cyber_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 50 | -| `max_cyber_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 100 | -| `min_openness_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 50 | -| `max_openness_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 100 | -| `min_multilingual_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 0.5 | -| `max_multilingual_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 1 | -| `min_decision_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 50 | -| `max_decision_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 100 | -| `min_tool_success_rate` | *OptionalNullable[float]* | ➖ | Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason). | 0.9 | -| `max_tool_success_rate` | *OptionalNullable[float]* | ➖ | Maximum tool-calling success rate, as a fraction in [0, 1]. | 1 | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | +| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | +| `category` | [Optional[operations.GetModelsCategory]](../../operations/getmodelscategory.mdx) | ➖ | Filter models by use case category | programming | +| `supported_parameters` | *Optional[str]* | ➖ | Filter models by supported parameter (comma-separated) | temperature | +| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | +| `sort` | [Optional[operations.GetModelsSort]](../../operations/getmodelssort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | +| `q` | *Optional[str]* | ➖ | Free-text search by model name or slug. | gpt-4 | +| `input_modalities` | *Optional[str]* | ➖ | Filter models by input modality. Comma-separated list of: text, image, audio, file. | text,image | +| `endpoints` | *Optional[str]* | ➖ | Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). | /api/alpha/extractions | +| `context` | *Optional[int]* | ➖ | Minimum context length (tokens). Models with smaller context are excluded. | 128000 | +| `min_price` | *OptionalNullable[float]* | ➖ | Minimum prompt price in $/M tokens. | 0 | +| `max_price` | *OptionalNullable[float]* | ➖ | Maximum prompt price in $/M tokens. | 10 | +| `arch` | *Optional[str]* | ➖ | Filter models by architecture/model family (e.g. GPT, Claude, Gemini, Llama). | GPT | +| `model_authors` | *Optional[str]* | ➖ | Filter models by the organization that created the model. Comma-separated list of author slugs. | openai,anthropic | +| `providers` | *Optional[str]* | ➖ | Filter models by hosting provider. Comma-separated list of provider names. | OpenAI,Anthropic | +| `distillable` | [Optional[operations.Distillable]](../../operations/distillable.mdx) | ➖ | Filter by distillation capability. "true" returns only distillable models, "false" excludes them. | true | +| `zdr` | [Optional[operations.Zdr]](../../operations/zdr.mdx) | ➖ | When set to "true", return only models with zero data retention endpoints. | true | +| `region` | [Optional[operations.Region]](../../operations/region.mdx) | ➖ | Filter to models with endpoints in the given data region ("eu" or "us"). | eu | +| `min_output_price` | *OptionalNullable[float]* | ➖ | Minimum completion (output) price in $/M tokens. | 0 | +| `max_output_price` | *OptionalNullable[float]* | ➖ | Maximum completion (output) price in $/M tokens. | 10 | +| `min_age_days` | *OptionalNullable[int]* | ➖ | Minimum model age in days since its creation date. | 0 | +| `max_age_days` | *OptionalNullable[int]* | ➖ | Maximum model age in days since its creation date. | 90 | +| `min_intelligence_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 50 | +| `max_intelligence_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. | 100 | +| `min_coding_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. | 50 | +| `max_coding_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. | 100 | +| `min_agentic_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. | 50 | +| `max_agentic_index` | *OptionalNullable[float]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. | 100 | +| `min_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 50 | +| `max_finance_and_accounting_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. | 100 | +| `min_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 50 | +| `max_strategy_and_ops_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. | 100 | +| `min_legal_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 50 | +| `max_legal_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Legal Index score (0-100); unscored models are excluded. | 100 | +| `min_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 50 | +| `max_healthcare_and_medical_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded. | 100 | +| `min_engineering_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 50 | +| `max_engineering_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Engineering Index score (0-100); unscored models are excluded. | 100 | +| `min_economics_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 50 | +| `max_economics_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Economics Index score (0-100); unscored models are excluded. | 100 | +| `min_cyber_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 50 | +| `max_cyber_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Cyber Index score (0-100); unscored models are excluded. | 100 | +| `min_openness_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 50 | +| `max_openness_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Openness Index score (0-100); unscored models are excluded. | 100 | +| `min_multilingual_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 0.5 | +| `max_multilingual_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded. | 1 | +| `min_decision_index` | *OptionalNullable[float]* | ➖ | Minimum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 50 | +| `max_decision_index` | *OptionalNullable[float]* | ➖ | Maximum Artificial Analysis Decision Index score (0-100); unscored models are excluded. | 100 | +| `min_tool_success_rate` | *OptionalNullable[float]* | ➖ | Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason). | 0.9 | +| `max_tool_success_rate` | *OptionalNullable[float]* | ➖ | Maximum tool-calling success rate, as a fraction in [0, 1]. | 1 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | ### Response @@ -246,18 +246,18 @@ with OpenRouter( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `security` | [operations.ListModelsUserSecurity](../../operations/listmodelsusersecurity.mdx) | ✔️ | N/A | | -| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | -| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | -| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | -| `sort` | [Optional[operations.ListModelsUserSort]](../../operations/listmodelsusersort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | -| `client` | [Optional[operations.Client]](../../operations/client.mdx) | ➖ | Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. | codex | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `security` | [operations.ListModelsUserSecurity](../../operations/listmodelsusersecurity.mdx) | ✔️ | N/A | | +| `http_referer` | *Optional[str]* | ➖ | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `x_open_router_title` | *Optional[str]* | ➖ | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | ➖ | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `offset` | *OptionalNullable[int]* | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 | +| `limit` | *Optional[int]* | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 | +| `output_modalities` | *Optional[str]* | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text". | text | +| `sort` | [Optional[operations.ListModelsUserSort]](../../operations/listmodelsusersort.mdx) | ➖ | Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), \-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. | newest | +| `client` | [Optional[operations.Client]](../../operations/client.mdx) | ➖ | Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. | codex | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | ➖ | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/pyproject.toml b/pyproject.toml index 2c447a17..8276a5a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.189" +version = "1.3.190" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index ddfad6e3..dada0df7 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.189" +__version__: str = "1.3.190" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.189 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.190 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/benchmarks.py b/src/openrouter/benchmarks.py index 69d54e69..96fd5fcc 100644 --- a/src/openrouter/benchmarks.py +++ b/src/openrouter/benchmarks.py @@ -44,7 +44,7 @@ def get_benchmarks( :param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings. :param source: Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. - :param task_type: Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. + :param task_type: Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. :param benchmark_type: Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. :param include_run_config: Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. :param search_engine: OpenRouter search benchmarks only: filter by the search engine used. @@ -203,7 +203,7 @@ async def get_benchmarks_async( :param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings. :param source: Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources. - :param task_type: Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. + :param task_type: Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only. :param benchmark_type: Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are. :param include_run_config: Search benchmarks only: include the published lane configuration whitelist in each search item. Defaults to false. The whitelist is limited to agent turn count, reasoning effort, and temperature so future harness configuration changes do not change the public contract. :param search_engine: OpenRouter search benchmarks only: filter by the search engine used. diff --git a/src/openrouter/components/aabenchmarkentry.py b/src/openrouter/components/aabenchmarkentry.py index fe000bbf..89a1879e 100644 --- a/src/openrouter/components/aabenchmarkentry.py +++ b/src/openrouter/components/aabenchmarkentry.py @@ -8,12 +8,12 @@ class AABenchmarkEntryTypedDict(TypedDict): - r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" + r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" agentic_index: Nullable[float] - r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.""" coding_index: Nullable[float] - r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.""" cyber_index: Nullable[float] r"""Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.""" decision_index: Nullable[float] @@ -39,7 +39,7 @@ class AABenchmarkEntryTypedDict(TypedDict): class AABenchmarkEntry(BaseModel): - r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" + r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" agentic_index: Annotated[ Nullable[float], @@ -47,7 +47,7 @@ class AABenchmarkEntry(BaseModel): deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." ), ] - r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.""" coding_index: Annotated[ Nullable[float], @@ -55,7 +55,7 @@ class AABenchmarkEntry(BaseModel): deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." ), ] - r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.""" cyber_index: Nullable[float] r"""Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.""" diff --git a/src/openrouter/components/modelbenchmarks.py b/src/openrouter/components/modelbenchmarks.py index 4ad4302d..73747137 100644 --- a/src/openrouter/components/modelbenchmarks.py +++ b/src/openrouter/components/modelbenchmarks.py @@ -15,7 +15,7 @@ class ModelBenchmarksTypedDict(TypedDict): design_arena: List[DABenchmarkEntryTypedDict] r"""Design Arena ELO rankings across arena+category pairs.""" artificial_analysis: NotRequired[AABenchmarkEntryTypedDict] - r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" + r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" class ModelBenchmarks(BaseModel): @@ -25,7 +25,7 @@ class ModelBenchmarks(BaseModel): r"""Design Arena ELO rankings across arena+category pairs.""" artificial_analysis: Optional[AABenchmarkEntry] = None - r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" + r"""Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/openrouter/components/unifiedbenchmarksaaitem.py b/src/openrouter/components/unifiedbenchmarksaaitem.py index 21a530ac..b730ef33 100644 --- a/src/openrouter/components/unifiedbenchmarksaaitem.py +++ b/src/openrouter/components/unifiedbenchmarksaaitem.py @@ -17,12 +17,12 @@ class UnifiedBenchmarksAAItemTypedDict(TypedDict): - r"""One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. With `task_type` set to `intelligence`, `coding` or `agentic`, those three indexes all come from the configuration that scores best on the one named.""" + r"""One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes.""" agentic_index: Nullable[float] - r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.""" coding_index: Nullable[float] - r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.""" cyber_index: Nullable[float] r"""Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.""" decision_index: Nullable[float] @@ -56,7 +56,7 @@ class UnifiedBenchmarksAAItemTypedDict(TypedDict): class UnifiedBenchmarksAAItem(BaseModel): - r"""One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. With `task_type` set to `intelligence`, `coding` or `agentic`, those three indexes all come from the configuration that scores best on the one named.""" + r"""One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding Index and Agentic Index fields are null for every model: Artificial Analysis has retired those indexes.""" agentic_index: Annotated[ Nullable[float], @@ -64,7 +64,7 @@ class UnifiedBenchmarksAAItem(BaseModel): deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." ), ] - r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Always null.""" coding_index: Annotated[ Nullable[float], @@ -72,7 +72,7 @@ class UnifiedBenchmarksAAItem(BaseModel): deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." ), ] - r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Always null.""" cyber_index: Nullable[float] r"""Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.""" diff --git a/src/openrouter/models_.py b/src/openrouter/models_.py index cd738baa..e4a9e3e4 100644 --- a/src/openrouter/models_.py +++ b/src/openrouter/models_.py @@ -350,7 +350,7 @@ def list( :param category: Filter models by use case category :param supported_parameters: Filter models by supported parameter (comma-separated) :param output_modalities: Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\". - :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. + :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. :param q: Free-text search by model name or slug. :param input_modalities: Filter models by input modality. Comma-separated list of: text, image, audio, file. :param endpoints: Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). @@ -369,10 +369,10 @@ def list( :param max_age_days: Maximum model age in days since its creation date. :param min_intelligence_index: Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. :param max_intelligence_index: Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. - :param min_coding_index: Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded. - :param max_coding_index: Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded. - :param min_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded. - :param max_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded. + :param min_coding_index: Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. + :param max_coding_index: Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. + :param min_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. + :param max_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. :param min_finance_and_accounting_index: Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. :param max_finance_and_accounting_index: Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. :param min_strategy_and_ops_index: Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. @@ -731,7 +731,7 @@ async def list_async( :param category: Filter models by use case category :param supported_parameters: Filter models by supported parameter (comma-separated) :param output_modalities: Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\". - :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. + :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. :param q: Free-text search by model name or slug. :param input_modalities: Filter models by input modality. Comma-separated list of: text, image, audio, file. :param endpoints: Filter models by the request API paths they serve, as listed in each model's `endpoints` field. Comma-separated; a model must serve every listed path. Valid values: /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses, /api/v1/embeddings, /api/v1/rerank, /api/alpha/decisions, /api/alpha/extractions, /api/v1/videos, /api/v1/audio/speech, /api/v1/audio/transcriptions, /api/v1/images, /api/v1/batches. When set without `output_modalities`, models of every output modality are considered (the companion `/api/alpha/extractions` route is served by text and decisions models alike). @@ -750,10 +750,10 @@ async def list_async( :param max_age_days: Maximum model age in days since its creation date. :param min_intelligence_index: Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. :param max_intelligence_index: Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded. - :param min_coding_index: Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded. - :param max_coding_index: Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded. - :param min_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded. - :param max_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded. + :param min_coding_index: Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. + :param max_coding_index: Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model. + :param min_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. + :param max_agentic_index: Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model. :param min_finance_and_accounting_index: Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. :param max_finance_and_accounting_index: Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded. :param min_strategy_and_ops_index: Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded. @@ -1327,7 +1327,7 @@ def list_for_user( :param offset: Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned :param limit: Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned :param output_modalities: Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\". - :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. + :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. :param client: Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1531,7 +1531,7 @@ async def list_for_user_async( :param offset: Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned :param limit: Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned :param output_modalities: Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\". - :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. + :param sort: Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved. :param client: Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method diff --git a/src/openrouter/operations/getbenchmarks.py b/src/openrouter/operations/getbenchmarks.py index 1e48e932..558e2929 100644 --- a/src/openrouter/operations/getbenchmarks.py +++ b/src/openrouter/operations/getbenchmarks.py @@ -102,7 +102,7 @@ def serialize_model(self, handler): ], UnrecognizedStr, ] -r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" +r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" BenchmarkType = Union[ @@ -157,7 +157,7 @@ class GetBenchmarksRequestTypedDict(TypedDict): source: NotRequired[Source] r"""Benchmark source to query. Determines the shape of the returned items. When omitted, returns results from all sources.""" task_type: NotRequired[TaskType] - r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" + r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" benchmark_type: NotRequired[BenchmarkType] r"""Return results for one exact OpenRouter benchmark. A `search_*` value narrows the response to search results only; a classic value narrows the OpenRouter items and leaves other sources' items as they are.""" include_run_config: NotRequired[bool] @@ -213,7 +213,7 @@ class GetBenchmarksRequest(BaseModel): Optional[TaskType], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None - r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" + r"""Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes and returns no item for them). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.""" benchmark_type: Annotated[ Optional[BenchmarkType], diff --git a/src/openrouter/operations/getmodels.py b/src/openrouter/operations/getmodels.py index 5ae045de..a8c181f4 100644 --- a/src/openrouter/operations/getmodels.py +++ b/src/openrouter/operations/getmodels.py @@ -128,7 +128,7 @@ def serialize_model(self, handler): ], UnrecognizedStr, ] -r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" +r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" Distillable = Union[ @@ -180,7 +180,7 @@ class GetModelsRequestTypedDict(TypedDict): output_modalities: NotRequired[str] r"""Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\".""" sort: NotRequired[GetModelsSort] - r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" + r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" q: NotRequired[str] r"""Free-text search by model name or slug.""" input_modalities: NotRequired[str] @@ -218,13 +218,13 @@ class GetModelsRequestTypedDict(TypedDict): max_intelligence_index: NotRequired[Nullable[float]] r"""Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded.""" min_coding_index: NotRequired[Nullable[float]] - r"""Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.""" max_coding_index: NotRequired[Nullable[float]] - r"""Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.""" min_agentic_index: NotRequired[Nullable[float]] - r"""Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.""" max_agentic_index: NotRequired[Nullable[float]] - r"""Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.""" min_finance_and_accounting_index: NotRequired[Nullable[float]] r"""Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded.""" max_finance_and_accounting_index: NotRequired[Nullable[float]] @@ -334,7 +334,7 @@ class GetModelsRequest(BaseModel): Optional[GetModelsSort], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None - r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" + r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" q: Annotated[ Optional[str], @@ -451,7 +451,7 @@ class GetModelsRequest(BaseModel): ), FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.""" max_coding_index: Annotated[ OptionalNullable[float], @@ -460,7 +460,7 @@ class GetModelsRequest(BaseModel): ), FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Coding Index; no model has a score, so this matches no model.""" min_agentic_index: Annotated[ OptionalNullable[float], @@ -469,7 +469,7 @@ class GetModelsRequest(BaseModel): ), FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.""" max_agentic_index: Annotated[ OptionalNullable[float], @@ -478,7 +478,7 @@ class GetModelsRequest(BaseModel): ), FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded.""" + r"""Deprecated: Artificial Analysis has retired its Agentic Index; no model has a score, so this matches no model.""" min_finance_and_accounting_index: Annotated[ OptionalNullable[float], diff --git a/src/openrouter/operations/listmodelsuser.py b/src/openrouter/operations/listmodelsuser.py index 15d06ccd..1bd150e3 100644 --- a/src/openrouter/operations/listmodelsuser.py +++ b/src/openrouter/operations/listmodelsuser.py @@ -130,7 +130,7 @@ class ListModelsUserSecurity(BaseModel): ], UnrecognizedStr, ] -r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" +r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" Client = Union[ @@ -165,7 +165,7 @@ class ListModelsUserRequestTypedDict(TypedDict): output_modalities: NotRequired[str] r"""Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or \"all\" to include all models. Defaults to \"text\".""" sort: NotRequired[ListModelsUserSort] - r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" + r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" client: NotRequired[Client] r"""Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.""" @@ -221,7 +221,7 @@ class ListModelsUserRequest(BaseModel): Optional[ListModelsUserSort], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None - r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" + r"""Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), -high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.""" client: Annotated[ Optional[Client], diff --git a/uv.lock b/uv.lock index f1d69e39..ca34fc03 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.189" +version = "1.3.190" source = { editable = "." } dependencies = [ { name = "httpcore" },