@molecule/api-resource-ai-models 1.18.1 → 1.19.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/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-10-22T22:44:54.731Z
6
+ Generated: 2026-10-26T04:23:44.190Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-ai-models
@@ -436,17 +436,7 @@ A model's peak-hour pricing in effect at a given instant: the staged
436
436
  leaves the existing windows in force), else the model's own `peakPricing`.
437
437
 
438
438
  ```typescript
439
- function effectivePeakPricing(
440
- modelDef: ModelDefinition,
441
- at?: Date,
442
- ):
443
- | {
444
- windows: { startMinuteUtc: number; endMinuteUtc: number; daysOfWeekUtc?: number[] }[]
445
- multiplier: number
446
- excludedDatesUtc?: string[]
447
- rule?: { url: string; text: string }
448
- }
449
- | undefined
439
+ function effectivePeakPricing(modelDef: ModelDefinition, at?: Date): ModelDefinition['peakPricing']
450
440
  ```
451
441
 
452
442
  - `modelDef` — The model definition.
@@ -472,15 +462,7 @@ resolving the static band against landed scheduled base rates would leave
472
462
  function effectiveLongContextPricing(
473
463
  modelDef: ModelDefinition,
474
464
  at?: Date,
475
- ):
476
- | {
477
- aboveInputTokens: number
478
- inputPricePerMTok: number
479
- outputPricePerMTok: number
480
- cacheReadPricePerMTok: number
481
- cacheWritePricePerMTok: number
482
- }
483
- | undefined
465
+ ): ModelDefinition['longContextPricing']
484
466
  ```
485
467
 
486
468
  - `modelDef` — The model definition.
package/dist/models.d.ts CHANGED
@@ -177,6 +177,15 @@ import type { ModelDefinition } from './types.js';
177
177
  * It supersedes gpt-6-sol. Every other GPT-6 and 5.6 price on the page is
178
178
  * unchanged and the 5.6-sol promo footnote still reads "at least through
179
179
  * November 21, 2026".)
180
+ * (verified 2026-10-27 on the gpt-6.1-terra model page, re-hosted at
181
+ * developers.openai.com/api/docs/models/gpt-6.1-terra: ADDED gpt-6.1-terra
182
+ * ($1/$5, cached $0.05 — 5% of input — cache writes $1.25; >272K band
183
+ * $2/$7.50, cached $0.10, writes $2.50 not modeled; 1.05M ctx / 128K out;
184
+ * image input; knowledge cutoff Jun 1 2026; effort
185
+ * none|low|medium|high|xhigh|max, default medium; "Tool calling requires
186
+ * the Responses API" — the same shape as gpt-6.1-sol, served by the bond's
187
+ * /v1/responses calls. Supersedes gpt-5.6-terra, same tier at $2/$12,
188
+ * repointed from gpt-6.1-sol.)
180
189
  * - Google: https://ai.google.dev/gemini-api/docs/pricing (gemini-3.6-flash GA
181
190
  * 2026-07-21 $1.50/$7.50 supersedes 3.5-flash as the agentic flagship;
182
191
  * gemini-3.1-pro-preview still the pro tier — "3.5 Pro" has NOT shipped as
@@ -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;AA2DjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2YG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EAqlFnC,CAAA"}
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;AA2DjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoZG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,eAAe,EA4nFnC,CAAA"}
package/dist/models.js CHANGED
@@ -229,6 +229,15 @@ const CHINA_PUBLIC_HOLIDAYS = [
229
229
  * It supersedes gpt-6-sol. Every other GPT-6 and 5.6 price on the page is
230
230
  * unchanged and the 5.6-sol promo footnote still reads "at least through
231
231
  * November 21, 2026".)
232
+ * (verified 2026-10-27 on the gpt-6.1-terra model page, re-hosted at
233
+ * developers.openai.com/api/docs/models/gpt-6.1-terra: ADDED gpt-6.1-terra
234
+ * ($1/$5, cached $0.05 — 5% of input — cache writes $1.25; >272K band
235
+ * $2/$7.50, cached $0.10, writes $2.50 not modeled; 1.05M ctx / 128K out;
236
+ * image input; knowledge cutoff Jun 1 2026; effort
237
+ * none|low|medium|high|xhigh|max, default medium; "Tool calling requires
238
+ * the Responses API" — the same shape as gpt-6.1-sol, served by the bond's
239
+ * /v1/responses calls. Supersedes gpt-5.6-terra, same tier at $2/$12,
240
+ * repointed from gpt-6.1-sol.)
232
241
  * - Google: https://ai.google.dev/gemini-api/docs/pricing (gemini-3.6-flash GA
233
242
  * 2026-07-21 $1.50/$7.50 supersedes 3.5-flash as the agentic flagship;
234
243
  * gemini-3.1-pro-preview still the pro tier — "3.5 Pro" has NOT shipped as
@@ -1032,6 +1041,13 @@ export const MODELS = [
1032
1041
  // /v1/responses on OpenAI's own endpoint, so, like astra, it needs no
1033
1042
  // `toolsRequireReasoningOff` pin. Same list price as gpt-6-sol with half the
1034
1043
  // cached-input rate, so it supersedes gpt-6-sol.
1044
+ //
1045
+ // gpt-6.1-terra (added 2026-10-27) is sol's 6.1 sibling and 5.6-terra's tier:
1046
+ // its model page lists a 'none' effort, and "Tool calling requires the
1047
+ // Responses API" — the same constraint as sol, served by the bond's
1048
+ // /v1/responses calls, so it too needs no `toolsRequireReasoningOff` pin.
1049
+ // At $1/$5 it is 5.6-terra's tier at half the price, so 5.6-terra repoints
1050
+ // to it.
1035
1051
  // ---------------------------------------------------------------------------
1036
1052
  {
1037
1053
  id: 'gpt-6-astra',
@@ -1097,6 +1113,38 @@ export const MODELS = [
1097
1113
  cacheWritePricePerMTok: 2.5,
1098
1114
  knowledgeCutoff: '2026-04-30',
1099
1115
  },
1116
+ {
1117
+ id: 'gpt-6.1-terra',
1118
+ provider: 'openai',
1119
+ label: 'GPT-6.1 Terra',
1120
+ description: 'Balanced OpenAI — everyday coding & tool use',
1121
+ // Documented as 1.05M; floored to 1M like the other OpenAI entries.
1122
+ contextWindow: 1_000_000,
1123
+ maxOutputTokens: 128_000,
1124
+ supportsThinking: true,
1125
+ thinkingBudgetTokens: 16_000,
1126
+ thinkingConfigurable: true,
1127
+ // Unlike gpt-6.1-sol, the model page lists a 'none' effort (verified
1128
+ // 2026-10-27) — tool-less utility calls run with reasoning off.
1129
+ supportedEffortLevels: ['none', 'low', 'medium', 'high', 'xhigh', 'max'],
1130
+ defaultEffortLevel: 'medium',
1131
+ // Omitted like the rest of the 6.1 family; the pre-commit dispatch probe
1132
+ // sends the temperature-0 shape.
1133
+ rejectsTemperature: true,
1134
+ supportsVision: true,
1135
+ supportsPromptCaching: true,
1136
+ supportsTools: true,
1137
+ webSearchToolType: 'web_search',
1138
+ webSearchPricePer1k: 10,
1139
+ codeExecutionToolType: 'code_interpreter',
1140
+ // Standard tier. Cached input is 5% of input like gpt-6.1-sol; >272K band
1141
+ // ($2/$7.50, cached $0.10, writes $2.50) not modeled.
1142
+ inputPricePerMTok: 1,
1143
+ outputPricePerMTok: 5,
1144
+ cacheReadPricePerMTok: 0.05,
1145
+ cacheWritePricePerMTok: 1.25,
1146
+ knowledgeCutoff: '2026-06-01',
1147
+ },
1100
1148
  {
1101
1149
  id: 'gpt-6-sol',
1102
1150
  provider: 'openai',
@@ -1244,11 +1292,11 @@ export const MODELS = [
1244
1292
  cacheWritePricePerMTok: 2.5,
1245
1293
  // Not published — best-effort estimate.
1246
1294
  knowledgeCutoff: '2026-03-01',
1247
- // Superseded by gpt-6-sol: GPT-6 has no Terra tier, and sol sits at this
1248
- // tier's price ($2/$10 vs $2/$12). Points one hop to gpt-6.1-sol since
1249
- // 2026-09-30.
1295
+ // Superseded by gpt-6.1-terra — the same tier returns at $1/$5. (Pointed
1296
+ // at gpt-6.1-sol since 2026-09-30 while GPT-6.x had no Terra id.) Still
1297
+ // served and priceable — just not offered in the picker.
1250
1298
  deprecatedAt: '2026-09-23',
1251
- supersededBy: 'gpt-6.1-sol',
1299
+ supersededBy: 'gpt-6.1-terra',
1252
1300
  },
1253
1301
  {
1254
1302
  id: 'gpt-5.6-luna',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-ai-models",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "AI model catalog — server-side source of truth plus an authentication-gated discovery endpoint",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,9 +27,9 @@
27
27
  ],
28
28
  "license": "Apache-2.0",
29
29
  "devDependencies": {
30
- "@molecule/api-bond": "1.0.3",
31
- "@molecule/api-i18n": "1.0.4",
32
- "@molecule/api-resource": "1.0.6",
30
+ "@molecule/api-bond": "1.0.4",
31
+ "@molecule/api-i18n": "1.0.5",
32
+ "@molecule/api-resource": "1.0.7",
33
33
  "@types/node": "26.6.5",
34
34
  "typescript": "6.0.3",
35
35
  "vitest": "4.1.12"