Repository navigation
Expand file tree
/
Copy pathmodels.json
More file actions
990 lines (990 loc) · 37.9 KB
/
Copy pathmodels.json
File metadata and controls
990 lines (990 loc) · 37.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
{
"_comment": "CANONICAL model catalog for the WHOLE monorepo (root /models.json): capabilities (window/vision/reasoning/max_output), CLI picker flags (pinnable/group), pricing ($/M tokens; entry price_in/out -> first-matching family rule -> defaults; cache read defaults to 0.1x input, cache write to 1.25x input), and the www chat surface (per-model `www` block: chat/order/description \u2014 Go ignores it). Consumers: Go embeds a BYTE-IDENTICAL copy at packages/sdk/go/common/models.json (sync with scripts/sync-models.sh; a guard test fails on drift; api/ re-vendors it), and apps/www derives its entire catalog + calculateCost from THIS file. Edit HERE, run the sync script, never edit the sdk copy directly.",
"models": [
{
"id": "grok-4.7",
"label": "grok-4.7",
"vendor": "grok",
"window": 500000,
"vision": true,
"reasoning": true,
"price_in": 2.0,
"price_out": 6.0,
"price_cache_read": 0.5,
"_note": "Grok 4.7 (xAI, 2026-09-21, via the OpenAI-compatible api.x.ai endpoint). Single model for the Grok vendor. 500K context, reasoning_effort low..xhigh, vision. PRICING verified live against api.x.ai/v1/models/grok-4.7 2026-09-27: $2/$6, cached $0.50 below 200K prompt tokens; at or above 200K every rate doubles ($4/$12/$1), which is the price_tiers entry. Same rates as Grok 4.6, which it replaces; 4.6's label and id are aliased so pins migrate.",
"pinnable": true,
"group": "Grok",
"desc": "Frontier reasoning",
"name": "Grok 4.7",
"www": {
"chat": true,
"order": 36,
"description": "xAI flagship model for coding and agentic work, with a large context window."
},
"max_output": 32000,
"fallback": [
"terra"
],
"price_tiers": [
{
"above_prompt_tokens": 200000,
"in": 2.0,
"out": 2.0,
"cache_read": 2.0,
"cache_write": 2.0
}
],
"aliases": [
"grok-4.6"
]
},
{
"id": "gemini-4-carbon",
"label": "gemini-pro",
"vendor": "gemini",
"window": 1000000,
"vision": true,
"reasoning": true,
"price_in": 4.0,
"price_out": 20.0,
"price_cache_read": 0.2,
"_note": "Gemini 4 Carbon (Google, gemini-4-carbon), Google's strongest reasoning model. Replaces Gemini 3.1 Pro as the Gemini frontier model; the 3.1 Pro and 3 Pro preview ids are aliased so pins migrate. VERIFIED LIVE on Vertex (location global) 2026-11-18: generateContent, function calling, Google Search grounding. Gemini 4 REJECTS thinkingBudget (400 'Use thinking level instead') and takes only thinkingLevel LOW, MEDIUM or HIGH (MINIMAL 400s and there is no off), which is the thinking_levels flag. LIMITS from the models page: 1M in, 64K out. PRICING verified aistudio.google.com/docs/pricing 2026-11-18: $4/$20, cache $0.20 (0.05x, hence price_cache_read), flat across the whole window. That is the card from 2026-12-01; Google charges an introductory $2/$10 (cache $0.10) through 2026-11-30, and the catalog carries the standing price instead of a dated flip (Tim, 2026-11-18).",
"pinnable": true,
"group": "Gemini",
"desc": "Deep reasoning",
"name": "Gemini 4 Carbon",
"pdf": true,
"www": {
"chat": true,
"order": 30,
"description": "Google's strongest Gemini 4 model for deep reasoning, with a 1M context window, vision, and PDF."
},
"max_output": 65536,
"fallback": [
"sonnet",
"terra"
],
"thinking_levels": true,
"aliases": [
"gemini-3.1-pro-preview",
"gemini-3-pro-preview"
]
},
{
"id": "gemini-4-hydrogen",
"label": "gemini-flash",
"vendor": "gemini",
"window": 1000000,
"vision": true,
"reasoning": true,
"price_in": 1.5,
"price_out": 7.5,
"price_cache_read": 0.075,
"_note": "Gemini 4 Hydrogen (Google, gemini-4-hydrogen), the fast Gemini 4 model for agentic work and everyday tasks, and the one Google recommends for new projects. Replaces Gemini 3.8 Flash as the Gemini vendor's everyday model; the label stays gemini-flash and the 3.8 and 3.6 Flash ids are aliased, so existing pins move with no user action. VERIFIED LIVE on Vertex (location global) 2026-11-18: generateContent, function calling, Google Search grounding (the websearch side channel), thinking. Takes thinkingLevel only, like Carbon (thinking_levels). LIMITS: 1M in, 64K out. PRICING verified aistudio.google.com/docs/pricing 2026-11-18: $1.50/$7.50, cache $0.075 (0.05x), flat across the window, no promo end date. That is 2x 3.8 Flash's introductory $0.75/$3.75 and equal to the $1.50/$7.50 3.8 Flash moves to on 2027-01-01.",
"pinnable": true,
"group": "Gemini",
"desc": "Fast agentic coding",
"name": "Gemini 4 Hydrogen",
"pdf": true,
"www": {
"chat": true,
"order": 22,
"description": "Google's fast Gemini 4 model for agentic work and everyday coding, with a 1M context window, vision, PDF, and thinking."
},
"max_output": 65536,
"fallback": [
"haiku",
"luna"
],
"thinking_levels": true,
"aliases": [
"gemini-3.8-flash",
"gemini-3.6-flash"
]
},
{
"id": "gemini-3.5-flash-lite",
"label": "gemini-flash-lite",
"vendor": "gemini",
"window": 1000000,
"vision": true,
"reasoning": true,
"price_in": 0.3,
"price_out": 2.5,
"_note": "Gemini 3.5 Flash-Lite (Google, GA July 21 2026). Fast/cheap classifier tier for the Gemini vendor. Latest stable Flash-Lite; supersedes gemini-3.1-flash-lite ($0.25/$1.50). 1M context, 64K max output. NOT in the pickers (pinnable:false, www.chat:false) as of 2026-07-28 (Tim) \u2014 it stays in the catalog ONLY as the Gemini AUTOMATIC cheap/classifier role (ModelGeminiFlashLite); pricing/window still resolve.",
"pinnable": false,
"group": "Gemini",
"desc": "Cheapest for quick work",
"name": "Gemini 3.5 Flash-Lite",
"pdf": true,
"www": {
"chat": false,
"order": 20,
"description": "Most cost-effective Gemini model. Fast, lightweight, ideal for bulk tasks and agent workflows."
},
"max_output": 65536,
"fallback": [
"haiku",
"luna"
]
},
{
"id": "claude-opus-5-5",
"label": "opus",
"vendor": "anthropic",
"window": 1000000,
"max_output": 128000,
"vision": true,
"reasoning": true,
"pinnable": true,
"group": "Claude",
"desc": "Best for complex tasks",
"name": "Opus 5.5",
"pdf": true,
"www": {
"chat": true,
"order": 95,
"description": "Anthropic's Opus for long-running agentic coding and knowledge work, with a 1M context window and adaptive thinking."
},
"fallback": [
"terra"
],
"price_in": 4.0,
"price_out": 20.0,
"price_cache_read": 0.2,
"no_forced_tool_choice": true,
"aliases": [
"claude-opus-5"
],
"_note": "Claude Opus 5.5 (Anthropic, claude-opus-5-5). Supersedes Opus 5, which platform.claude.com now lists as legacy; the old id is aliased so pins migrate. 1M window, 128K out, always-on adaptive thinking (thinking cannot be disabled; default effort is medium, one below Opus 5, but memcode always sends effort explicitly). PRICING verified platform.claude.com/docs/en/about-claude/pricing 2026-09-27: $4/$20 per 1M. CACHE READ is 0.05x = $0.20, not the 0.1x default, hence the explicit price_cache_read (without it cache reads bill 2x cost). Forced tool_choice (any/tool) 400s on this model, verified live 2026-09-27: see no_forced_tool_choice."
},
{
"id": "claude-fable-5-2",
"label": "fable",
"vendor": "anthropic",
"window": 1000000,
"max_output": 128000,
"vision": true,
"reasoning": true,
"pinnable": true,
"group": "Claude",
"price_in": 8.0,
"price_out": 40.0,
"price_cache_read": 0.2,
"_note": "Claude Fable 5.2 (Anthropic, claude-fable-5-2), Anthropic's most capable widely released model. Supersedes Fable 5.1 (still served), whose id is aliased so pins migrate. 1M window, 128K out, always-on adaptive thinking. PRICING verified platform.claude.com/docs/en/about-claude/pricing 2026-11-18: $8/$40, cheaper than 5.1's $10/$50; cache read $0.20 (0.025x, hence price_cache_read), cache write 1.25x. Forced tool_choice (any/tool) 400s, verified live 2026-11-18: see no_forced_tool_choice. Fable 5.2 runs the preserved-thinking history check on EVERY account: a replayed thinking block whose system, tools or earlier messages changed is a 400, and memcode's volatile system block changes every turn. Verified live 2026-11-18: edited system = 400 'bound to a different conversation', the same request with block_binding drop_block = OK with the block dropped. drop_unbound_thinking makes the adapter send drop_block on this model only; Opus 5.5, Sonnet 5.5 and Haiku 5.5 accept the edited history on memcode's account, so dropping there would only lose reasoning.",
"desc": "Most capable Claude",
"name": "Fable 5.2",
"pdf": true,
"www": {
"chat": true,
"order": 100,
"description": "Anthropic's most capable model: state-of-the-art coding, vision, and computer use with a 1M context window and always-on adaptive thinking."
},
"fallback": [
"sol"
],
"no_forced_tool_choice": true,
"drop_unbound_thinking": true,
"aliases": [
"claude-fable-5-1"
]
},
{
"id": "claude-sonnet-5-5",
"label": "sonnet",
"vendor": "anthropic",
"window": 1000000,
"max_output": 128000,
"vision": true,
"reasoning": true,
"pinnable": true,
"group": "Claude",
"desc": "Efficient for routine tasks",
"name": "Sonnet 5.5",
"pdf": true,
"www": {
"chat": true,
"order": 35,
"description": "Latest Claude Sonnet with adaptive thinking, 1M context, and best speed-to-intelligence ratio."
},
"_note": "Claude Sonnet 5.5 (Anthropic, claude-sonnet-5-5). Supersedes Sonnet 5 (still served), whose id is aliased so pins and the default_model seed move to 5.5. 1M window, 128K out, adaptive thinking on by default. PRICING verified platform.claude.com/docs/en/about-claude/pricing 2026-11-18: $2/$10, the same as Sonnet 5, but cache reads are 0.05x = $0.10 where Sonnet 5 read at 0.1x, hence price_cache_read. Verified live 2026-11-18: forced tool_choice 400s (no_forced_tool_choice), thinking {type:disabled} 400s (the adapter never sends it), web_search_20250305 and web_fetch_20250910 both work for the side channels.",
"fallback": [
"terra"
],
"price_in": 2.0,
"price_out": 10.0,
"price_cache_read": 0.1,
"no_forced_tool_choice": true,
"aliases": [
"claude-sonnet-5"
]
},
{
"id": "claude-haiku-5-5",
"label": "haiku",
"vendor": "anthropic",
"window": 1000000,
"max_output": 128000,
"vision": true,
"reasoning": true,
"pinnable": true,
"group": "Claude",
"desc": "Fastest for quick answers",
"name": "Haiku 5.5",
"pdf": true,
"www": {
"chat": true,
"order": 10,
"description": "Fastest and most compact Claude model, perfect for quick responses."
},
"fallback": [
"luna"
],
"price_in": 0.1,
"price_out": 0.5,
"price_cache_read": 0.01,
"price_tiers": [
{
"above_prompt_tokens": 100000,
"in": 5.0,
"out": 5.0,
"cache_read": 5.0,
"cache_write": 5.0
}
],
"aliases": [
"claude-haiku-4-5-20251001",
"claude-haiku-4-5"
],
"_note": "Claude Haiku 5.5 (Anthropic, claude-haiku-5-5). Supersedes Haiku 4.5 (still served at $1/$5), whose ids are aliased so pins and the anthropic subscription utility model move to 5.5. 1M window, 128K out, adaptive thinking on by default: budget_tokens 400s, {type:disabled} is accepted and is what EffortOff sends, so plumbing calls stay unthinking like 4.5. Forced tool_choice WORKS, verified live 2026-11-18, so no no_forced_tool_choice flag. PRICING verified platform.claude.com/docs/en/about-claude/pricing 2026-11-18: $0.10/$0.50, cache read $0.01, for prompts up to 100K tokens; a prompt over 100K (cache reads and writes count toward it) bills every rate at 5x ($0.50/$2.50/$0.05), which is the price_tiers entry. The newer tokenizer counts the same text as about 30% more tokens than 4.5."
},
{
"id": "gpt-6.2-astra",
"label": "astra",
"vendor": "openai",
"window": 1050000,
"vision": true,
"reasoning": true,
"price_in": 8.0,
"price_out": 40.0,
"price_cache_read": 0.4,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
],
"min_reasoning_effort": "low",
"_note": "Pinned as astra, replacing GPT-6 Astra (aliased). GPT-6.2 Astra (OpenAI, 2026-11-17). Frontier tier, successor to GPT-6 Astra at a lower price. Responses API, 1.05M context, 128K max output. PRICING verified developers.openai.com/api/docs/pricing 2026-11-18: $8/$40, cached $0.40 (0.05x, hence price_cache_read); over 272K prompt tokens 2x input and cache, 1.5x output (price_tiers). Reasoning floor is low: 'none' 400s (verified 2026-11-18). ENABLED 2026-11-18 on Tim's call while the memcode OpenAI project still reported 'does not have access to model' for the GPT-6.2/6.1 ids and the org answered every model with 'You have no credits remaining', so this entry has NOT been verified serving through memcode.",
"name": "GPT-6.2 Astra",
"desc": "Strongest reasoning",
"group": "OpenAI",
"pdf": true,
"max_output": 128000,
"fallback": [
"opus",
"sol"
],
"pinnable": true,
"www": {
"chat": true,
"order": 105,
"description": "OpenAI frontier GPT-6.2 Astra. Top-tier intelligence for coding, computer use and professional work, with a 1.05M context window."
},
"aliases": [
"gpt-6-astra"
]
},
{
"id": "gpt-6.2-sol",
"label": "sol",
"vendor": "openai",
"window": 1050000,
"vision": true,
"reasoning": true,
"price_in": 2.0,
"price_out": 10.0,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
],
"_note": "Pinned as sol, replacing GPT-5.6 Sol (aliased). GPT-6.2 Sol (OpenAI, 2026-11-17). Balanced GPT-6 tier; supersedes GPT-6 Sol and GPT-6.1 Sol, both aliased. Responses API, 1.05M context, 128K max output. PRICING verified developers.openai.com/api/docs/pricing 2026-11-18: $2/$10, cached $0.10 (0.05x, hence price_cache_read); over 272K prompt tokens 2x input and cache, 1.5x output (price_tiers). Reasoning floor is low: 'none' 400s (verified 2026-11-18). ENABLED 2026-11-18 on Tim's call while the memcode OpenAI project still reported 'does not have access to model' for the GPT-6.2/6.1 ids and the org answered every model with 'You have no credits remaining', so this entry has NOT been verified serving through memcode.",
"name": "GPT-6.2 Sol",
"desc": "Complex coding and agents",
"group": "OpenAI",
"pdf": true,
"max_output": 128000,
"fallback": [
"sonnet",
"terra"
],
"price_cache_read": 0.1,
"min_reasoning_effort": "low",
"aliases": [
"gpt-5.6-sol",
"gpt-6-sol",
"gpt-6.1-sol"
],
"pinnable": true,
"www": {
"chat": true,
"order": 110,
"description": "OpenAI GPT-6.2 Sol for complex coding and agentic work, with a 1.05M context window."
}
},
{
"id": "gpt-6.1-terra",
"label": "terra",
"vendor": "openai",
"window": 1050000,
"vision": true,
"reasoning": true,
"price_in": 1.0,
"price_out": 5.0,
"price_cache_read": 0.05,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
],
"_note": "Pinned as terra, replacing GPT-5.6 Terra (aliased). GPT-6.1 Terra (OpenAI). The GPT-6 successor to GPT-5.6 Terra, at half its input price. Responses API, 1.05M context, 128K max output. PRICING verified developers.openai.com/api/docs/pricing 2026-11-18: $1/$5, cached $0.05 (0.05x, hence price_cache_read); over 272K prompt tokens 2x input and cache, 1.5x output (price_tiers). Its effort validation accepts 'none'. ENABLED 2026-11-18 on Tim's call while the memcode OpenAI project still reported 'does not have access to model' for the GPT-6.2/6.1 ids and the org answered every model with 'You have no credits remaining', so this entry has NOT been verified serving through memcode.",
"name": "GPT-6.1 Terra",
"desc": "Balanced everyday coding",
"group": "OpenAI",
"pdf": true,
"max_output": 128000,
"fallback": [
"sonnet",
"luna"
],
"pinnable": true,
"www": {
"chat": true,
"order": 90,
"description": "Balanced GPT-6.1 model with strong reasoning at a fraction of the cost of Sol."
},
"aliases": [
"gpt-5.6-terra"
]
},
{
"id": "gpt-6-luna",
"label": "luna",
"vendor": "openai",
"window": 1050000,
"vision": true,
"reasoning": true,
"price_in": 0.1,
"price_out": 0.5,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
],
"_note": "Pinned as luna, replacing GPT-5.6 Luna (aliased). GPT-6 Luna (OpenAI). Efficient GPT-6 tier for focused, high-volume work. Responses API, 1.05M context, 128K max output, reasoning none..max. PRICING verified developers.openai.com/api/docs/pricing 2026-09-27: $0.10/$0.50, cached $0.01 (default 0.1x); over 272K prompt tokens 2x input/cache, 1.5x output (price_tiers). Re-verified on the pricing page 2026-11-18, unchanged. ENABLED 2026-11-18 on Tim's call while the memcode OpenAI project still reported 'does not have access to model' for the GPT-6.2/6.1 ids and the org answered every model with 'You have no credits remaining', so this entry has NOT been verified serving through memcode.",
"name": "GPT-6 Luna",
"desc": "Fast and cheap",
"group": "OpenAI",
"pdf": true,
"max_output": 128000,
"fallback": [
"haiku",
"terra"
],
"pinnable": true,
"www": {
"chat": true,
"order": 80,
"description": "Fast, cost-effective GPT-6 model for quick tasks and high-volume use cases."
},
"aliases": [
"gpt-5.6-luna"
]
},
{
"id": "accounts/fireworks/models/glm-5p3",
"label": "glm-5p3",
"vendor": "fireworks",
"window": 1048576,
"vision": false,
"reasoning": true,
"price_in": 1.4,
"price_out": 4.4,
"price_cache_read": 0.26,
"_note": "GLM-5.3 (Z.ai, Fireworks 2026-08-28). Supersedes GLM-5.2 as the pinnable GLM and as the Fireworks intra-lane fallback target. 743B params, 1M context, 131,072 max output, function calling, no vision; gains over 5.2 are post-training only. Official Standard-tier rate verified on the Fireworks model page 2026-09-11: $1.40 in / $0.26 cached / $4.40 out. Same headline price as 5.2, but the cached rate is nearly double, so it is declared explicitly. Fireworks decommissions GLM 5.2 from serverless on 2026-09-25 and names 5.3 as its replacement, so 5.2's label and id are aliased here.",
"pinnable": true,
"group": "GLM",
"desc": "Open-weight coding flagship",
"name": "GLM-5.3",
"www": {
"chat": true,
"order": 30,
"description": "Open-weight coding flagship (Z.ai) with a 1M context window, tuned for long-horizon agentic coding."
},
"max_output": 131072,
"fallback": [
"terra",
"luna"
],
"aliases": [
"glm-5p2",
"accounts/fireworks/models/glm-5p2"
]
},
{
"id": "accounts/fireworks/models/glm-5p3-flash",
"label": "glm-5p3-flash",
"vendor": "fireworks",
"window": 1048576,
"vision": true,
"reasoning": true,
"price_in": 0.15,
"price_out": 0.5,
"price_cache_read": 0.03,
"_note": "GLM-5.3 Flash (Z.ai, Fireworks 2026-08-26). The cheap tier of the 5.3 family: 1M context, function calling, and vision, at $0.15 in / $0.03 cached / $0.50 out (Fireworks serverless pricing table, verified 2026-09-11). Roughly a tenth of GLM-5.3's rate.",
"pinnable": true,
"group": "GLM",
"desc": "Cheap 1M-context coding",
"name": "GLM-5.3 Flash",
"www": {
"chat": true,
"order": 31,
"description": "Z.ai's GLM-5.3 Flash: a low-cost 1M-context model with vision, for routine coding work."
},
"max_output": 131072,
"fallback": [
"luna",
"glm-5p3"
]
},
{
"id": "accounts/fireworks/models/qwen3p8-max",
"label": "qwen3p8-max",
"vendor": "fireworks",
"window": 262144,
"vision": true,
"reasoning": true,
"price_in": 2.0,
"price_out": 6.0,
"price_cache_read": 0.25,
"_note": "Qwen3.8 Max (Alibaba, Fireworks). Repointed 2026-09-11 from accounts/fireworks/models/qwen3p8-2p4t-a95b to accounts/fireworks/models/qwen3p8-max. The label and the rate card here were already Qwen 3.8 Max, but qwen3p8-max is the id Fireworks lists and prices under that name, and it reports image input where the old path did not. Official rate verified 2026-09-11: $2.00 in, $0.25 cached, $6.00 out. The cached rate was 0.20, which underbilled cache reads by 20%.",
"pinnable": true,
"group": "Qwen",
"desc": "Alibaba frontier coding",
"name": "Qwen3.8 Max",
"www": {
"chat": true,
"order": 17,
"description": "Alibaba's Qwen3.8 Max on Fireworks: built for long-horizon coding and autonomous repo work."
},
"max_output": 32000,
"fallback": [
"terra",
"glm-5p3"
]
},
{
"id": "accounts/fireworks/models/kimi-k3p1-pro",
"label": "kimi-k3p1-pro",
"vendor": "fireworks",
"window": 1048576,
"vision": true,
"reasoning": true,
"pinnable": true,
"group": "Kimi",
"price_in": 2.0,
"price_out": 10.0,
"price_cache_read": 0.2,
"_note": "Kimi K3.1 Pro (Moonshot, Fireworks serverless 2026-11-02). Supersedes Kimi K3 as the pinnable Kimi; K3's label and id are aliased so pins migrate. VERIFIED LIVE 2026-11-18: completion with reasoning_effort none works, and the Fireworks models API reports 1,048,576 context, image input and tools. PRICING verified docs.fireworks.ai/serverless/pricing 2026-11-18: $2.00 in / $0.20 cached / $10.00 out, cheaper than K3's $3/$15. The explicit entry price overrides the kimi family rule. Like K3 it defaults to thinking unless reasoning_effort is none, which both serving paths already send when thinking is off.",
"desc": "Moonshot flagship",
"name": "Kimi K3.1 Pro",
"www": {
"chat": true,
"order": 18,
"description": "Moonshot's Kimi K3.1 Pro on the Fireworks lane: 1M context and native vision."
},
"max_output": 32000,
"fallback": [
"terra",
"glm-5p3"
],
"aliases": [
"kimi-k3",
"accounts/fireworks/models/kimi-k3"
]
},
{
"id": "accounts/fireworks/models/gpt-oss-120b",
"label": "gpt-oss-120b",
"vendor": "fireworks",
"window": 131072,
"vision": false,
"reasoning": true,
"price_in": 0.15,
"price_out": 0.6,
"_note": "OpenAI gpt-oss-120b (open-weight, Fireworks serverless). CLASSIFY role 2026-06-21: the cheap structured-output classifier for the followup-fold queue + plan-intent + risk/authorize judges. LIVE-PROBED against glm-5p2 on a followup-fold battery: gpt-oss-120b 10/10 @1.6-2.6s; glm-5p2 only 7/10 (biased to 'false' \u2192 under-folds) at ~10x the token cost. Forces tools cleanly (tool_choice). price ~$0.15/$0.60 per M (approx). The cheap CODING lane stays glm-5p2; this is classify-only. Rollback: drop config.json roles.classify (falls back to the cheap lane) + redeploy.",
"fallback": [
"luna",
"glm-5p3"
]
},
{
"id": "accounts/fireworks/models/deepseek-v4p1-flash-1017",
"label": "deepseek-v4-flash",
"vendor": "fireworks",
"window": 1048576,
"vision": true,
"reasoning": true,
"_note": "DeepSeek V4.1 Flash, the 2026-10-17 build (Fireworks serverless). Repointed 2026-11-18 from accounts/fireworks/models/deepseek-v4p1-flash (the 2026-09-10 build, aliased) to the newer snapshot; VERIFIED LIVE that day, and the Fireworks models API reports 1,048,576 context, image input and tools for it. PRICING verified docs.fireworks.ai/serverless/pricing 2026-11-18: $0.30 in / $0.006 cached / $1.20 out for both builds. The catalog had $0.22/$0.007/$0.66, which undercharged every call. The older V4 Flash 0731, V4 Pro 0813 and V4 Flash Vision Exp ids, decommissioned 2026-09-25, stay aliased here.",
"pinnable": true,
"group": "DeepSeek",
"desc": "Fast reasoning",
"name": "DeepSeek V4.1 Flash",
"www": {
"chat": true,
"order": 26,
"description": "DeepSeek's V4.1 Flash on Fireworks: fast, low-cost reasoning and coding with vision and a 1M context window."
},
"max_output": 32000,
"fallback": [
"luna",
"glm-5p3"
],
"price_in": 0.3,
"price_out": 1.2,
"price_cache_read": 0.006,
"aliases": [
"accounts/fireworks/models/deepseek-v4p1-flash",
"deepseek-v4-pro",
"accounts/fireworks/models/deepseek-v4-pro-0813",
"accounts/fireworks/models/deepseek-v4-flash-0731",
"accounts/fireworks/models/deepseek-v4-flash-vision-exp"
]
},
{
"id": "accounts/fireworks/models/minimax-m3",
"label": "minimax-m3",
"vendor": "fireworks",
"window": 500000,
"vision": true,
"reasoning": true,
"_note": "RETIRED from roles 2026-06-13 \u2014 recurring tool-call-text leak (opencode #30684 + cross-harness) + weak instruction-following. Kept for reference; not assigned to any role. PRICING verified 2026-08-15 fireworks.ai model page: $0.30/$1.20, cached $0.059 (was billing the glm-family fallback $1.40/$4.40).",
"fallback": [
"luna",
"glm-5p3"
],
"price_in": 0.3,
"price_out": 1.2,
"price_cache_read": 0.06
},
{
"id": "gemini-embedding-2",
"label": "gemini-embedding-2",
"vendor": "gemini",
"name": "Gemini Embedding 2",
"price_in": 0.2,
"price_out": 0,
"_note": "Embedding model: billing card only (embed cron + query-side embeds). Not servable as a chat model. PRICING verified ai.google.dev/gemini-api/docs/pricing 2026-09-27: text input $0.20/M. Replaces gemini-embedding-001 (shutdown 2028-05-14); the two embedding spaces are INCOMPATIBLE, so switching models means re-embedding every stored vector.",
"aliases": [
"gemini-embedding-001"
]
},
{
"id": "text-embedding-3-small",
"label": "text-embedding-3-small",
"vendor": "openai",
"name": "OpenAI Embedding Small",
"price_in": 0.02,
"price_out": 0
},
{
"id": "gpt-image-2",
"label": "gpt-image-2",
"vendor": "openai",
"name": "GPT Image 2",
"price_in": 8.0,
"price_out": 30.0,
"_note": "gpt-image-2 $8/M in, $30/M out per developers.openai.com pricing (verified 2026-07-27 \u2014 LiteLLM had $5/$10, vendor page wins). gpt-image-1 shuts down 2026-10-23 (developers.openai.com deprecations) and its id is aliased here.",
"aliases": [
"gpt-image-1"
]
}
],
"families": [
{
"match": [
"[1m]",
"-1m"
],
"window": 1000000
},
{
"match": [
"gpt-oss"
],
"window": 131072,
"price_in": 0.15,
"price_out": 0.6
},
{
"match": [
"gpt-5.6-sol"
],
"price_in": 4,
"price_out": 20,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
]
},
{
"match": [
"gpt-5.6-terra"
],
"price_in": 2,
"price_out": 12,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
]
},
{
"match": [
"gpt-5.6-luna"
],
"price_in": 0.2,
"price_out": 1.2,
"price_tiers": [
{
"above_prompt_tokens": 272000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
]
},
{
"match": [
"gpt-5.6",
"gpt-6"
],
"window": 1050000
},
{
"match": [
"gemini-4-carbon",
"gemini-4-argon"
],
"price_in": 4.0,
"price_out": 20.0,
"price_cache_read": 0.2,
"_note": "Gemini 4 Carbon/Argon standing card from 2026-12-01: $4/$20, cache $0.20 (aistudio.google.com/docs/pricing, verified 2026-11-18). The introductory $2/$10 through 2026-11-30 is deliberately not modeled."
},
{
"match": [
"gemini-4-hydrogen"
],
"price_in": 1.5,
"price_out": 7.5,
"price_cache_read": 0.075
},
{
"match_all": [
"gemini",
"flash-lite"
],
"price_in": 0.3,
"price_out": 2.5
},
{
"match_all": [
"gemini",
"pro"
],
"price_in": 2,
"price_out": 12,
"price_tiers": [
{
"above_prompt_tokens": 200000,
"in": 2.0,
"out": 1.5,
"cache_read": 2.0,
"cache_write": 2.0
}
]
},
{
"match": [
"gemini"
],
"window": 1000000,
"price_in": 0.75,
"price_out": 3.75,
"_note": "windows: all gemini-3.x are 1M; pricing: tier-word rules above catch lite/pro, this row is the flash default (gemini-3.8-flash rate)"
},
{
"match": [
"grok-4.7",
"grok-4.6"
],
"window": 500000,
"price_in": 2,
"price_out": 6,
"price_cache_read": 0.5,
"price_tiers": [
{
"above_prompt_tokens": 200000,
"in": 2.0,
"out": 2.0,
"cache_read": 2.0,
"cache_write": 2.0
}
]
},
{
"match": [
"glm-5p2",
"glm-5p3",
"deepseek-v4"
],
"window": 1048576
},
{
"match": [
"qwen3p8",
"qwen3.8"
],
"window": 262144
},
{
"match": [
"kimi-k3"
],
"window": 1000000
},
{
"match": [
"kimi-k2"
],
"window": 262000
},
{
"match": [
"minimax-m3"
],
"window": 500000
},
{
"match": [
"kimi-k3p1"
],
"price_in": 2.0,
"price_out": 10.0,
"price_cache_read": 0.2
},
{
"match": [
"kimi"
],
"price_in": 0.95,
"price_out": 4.0,
"price_cache_read": 0.16
},
{
"match": [
"deepseek-v4-flash"
],
"price_in": 0.3,
"price_out": 1.2,
"price_cache_read": 0.006,
"_note": "Catches a drifted deepseek-v4-flash-* id that is not explicitly aliased. The 0731 build itself resolves through the alias on deepseek-v4p1-flash and prices there."
},
{
"match": [
"qwen3p8",
"qwen3.8"
],
"price_in": 2.0,
"price_out": 6.0,
"price_cache_read": 0.25,
"_note": "Qwen 3.8 Max rate, covering the legacy qwen3p8-2p4t-a95b path as well as the qwen3p8-max id."
},
{
"match": [
"glm-5p3-flash"
],
"price_in": 0.15,
"price_out": 0.5,
"price_cache_read": 0.03
},
{
"match": [
"glm-5p3"
],
"price_in": 1.4,
"price_out": 4.4,
"price_cache_read": 0.26
},
{
"match": [
"glm",
"deepseek",
"kimi",
"minimax",
"/"
],
"price_in": 1.4,
"price_out": 4.4,
"price_cache_read": 0.26,
"_note": "Fireworks families + any leftover accounts/ path: the glm rate card is the floor so cheap-lane metering is never $0. Replace the kimi rows' pricing when Fireworks publishes real Kimi rates."
},
{
"match": [
"fable-5-2",
"mythos-5-2"
],
"price_in": 8,
"price_out": 40,
"price_cache_read": 0.2,
"_note": "Fable/Mythos 5.2 $8/$40, cache read 0.025x = $0.20 (platform.claude.com pricing, verified 2026-11-18). Must precede the 5.1 and bare fable/mythos rows."
},
{
"match": [
"fable-5-1",
"mythos-5-1"
],
"price_in": 10,
"price_out": 50,
"price_cache_read": 0.25,
"_note": "Fable/Mythos 5.1 read cache at 0.025x, not the usual 0.1x (platform.claude.com pricing, verified 2026-09-02). Must precede the bare fable/mythos row below."
},
{
"match": [
"fable",
"mythos"
],
"price_in": 10,
"price_out": 50,
"price_cache_read": 1.0,
"_note": "Fable 5 / Mythos 5 (legacy, still callable and possibly still pinned): $10/$50, cache read 0.1x. Without this row a legacy id matches no pricing family and falls to the $3/$15 defaults \u2014 a 5x UNDERCHARGE on output for the most expensive model in the catalog."
},
{
"match": [
"opus-5-5"
],
"price_in": 4,
"price_out": 20,
"price_cache_read": 0.2,
"_note": "Opus 5.5 $4/$20, cache read 0.05x = $0.20 (platform.claude.com pricing, verified 2026-09-27). Must precede the bare opus row, which would bill it at the Opus 5 card."
},
{
"match": [
"opus"
],
"price_in": 5,
"price_out": 25,
"_note": "Opus 5 / 4.x $5/$25 (vendor page 2026-09-27; the old $15/$75 was the pre-4.5 card). Opus 5.5 is cheaper and matches the opus-5-5 row above first."
},
{
"match": [
"sonnet-5-5"
],
"price_in": 2,
"price_out": 10,
"price_cache_read": 0.1,
"_note": "Sonnet 5.5 $2/$10, cache read 0.05x = $0.10 (verified 2026-11-18). Must precede the bare sonnet row, whose 0.1x default would double cache reads."
},
{
"match": [
"sonnet"
],
"price_in": 2,
"price_out": 10,
"_note": "Sonnet 5 $2/$10 \u2014 previously hit the $3/$15 defaults row. Re-verified against platform.claude.com 2026-09-02: the scheduled 2026-09-01 raise to $3/$15 was cancelled and this is the standard price."
},
{
"match": [
"haiku-5"
],
"window": 1000000,
"price_in": 0.1,
"price_out": 0.5,
"price_cache_read": 0.01,
"price_tiers": [
{
"above_prompt_tokens": 100000,
"in": 5.0,
"out": 5.0,
"cache_read": 5.0,
"cache_write": 5.0
}
],
"_note": "Haiku 5.5 (verified 2026-11-18). Must precede the bare haiku row, which is Haiku 4.5's 200K window and $1/$5 card."
},
{
"match": [
"haiku"
],
"window": 200000,
"price_in": 1,
"price_out": 5
},
{
"match": [
"opus-4-6",
"opus-4-7",
"opus-5",
"sonnet-4-6",
"sonnet-5",
"fable"
],
"window": 1000000
}
],
"search_fees": {
"anthropic": 10.0,
"openai": 10.0,
"grok": 5.0
},
"_search_fees_note": "Native in-turn web search bills a PER-REQUEST fee upstream on top of tokens \u2014 USD per 1,000 searches, keyed by serving vendor (Response.Backend). Consumed by common.SearchFeeUSD (Go) for the gateway's cost_usd; values must stay floats only (the Go loader parses this object as map[string]float64). VERIFIED 2026-08-06: OpenAI Responses web_search $10/1k calls on reasoning models incl. GPT-5.x (developers.openai.com/api/docs/pricing \u2014 the $25/1k row is web_search_preview on NON-reasoning models, never served here); Anthropic web_search_20250305 $10/1k searches, errored searches not billed, web_fetch has no per-request fee (platform.claude.com/docs web-search-tool); xAI Agent Tools web_search $5/1k invocations (docs.x.ai/developers/pricing \u2014 Live Search's $25/1k-sources card died with search_parameters, 410 since 2026-07-18). Gemini absent: google_search grounding is never wired into serving turns (can't coexist with function tools). Fireworks/cheap lane absent: no native search.",
"defaults": {
"window": 200000,
"price_in": 3,
"price_out": 15,
"_note": "unknown ids: a safe non-alarming window baseline + the sonnet rate card"
},
"_selection_note": "default_model SEEDS the pin exactly once, when no session/workspace/user pin exists; it is then persisted and behaves like any other user choice. It is NOT a fallback, NOT consulted per turn, and NOT a substitution target. utility_model serves internal plumbing only (classify/authorize, compact, shrinkwrap) and may never select, substitute, escalate, downgrade, or steer the pinned model.",
"default_model": "sonnet",
"utility_model": "gpt-oss-120b",
"_utility_models_note": "Per-vendor utility model used INSTEAD of utility_model when the session's pinned model is served by an attached SUBSCRIPTION lane of that vendor (e.g. a Claude Pro/Max login). Keeps background plumbing on the subscription the user chose rather than leaking to the gateway's utility vendor. Add a vendor only once its small model is verified to serve on that vendor's subscription transport.",
"utility_models": {
"anthropic": "haiku"
}
}