@molecule/api-resource-ai-models 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +111 -24
- package/README.md +54 -3
- package/dist/lookup.d.ts +6 -1
- package/dist/lookup.d.ts.map +1 -1
- package/dist/lookup.js +15 -1
- package/dist/models.d.ts +21 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +86 -3
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -34,21 +35,33 @@
|
|
|
34
35
|
|
|
35
36
|
"Work" shall mean the work of authorship, whether in Source or
|
|
36
37
|
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
38
40
|
|
|
39
41
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
42
|
form, that is based on (or derived from) the Work and for which the
|
|
41
43
|
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
-
represent, as a whole, an original work of authorship.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
49
62
|
|
|
50
63
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
51
|
-
on behalf of whom a Contribution has been received by
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
52
65
|
subsequently incorporated within the Work.
|
|
53
66
|
|
|
54
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
@@ -61,8 +74,18 @@
|
|
|
61
74
|
3. Grant of Patent License. Subject to the terms and conditions of
|
|
62
75
|
this License, each Contributor hereby grants to You a perpetual,
|
|
63
76
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
64
|
-
|
|
65
|
-
and otherwise transfer the Work
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
66
89
|
|
|
67
90
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
68
91
|
Work or Derivative Works thereof in any medium, with or without
|
|
@@ -84,23 +107,87 @@
|
|
|
84
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
85
108
|
distribution, then any Derivative Works that You distribute must
|
|
86
109
|
include a readable copy of the attribution notices contained
|
|
87
|
-
within such NOTICE file
|
|
88
|
-
|
|
89
|
-
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
90
138
|
|
|
91
139
|
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
-
names, trademarks, service marks, or product names of the Licensor
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
93
143
|
|
|
94
144
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
-
agreed to in writing, Licensor provides the Work
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
104
191
|
|
|
105
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
106
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-10-08T07:16:27.706Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-ai-models
|
|
@@ -392,6 +392,26 @@ interface ModelDefinition {
|
|
|
392
392
|
/** Fast-mode prompt-cache write price per million tokens in USD. */
|
|
393
393
|
cacheWritePricePerMTok: number
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Long-context pricing — models priced BY PROMPT LENGTH (Claude Haiku 5.5: 5× above 100K prompt tokens). A request
|
|
397
|
+
* whose prompt (fresh input + cache read + cache write tokens) EXCEEDS `aboveInputTokens` bills ALL of its tokens at
|
|
398
|
+
* these rates, not just the excess. Resolved by `modelRegionRates(model, region, at, promptTokens)`; callers must pass
|
|
399
|
+
* ONE provider call's prompt size, never a multi-call sum. All four rates are required for the same never-under-meter
|
|
400
|
+
* reasons as the base rates. A model with a staged `scheduledPricing` change or a region override restates this band
|
|
401
|
+
* itself when the long-context rates move; today the band applies on top of the base rates only.
|
|
402
|
+
*/
|
|
403
|
+
longContextPricing?: {
|
|
404
|
+
/** A prompt larger than this many tokens bills at the long-context rates. */
|
|
405
|
+
aboveInputTokens: number
|
|
406
|
+
/** Long-context input price per million uncached tokens in USD. */
|
|
407
|
+
inputPricePerMTok: number
|
|
408
|
+
/** Long-context output price per million tokens in USD. */
|
|
409
|
+
outputPricePerMTok: number
|
|
410
|
+
/** Long-context prompt-cache read price per million tokens in USD. */
|
|
411
|
+
cacheReadPricePerMTok: number
|
|
412
|
+
/** Long-context prompt-cache write price per million tokens in USD. */
|
|
413
|
+
cacheWritePricePerMTok: number
|
|
414
|
+
}
|
|
395
415
|
/** Reliable knowledge cutoff date (YYYY-MM-DD). */
|
|
396
416
|
knowledgeCutoff: string
|
|
397
417
|
/**
|
|
@@ -683,7 +703,7 @@ function list(_req: MoleculeRequest, res: MoleculeResponse): Promise<void>
|
|
|
683
703
|
- `_req` — The request object (unused).
|
|
684
704
|
- `res` — The response object.
|
|
685
705
|
|
|
686
|
-
#### `modelRegionRates(modelDef, requested, at)`
|
|
706
|
+
#### `modelRegionRates(modelDef, requested, at, promptTokens)`
|
|
687
707
|
|
|
688
708
|
The token rates for a model in a given processing region: the model's
|
|
689
709
|
{@link ModelDefinition.regionPricing} override for the region when one
|
|
@@ -699,13 +719,23 @@ keep billing a superseded rate by omitting it — metering should still pass
|
|
|
699
719
|
each request's own timestamp, the same way it must for
|
|
700
720
|
{@link priceMultiplierAt}.
|
|
701
721
|
|
|
722
|
+
A model priced by prompt length ({@link ModelDefinition.longContextPricing}) bills a request whose
|
|
723
|
+
`promptTokens` EXCEED the threshold at the long-context rates (all of its tokens, not the excess). Pass ONE
|
|
724
|
+
provider call's prompt size (fresh input + cache read + cache write); omit it and the base rates apply.
|
|
725
|
+
|
|
702
726
|
```typescript
|
|
703
|
-
function modelRegionRates(
|
|
727
|
+
function modelRegionRates(
|
|
728
|
+
modelDef: ModelDefinition,
|
|
729
|
+
requested?: string,
|
|
730
|
+
at?: Date,
|
|
731
|
+
promptTokens?: number,
|
|
732
|
+
): ModelTokenRates
|
|
704
733
|
```
|
|
705
734
|
|
|
706
735
|
- `modelDef` — The model definition.
|
|
707
736
|
- `requested` — The user's per-model region choice, if any.
|
|
708
737
|
- `at` — The instant to price at (defaults to now).
|
|
738
|
+
- `promptTokens` — The request's prompt size in tokens, when the caller knows it.
|
|
709
739
|
|
|
710
740
|
**Returns:** The region-effective rates.
|
|
711
741
|
|
|
@@ -897,6 +927,27 @@ Sources (verified 2026-07-28; OpenAI re-verified 2026-07-31 after the
|
|
|
897
927
|
pages: non-default temperature 400, tool_choice any/tool 400,
|
|
898
928
|
thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
899
929
|
those. Every other Anthropic price on the pricing page is unchanged.)
|
|
930
|
+
(re-verified 2026-10-08 on /docs/en/about-claude/pricing: sonnet-5-5 cache
|
|
931
|
+
hits are $0.10 — footnote 2 prices Opus 5.5 AND Sonnet 5.5 cache hits at
|
|
932
|
+
0.05× input — not the $0.20 recorded at its add; catalog corrected. Every
|
|
933
|
+
other cataloged Anthropic price on that page is unchanged.)
|
|
934
|
+
(verified 2026-10-08 — ADDED claude-haiku-5-5, released 2026-10-07 and
|
|
935
|
+
listed "Active (latest)" on /docs/en/models/haiku-5-5/overview, which
|
|
936
|
+
moves claude-haiku-4-5 to "Legacy models (still available)" → superseded.
|
|
937
|
+
Model page + pricing page: $0.10/$0.50 per MTok for prompts up to 100K
|
|
938
|
+
tokens — the first Anthropic model priced BY PROMPT LENGTH (over 100K:
|
|
939
|
+
$0.50/$2.50, cache read $0.05, 5m write $0.625; not modeled, same as the
|
|
940
|
+
Gemini/Grok >200K and GPT-6 >272K bands) — 5m cache write $0.125, cache
|
|
941
|
+
hits $0.01 (standard 0.1×), web search $10/1k. 1M ctx / 128K out, text +
|
|
942
|
+
image input, reliable knowledge cutoff Jun 2026. Effort page: all five
|
|
943
|
+
levels, default MEDIUM. Model page "Good to know": non-default
|
|
944
|
+
temperature/top_p/top_k → 400 (rejectsTemperature). Unlike
|
|
945
|
+
opus-5-5/sonnet-5.5, forced tool_choice any/tool still works — the
|
|
946
|
+
pricing page's tool-token table carries an any/tool count for it (406)
|
|
947
|
+
where those two have none — and thinking {type:"disabled"} is accepted at
|
|
948
|
+
high-or-below effort; Synthase sends neither disabled nor a temperature.
|
|
949
|
+
Adaptive thinking only, budget_tokens is the legacy path. Every other
|
|
950
|
+
Anthropic price on the pricing page is unchanged.)
|
|
900
951
|
- OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
901
952
|
2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
902
953
|
20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
package/dist/lookup.d.ts
CHANGED
|
@@ -170,10 +170,15 @@ export interface ModelTokenRates {
|
|
|
170
170
|
* each request's own timestamp, the same way it must for
|
|
171
171
|
* {@link priceMultiplierAt}.
|
|
172
172
|
*
|
|
173
|
+
* A model priced by prompt length ({@link ModelDefinition.longContextPricing}) bills a request whose
|
|
174
|
+
* `promptTokens` EXCEED the threshold at the long-context rates (all of its tokens, not the excess). Pass ONE
|
|
175
|
+
* provider call's prompt size (fresh input + cache read + cache write); omit it and the base rates apply.
|
|
176
|
+
*
|
|
173
177
|
* @param modelDef - The model definition.
|
|
174
178
|
* @param requested - The user's per-model region choice, if any.
|
|
175
179
|
* @param at - The instant to price at (defaults to now).
|
|
180
|
+
* @param promptTokens - The request's prompt size in tokens, when the caller knows it.
|
|
176
181
|
* @returns The region-effective rates.
|
|
177
182
|
*/
|
|
178
|
-
export declare function modelRegionRates(modelDef: ModelDefinition, requested?: string, at?: Date): ModelTokenRates;
|
|
183
|
+
export declare function modelRegionRates(modelDef: ModelDefinition, requested?: string, at?: Date, promptTokens?: number): ModelTokenRates;
|
|
179
184
|
//# sourceMappingURL=lookup.d.ts.map
|
package/dist/lookup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../src/lookup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE/D;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,cAAc,CAAC,GACxD,OAAO,CAET;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASvE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CAEzC,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEhE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,eAAe,EAAE,CAEtF;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,kBAAkB,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,SAAS,YAAY,EAAE,GACtE,SAAS,eAAe,EAAE,CAI5B;AAoBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,EAAE,GAAE,IAAiB,GACpB,eAAe,CAgBjB;AAED;;;;;;;;;GASG;AACH,wBAAgB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;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,eAAe,EACzB,SAAS,CAAC,EAAE,MAAM,EAClB,EAAE,GAAE,IAAiB,EACrB,YAAY,CAAC,EAAE,MAAM,GACpB,eAAe,CAqBjB"}
|
package/dist/lookup.js
CHANGED
|
@@ -265,15 +265,29 @@ export function effectiveModelRegion(modelDef, requested) {
|
|
|
265
265
|
* each request's own timestamp, the same way it must for
|
|
266
266
|
* {@link priceMultiplierAt}.
|
|
267
267
|
*
|
|
268
|
+
* A model priced by prompt length ({@link ModelDefinition.longContextPricing}) bills a request whose
|
|
269
|
+
* `promptTokens` EXCEED the threshold at the long-context rates (all of its tokens, not the excess). Pass ONE
|
|
270
|
+
* provider call's prompt size (fresh input + cache read + cache write); omit it and the base rates apply.
|
|
271
|
+
*
|
|
268
272
|
* @param modelDef - The model definition.
|
|
269
273
|
* @param requested - The user's per-model region choice, if any.
|
|
270
274
|
* @param at - The instant to price at (defaults to now).
|
|
275
|
+
* @param promptTokens - The request's prompt size in tokens, when the caller knows it.
|
|
271
276
|
* @returns The region-effective rates.
|
|
272
277
|
*/
|
|
273
|
-
export function modelRegionRates(modelDef, requested, at = new Date()) {
|
|
278
|
+
export function modelRegionRates(modelDef, requested, at = new Date(), promptTokens) {
|
|
274
279
|
const region = effectiveModelRegion(modelDef, requested);
|
|
275
280
|
const override = modelDef.regionPricing?.[region];
|
|
276
281
|
if (!override) {
|
|
282
|
+
const longBand = modelDef.longContextPricing;
|
|
283
|
+
if (longBand && typeof promptTokens === 'number' && promptTokens > longBand.aboveInputTokens) {
|
|
284
|
+
return {
|
|
285
|
+
inputPricePerMTok: longBand.inputPricePerMTok,
|
|
286
|
+
outputPricePerMTok: longBand.outputPricePerMTok,
|
|
287
|
+
cacheReadPricePerMTok: longBand.cacheReadPricePerMTok,
|
|
288
|
+
cacheWritePricePerMTok: longBand.cacheWritePricePerMTok,
|
|
289
|
+
};
|
|
290
|
+
}
|
|
277
291
|
return effectiveBaseRates(modelDef, at);
|
|
278
292
|
}
|
|
279
293
|
return {
|
package/dist/models.d.ts
CHANGED
|
@@ -113,6 +113,27 @@ import type { ModelDefinition } from './types.js';
|
|
|
113
113
|
* pages: non-default temperature 400, tool_choice any/tool 400,
|
|
114
114
|
* thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
115
115
|
* those. Every other Anthropic price on the pricing page is unchanged.)
|
|
116
|
+
* (re-verified 2026-10-08 on /docs/en/about-claude/pricing: sonnet-5-5 cache
|
|
117
|
+
* hits are $0.10 — footnote 2 prices Opus 5.5 AND Sonnet 5.5 cache hits at
|
|
118
|
+
* 0.05× input — not the $0.20 recorded at its add; catalog corrected. Every
|
|
119
|
+
* other cataloged Anthropic price on that page is unchanged.)
|
|
120
|
+
* (verified 2026-10-08 — ADDED claude-haiku-5-5, released 2026-10-07 and
|
|
121
|
+
* listed "Active (latest)" on /docs/en/models/haiku-5-5/overview, which
|
|
122
|
+
* moves claude-haiku-4-5 to "Legacy models (still available)" → superseded.
|
|
123
|
+
* Model page + pricing page: $0.10/$0.50 per MTok for prompts up to 100K
|
|
124
|
+
* tokens — the first Anthropic model priced BY PROMPT LENGTH (over 100K:
|
|
125
|
+
* $0.50/$2.50, cache read $0.05, 5m write $0.625; not modeled, same as the
|
|
126
|
+
* Gemini/Grok >200K and GPT-6 >272K bands) — 5m cache write $0.125, cache
|
|
127
|
+
* hits $0.01 (standard 0.1×), web search $10/1k. 1M ctx / 128K out, text +
|
|
128
|
+
* image input, reliable knowledge cutoff Jun 2026. Effort page: all five
|
|
129
|
+
* levels, default MEDIUM. Model page "Good to know": non-default
|
|
130
|
+
* temperature/top_p/top_k → 400 (rejectsTemperature). Unlike
|
|
131
|
+
* opus-5-5/sonnet-5.5, forced tool_choice any/tool still works — the
|
|
132
|
+
* pricing page's tool-token table carries an any/tool count for it (406)
|
|
133
|
+
* where those two have none — and thinking {type:"disabled"} is accepted at
|
|
134
|
+
* high-or-below effort; Synthase sends neither disabled nor a temperature.
|
|
135
|
+
* Adaptive thinking only, budget_tokens is the legacy path. Every other
|
|
136
|
+
* Anthropic price on the pricing page is unchanged.)
|
|
116
137
|
* - OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
117
138
|
* 2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
118
139
|
* 20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwDjD
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwDjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2TG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EA80EnC,CAAA"}
|
package/dist/models.js
CHANGED
|
@@ -162,6 +162,27 @@ const CHINA_PUBLIC_HOLIDAYS = [
|
|
|
162
162
|
* pages: non-default temperature 400, tool_choice any/tool 400,
|
|
163
163
|
* thinking "disabled" replaced by "between_tools" — Synthase sends none of
|
|
164
164
|
* those. Every other Anthropic price on the pricing page is unchanged.)
|
|
165
|
+
* (re-verified 2026-10-08 on /docs/en/about-claude/pricing: sonnet-5-5 cache
|
|
166
|
+
* hits are $0.10 — footnote 2 prices Opus 5.5 AND Sonnet 5.5 cache hits at
|
|
167
|
+
* 0.05× input — not the $0.20 recorded at its add; catalog corrected. Every
|
|
168
|
+
* other cataloged Anthropic price on that page is unchanged.)
|
|
169
|
+
* (verified 2026-10-08 — ADDED claude-haiku-5-5, released 2026-10-07 and
|
|
170
|
+
* listed "Active (latest)" on /docs/en/models/haiku-5-5/overview, which
|
|
171
|
+
* moves claude-haiku-4-5 to "Legacy models (still available)" → superseded.
|
|
172
|
+
* Model page + pricing page: $0.10/$0.50 per MTok for prompts up to 100K
|
|
173
|
+
* tokens — the first Anthropic model priced BY PROMPT LENGTH (over 100K:
|
|
174
|
+
* $0.50/$2.50, cache read $0.05, 5m write $0.625; not modeled, same as the
|
|
175
|
+
* Gemini/Grok >200K and GPT-6 >272K bands) — 5m cache write $0.125, cache
|
|
176
|
+
* hits $0.01 (standard 0.1×), web search $10/1k. 1M ctx / 128K out, text +
|
|
177
|
+
* image input, reliable knowledge cutoff Jun 2026. Effort page: all five
|
|
178
|
+
* levels, default MEDIUM. Model page "Good to know": non-default
|
|
179
|
+
* temperature/top_p/top_k → 400 (rejectsTemperature). Unlike
|
|
180
|
+
* opus-5-5/sonnet-5.5, forced tool_choice any/tool still works — the
|
|
181
|
+
* pricing page's tool-token table carries an any/tool count for it (406)
|
|
182
|
+
* where those two have none — and thinking {type:"disabled"} is accepted at
|
|
183
|
+
* high-or-below effort; Synthase sends neither disabled nor a temperature.
|
|
184
|
+
* Adaptive thinking only, budget_tokens is the legacy path. Every other
|
|
185
|
+
* Anthropic price on the pricing page is unchanged.)
|
|
165
186
|
* - OpenAI: https://developers.openai.com/api/docs/pricing (GPT-5.6 family GA
|
|
166
187
|
* 2026-07-09; REPRICED 2026-07-30: -luna cut 80% to $0.20/$1.20, -terra cut
|
|
167
188
|
* 20% to $2/$12, -sol unchanged $5/$30; cache read 0.1× input; gpt-5.5/
|
|
@@ -631,9 +652,10 @@ export const MODELS = [
|
|
|
631
652
|
webFetchToolType: 'web_fetch_20260209',
|
|
632
653
|
inputPricePerMTok: 2,
|
|
633
654
|
outputPricePerMTok: 10,
|
|
634
|
-
//
|
|
635
|
-
//
|
|
636
|
-
|
|
655
|
+
// Cache hits are 0.05× input = $0.10 (pricing page footnote 2, shared
|
|
656
|
+
// with Opus 5.5; re-verified 2026-10-08 — the 2026-09-29 add carried the
|
|
657
|
+
// standard 0.1× $0.20); 5m cache write is the usual 1.25× $2.50.
|
|
658
|
+
cacheReadPricePerMTok: 0.1,
|
|
637
659
|
cacheWritePricePerMTok: 2.5,
|
|
638
660
|
// Reliable knowledge cutoff Jun 2026 (model page "Specifications").
|
|
639
661
|
knowledgeCutoff: '2026-06-01',
|
|
@@ -799,6 +821,61 @@ export const MODELS = [
|
|
|
799
821
|
deprecatedAt: '2026-07-07',
|
|
800
822
|
supersededBy: 'claude-sonnet-5-5',
|
|
801
823
|
},
|
|
824
|
+
{
|
|
825
|
+
id: 'claude-haiku-5-5',
|
|
826
|
+
provider: 'anthropic',
|
|
827
|
+
// Model page "Good to know": omit temperature/top_p/top_k — a non-default
|
|
828
|
+
// value for ANY of them returns a 400 (verified 2026-10-08); callers omit
|
|
829
|
+
// it (request-shape.ts temperatureParam).
|
|
830
|
+
rejectsTemperature: true,
|
|
831
|
+
label: 'Claude Haiku 5.5',
|
|
832
|
+
description: 'Fastest Anthropic — high-volume classification, extraction & subagents',
|
|
833
|
+
contextWindow: 1_000_000,
|
|
834
|
+
maxOutputTokens: 128_000,
|
|
835
|
+
supportsThinking: true,
|
|
836
|
+
thinkingBudgetTokens: 16_000,
|
|
837
|
+
thinkingConfigurable: true,
|
|
838
|
+
supportedEffortLevels: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
839
|
+
defaultEffortLevel: 'medium',
|
|
840
|
+
// Adaptive thinking only — budget_tokens is the legacy Haiku-4.5 path;
|
|
841
|
+
// effort is the depth control, all five levels with API default MEDIUM
|
|
842
|
+
// (effort page, verified 2026-10-08). Two WAYS this differs from
|
|
843
|
+
// opus-5-5 / sonnet-5-5, both per first-party pages: thinking
|
|
844
|
+
// {type:"disabled"} is ACCEPTED here (at high-or-below effort) — the bond
|
|
845
|
+
// never sends it — and forced tool_choice any/tool still WORKS (the
|
|
846
|
+
// pricing page's tool-token table lists an any/tool count for Haiku 5.5,
|
|
847
|
+
// 406 tokens, where opus-5-5 / sonnet-5-5 have none), so NO
|
|
848
|
+
// rejectsForcedToolChoice pin — discovery/selection force their tool call.
|
|
849
|
+
supportsVision: true,
|
|
850
|
+
supportsPromptCaching: true,
|
|
851
|
+
supportsTools: true,
|
|
852
|
+
webSearchToolType: 'web_search_20260209',
|
|
853
|
+
webSearchPricePer1k: 10,
|
|
854
|
+
// Same server-tool versions as the rest of the 4.6+ Anthropic fleet —
|
|
855
|
+
// dynamic-filtering web search is "Claude 4.6 and later models" (web
|
|
856
|
+
// search docs, verified 2026-10-08; Haiku 4.5 predates 4.6, hence its
|
|
857
|
+
// basic variant). Not currently sent by Synthase beyond webSearchToolType.
|
|
858
|
+
codeExecutionToolType: 'code_execution_20260521',
|
|
859
|
+
webFetchToolType: 'web_fetch_20260209',
|
|
860
|
+
inputPricePerMTok: 0.1,
|
|
861
|
+
outputPricePerMTok: 0.5,
|
|
862
|
+
// Standard 0.1× cache read = $0.01; 5m cache write the usual 1.25× =
|
|
863
|
+
// $0.125 (pricing page, verified 2026-10-08). The FIRST Anthropic model
|
|
864
|
+
// priced BY PROMPT LENGTH: prompts over 100K tokens pay 5× ($0.50/$2.50,
|
|
865
|
+
// cache $0.05/$0.625) for the WHOLE request — modeled by longContextPricing,
|
|
866
|
+
// which metering applies from the call's prompt size.
|
|
867
|
+
cacheReadPricePerMTok: 0.01,
|
|
868
|
+
cacheWritePricePerMTok: 0.125,
|
|
869
|
+
longContextPricing: {
|
|
870
|
+
aboveInputTokens: 100_000,
|
|
871
|
+
inputPricePerMTok: 0.5,
|
|
872
|
+
outputPricePerMTok: 2.5,
|
|
873
|
+
cacheReadPricePerMTok: 0.05,
|
|
874
|
+
cacheWritePricePerMTok: 0.625,
|
|
875
|
+
},
|
|
876
|
+
// Reliable + training-data cutoff Jun 2026 (model page "Specifications").
|
|
877
|
+
knowledgeCutoff: '2026-06-01',
|
|
878
|
+
},
|
|
802
879
|
{
|
|
803
880
|
id: 'claude-haiku-4-5-20251001',
|
|
804
881
|
provider: 'anthropic',
|
|
@@ -827,6 +904,12 @@ export const MODELS = [
|
|
|
827
904
|
cacheReadPricePerMTok: 0.1,
|
|
828
905
|
cacheWritePricePerMTok: 1.25,
|
|
829
906
|
knowledgeCutoff: '2025-02-01',
|
|
907
|
+
// Superseded by claude-haiku-5-5 (released 2026-10-07, same Haiku tier at
|
|
908
|
+
// ~1/10 the price with 5× the context); the models overview now lists
|
|
909
|
+
// haiku-4-5 under "Legacy models (still available)". Still served and
|
|
910
|
+
// priceable, just not OFFERED.
|
|
911
|
+
deprecatedAt: '2026-10-07',
|
|
912
|
+
supersededBy: 'claude-haiku-5-5',
|
|
830
913
|
},
|
|
831
914
|
// ---------------------------------------------------------------------------
|
|
832
915
|
// OpenAI
|
package/dist/types.d.ts
CHANGED
|
@@ -375,6 +375,26 @@ export interface ModelDefinition {
|
|
|
375
375
|
/** Fast-mode prompt-cache write price per million tokens in USD. */
|
|
376
376
|
cacheWritePricePerMTok: number;
|
|
377
377
|
};
|
|
378
|
+
/**
|
|
379
|
+
* Long-context pricing — models priced BY PROMPT LENGTH (Claude Haiku 5.5: 5× above 100K prompt tokens). A request
|
|
380
|
+
* whose prompt (fresh input + cache read + cache write tokens) EXCEEDS `aboveInputTokens` bills ALL of its tokens at
|
|
381
|
+
* these rates, not just the excess. Resolved by `modelRegionRates(model, region, at, promptTokens)`; callers must pass
|
|
382
|
+
* ONE provider call's prompt size, never a multi-call sum. All four rates are required for the same never-under-meter
|
|
383
|
+
* reasons as the base rates. A model with a staged `scheduledPricing` change or a region override restates this band
|
|
384
|
+
* itself when the long-context rates move; today the band applies on top of the base rates only.
|
|
385
|
+
*/
|
|
386
|
+
longContextPricing?: {
|
|
387
|
+
/** A prompt larger than this many tokens bills at the long-context rates. */
|
|
388
|
+
aboveInputTokens: number;
|
|
389
|
+
/** Long-context input price per million uncached tokens in USD. */
|
|
390
|
+
inputPricePerMTok: number;
|
|
391
|
+
/** Long-context output price per million tokens in USD. */
|
|
392
|
+
outputPricePerMTok: number;
|
|
393
|
+
/** Long-context prompt-cache read price per million tokens in USD. */
|
|
394
|
+
cacheReadPricePerMTok: number;
|
|
395
|
+
/** Long-context prompt-cache write price per million tokens in USD. */
|
|
396
|
+
cacheWritePricePerMTok: number;
|
|
397
|
+
};
|
|
378
398
|
/** Reliable knowledge cutoff date (YYYY-MM-DD). */
|
|
379
399
|
knowledgeCutoff: string;
|
|
380
400
|
/**
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,UAAU,GACV,MAAM,GACN,UAAU,GACV,SAAS,GACT,SAAS,GACT,OAAO;AACT;;;;;GAKG;GACD,QAAQ,CAAA;AAEZ;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,2CAA2C;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAA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