@fish-under-sea/magpie-neartoken 0.3.0 → 0.4.1

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/index.mjs CHANGED
@@ -140,7 +140,7 @@ function kindOutput(kind) {
140
140
  * 「站点原文组名 + 倍率 + 模型」。每行带自己的 x-neartoken-group 头,请求
141
141
  * 按那一行走那一组——这就是"模型后面跟着它的分组"。
142
142
  */
143
- async function catalog(disabled = new Set()) {
143
+ async function catalog(disabledGroups = new Set(), disabledModels = new Set()) {
144
144
  const groupsOut = new Map()
145
145
  const env = await call('/api/pricing')
146
146
  const rows = Array.isArray(env?.data) ? env.data : []
@@ -151,7 +151,7 @@ async function catalog(disabled = new Set()) {
151
151
  const out = {}
152
152
  for (const row of rows) {
153
153
  const model = String(row?.model_name ?? '').trim()
154
- if (!model) continue
154
+ if (!model || disabledModels.has(model)) continue
155
155
  const kind = kindOf(row)
156
156
  const all = Array.isArray(row?.enable_groups) && row.enable_groups.length ? row.enable_groups : ['']
157
157
  // 先按「全部分组」计数(关掉的也算),模型广场要显示它有多少个模型
@@ -161,7 +161,7 @@ async function catalog(disabled = new Set()) {
161
161
  const had = groupsOut.get(g)
162
162
  groupsOut.set(g, { name: g, ratio: 0, models: (had?.models || 0) + 1, ref: '' })
163
163
  }
164
- const groups = all.filter((g) => !disabled.has(String(g ?? '').trim()))
164
+ const groups = all.filter((g) => !disabledGroups.has(String(g ?? '').trim()))
165
165
  if (!groups.length) continue
166
166
  for (const raw of groups) {
167
167
  const group = String(raw ?? '').trim()
@@ -285,21 +285,23 @@ async function stampLatest() {
285
285
  }
286
286
 
287
287
  export default async function neartoken(input, options) {
288
- // 页面写进来的开关:关掉的分组,它们的模型不再出现在 magpie 的列表里。
289
- // 走的是 magpie 的 plugin options(页面 magpie.options.set),不碰宿主代码。
290
- const disabled = (() => {
291
- const raw = options?.disabledGroups
292
- if (Array.isArray(raw)) return new Set(raw.filter((g) => typeof g === 'string'))
288
+ // 页面写进来的开关:关掉的分组,以及关掉的模型。
289
+ // 走 magpie 的 plugin options(页面 magpie.options.set),不碰宿主代码。
290
+ // 默认全选:options 里没有 disabledModels 时,一个都不关。
291
+ const asSet = (raw) => {
292
+ if (Array.isArray(raw)) return new Set(raw.filter((x) => typeof x === 'string'))
293
293
  if (typeof raw === 'string' && raw.trim()) {
294
294
  try {
295
295
  const parsed = JSON.parse(raw)
296
- return new Set(Array.isArray(parsed) ? parsed.filter((g) => typeof g === 'string') : [])
296
+ return new Set(Array.isArray(parsed) ? parsed.filter((x) => typeof x === 'string') : [])
297
297
  } catch {
298
298
  return new Set()
299
299
  }
300
300
  }
301
301
  return new Set()
302
- })()
302
+ }
303
+ const disabledGroups = asSet(options?.disabledGroups)
304
+ const disabledModels = asSet(options?.disabledModels)
303
305
  return {
304
306
  auth: {
305
307
  provider: PROVIDER_ID,
@@ -418,7 +420,7 @@ export default async function neartoken(input, options) {
418
420
  */
419
421
  async models() {
420
422
  await stampLatest()
421
- return catalog(disabled)
423
+ return catalog(disabledGroups, disabledModels)
422
424
  },
423
425
  },
424
426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fish-under-sea/magpie-neartoken",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "NearToken for magpie: a provider whose sign-in is the site's own device authorization, models listed per billing group with their multiplier, balance and vouchers on magpie's usage card, plus a page for spending and top-ups.",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "magpie": {
42
- "icon": "page/icon.png",
42
+ "icon": "page/star.png",
43
43
  "page": {
44
44
  "title": "NearToken",
45
45
  "titles": {
@@ -49,7 +49,7 @@
49
49
  "de": "NearToken"
50
50
  },
51
51
  "file": "page/index.html",
52
- "icon": "page/icon.svg"
52
+ "icon": "page/star.png"
53
53
  },
54
54
  "calls": [
55
55
  "neartoken:state",
package/page/app.js CHANGED
@@ -18,9 +18,9 @@
18
18
  const windows = new Map()
19
19
  /** 充值面:档位、渠道、当前选择。 */
20
20
  let topupInfo = null
21
- /** 插件自己的开关:关掉的分组(写进 magpie 的 plugin options,provider 插件按它过滤)。 */
21
+ /** 插件自己的开关:关掉的模型(写进 magpie 的 plugin options,provider 插件按它过滤)。 */
22
22
  let options = {}
23
- let disabledGroups = new Set()
23
+ let disabledModels = new Set()
24
24
  /** 当前视角:home / market / logs。 */
25
25
  let tab = 'home'
26
26
  /** 插件写下的分组快照(page/groups.js),页面加载脚本取到。 */
@@ -86,6 +86,8 @@
86
86
  let lastError = ''
87
87
  function showError(error) {
88
88
  const said = String(error && error.message ? error.message : error)
89
+ // options 写入限流由 saveDisabled 自己合并重试,不用挂到页脚
90
+ if (/once a second at most|sets its options/i.test(said)) return
89
91
  lastError = said
90
92
  // 宿主侧仍在建 key+URL 供应商时,会撞上 magpie 的内置订阅 id。
91
93
  // 这不是页面能修的,给一句能照做的指引。
@@ -118,13 +120,15 @@
118
120
  }
119
121
  try {
120
122
  await bridge.ready
121
- // 插件自己的开关(关掉的分组):写在这里,provider 插件按它过滤模型
123
+ // 插件自己的开关:关掉的模型。默认全选(options 里没有这个字段时一个都不关)
122
124
  try {
123
125
  options = (await bridge.options.get()) || {}
124
126
  } catch {
125
127
  options = {}
126
128
  }
127
- disabledGroups = new Set(Array.isArray(options.disabledGroups) ? options.disabledGroups : [])
129
+ const raw = options.disabledModels
130
+ disabledModels = Array.isArray(raw) ? new Set(raw)
131
+ : (typeof raw === 'string' && raw.trim() ? new Set((() => { try { return JSON.parse(raw) } catch { return [] } })()) : new Set())
128
132
  await load()
129
133
  clock = setInterval(tick, 1000)
130
134
  bridge.onVisibility((visible) => {
@@ -192,7 +196,8 @@
192
196
  frag.append(tabsBar())
193
197
  if (tab === 'market') frag.append(marketCard())
194
198
  else if (tab === 'logs') frag.append(logsCard())
195
- else frag.append(accountCard(), boardCard(), groupsCard(), topupCard(), providerCard())
199
+ else frag.append(el('div', { class: 'home-grid' },
200
+ accountCard(), boardCard(), topupCard(), providerCard()))
196
201
  } else {
197
202
  setStatus('未连接')
198
203
  frag.append(connectCard())
@@ -202,6 +207,17 @@
202
207
  if (pendingAct) frag.append(el('p', { class: 'note', text: '正在处理:' + pendingAct }))
203
208
  body.replaceChildren(frag)
204
209
  if (view.pending) paintCountdown()
210
+ // 首页四张卡等高:以账户卡为基准锁死高度,多出来的内容在卡片内滚动
211
+ if (tab === 'home' && view.configured) equalizeHome()
212
+ }
213
+
214
+ /** equalizeHome 量第一张卡(账户)的高度,锁到同组所有卡上。 */
215
+ function equalizeHome() {
216
+ const cards = document.querySelectorAll('.home-grid > .card')
217
+ if (cards.length < 2) return
218
+ const h = Math.round(cards[0].getBoundingClientRect().height)
219
+ if (!h) return
220
+ cards.forEach((c) => { c.style.height = h + 'px' })
205
221
  }
206
222
 
207
223
  /** tabsBar 是三个视角:原本界面、模型广场、使用日志。 */
@@ -429,6 +445,10 @@
429
445
  let marketMode = 'standard'
430
446
  let marketSort = 'default'
431
447
  let marketLayout = 'grid'
448
+ let logQuery = ''
449
+ let logGroup = ''
450
+ let logKind = 'all'
451
+ let logExpanded = false
432
452
  const marketVendors = new Set()
433
453
  const MARKET_KINDS = [['all', '全部'], ['chat', '对话'], ['image', '生图'], ['video', '视频'], ['audio', '语音'], ['embedding', '向量']]
434
454
 
@@ -454,21 +474,58 @@
454
474
  return v ? v.name : '其他'
455
475
  }
456
476
 
457
- /** groupBadge 把 [低价][满血] Claude 原生 拆成站点那种彩色小标签。 */
477
+ /** 第一级:模型功能。第二级:价格与品质(低价 / 满血 / 备用 / 官Key …)。 */
478
+ const FUNC_TAGS = [
479
+ ['生图', /生图|图片|image|GPT Image|Gemini.*Image/i],
480
+ ['视频', /视频|video|Veo|Seedance|Suno|即梦/i],
481
+ ['语音', /语音|TTS|ASR|转文字|合成/i],
482
+ ['向量', /向量|embedding|embed/i],
483
+ ['对话', /.*/],
484
+ ]
485
+ const PRICE_TAGS = ['低价', '满血', '促销', '备用', '官Key', '官key', '国模', '自有', '反重力', '神秘折扣', 'CC', 'Kiro', '灵车', 'Argon', 'GPT Pro', 'Claude', 'DeepSeek', 'GLM', 'Gemini', 'Kimi', 'GPT', 'Suno', 'AIS']
486
+
487
+ /** 第二级里的首标签次序:满血 > 官Key > 低价 > 其他。满血排在低价前面。 */
488
+ const LEAD_ORDER = ['满血', '官Key', '官key', '低价', '促销', '备用', '国模', '自有', '反重力', '神秘折扣']
489
+ const leadRank = (w) => {
490
+ const i = LEAD_ORDER.findIndex((k) => w.toLowerCase().includes(k.toLowerCase()))
491
+ return i === -1 ? 99 : i
492
+ }
493
+
494
+ /** groupTags 把 [低价][满血] GPT Pro 2 拆成功能 / 价格 / 余下文字,供排序与重绘。 */
495
+ function groupTags(name) {
496
+ const raw = String(name || '')
497
+ const parts = (raw.match(/\[[^\]]+\]/g) || []).map((p) => p.slice(1, -1))
498
+ const rest = raw.replace(/\[[^\]]+\]/g, '').trim()
499
+ const all = parts.concat(rest ? [rest] : []).join(' ')
500
+ let func = '对话'
501
+ for (const [label, re] of FUNC_TAGS) { if (re.test(all)) { func = label; break } }
502
+ // 官Key / 官key 走官方通道,自动补一个「满血」标签
503
+ const official = /官Key|官key/i.test(all)
504
+ let price = parts.filter((p) => PRICE_TAGS.some((k) => p.toLowerCase().includes(k.toLowerCase())))
505
+ if (official && !price.some((p) => p.includes('满血'))) price = ['满血'].concat(price)
506
+ price.sort((a, b) => leadRank(a) - leadRank(b))
507
+ return { func, price, rest, lead: price[0] || '' }
508
+ }
509
+
510
+ /** groupBadge 按「功能 → 价格」两级重绘;首标签单独加 .lead 作视觉区分。 */
458
511
  function groupBadge(name) {
459
- const parts = String(name || '').match(/\[[^\]]+\]/g) || []
460
- const rest = String(name || '').replace(/\[[^\]]+\]/g, '').trim()
461
- const words = parts.map((p) => p.slice(1, -1))
512
+ const t = groupTags(name)
513
+ const tone = { '生图': 'pink', '视频': 'blue', '语音': 'purple', '向量': 'teal', '对话': 'plain' }
462
514
  const colorOf = (w) => {
463
- if (/低价|反重力|神秘|自有|国模/i.test(w)) return 'green'
464
515
  if (/满血|原生|特惠/i.test(w)) return 'red'
516
+ if (/低价|反重力|神秘|自有|国模/i.test(w)) return 'green'
465
517
  if (/促销|生图|Kiro|灵车/i.test(w)) return 'pink'
466
518
  if (/备用|官Key|官key|CC|Argon|GPT Pro|视频|向量/i.test(w)) return 'blue'
467
519
  return 'plain'
468
520
  }
469
521
  return el('span', { class: 'gb' },
470
- words.map((w) => el('span', { class: 'gb-tag ' + colorOf(w), text: w })),
471
- rest ? el('span', { class: 'gb-rest', text: rest }) : null)
522
+ // 功能标签只在非对话类显示;对话是默认,不重复挂
523
+ t.func === '对话' ? null : el('span', { class: 'gb-tag lvl1 ' + (tone[t.func] || 'plain'), text: t.func }),
524
+ t.price.map((w, i) => el('span', {
525
+ class: 'gb-tag lvl2 ' + colorOf(w) + (i === 0 ? ' lead' : ''),
526
+ text: w,
527
+ })),
528
+ t.rest ? el('span', { class: 'gb-rest', text: t.rest }) : null)
472
529
  }
473
530
 
474
531
  /**
@@ -503,7 +560,7 @@
503
560
  return '¥' + s
504
561
  }
505
562
 
506
- /** modelCard 是站点那张卡:厂商、描述、计费、三档价格、分组、端点、状态、详情。 */
563
+ /** modelCard:点击整张卡切换启用;高亮就是启用,只有启用的进 magpie 模型清单。 */
507
564
  function modelCard(m) {
508
565
  const p = priceOf(m)
509
566
  const ends = (m?.supported_endpoint_types || []).join(', ')
@@ -511,6 +568,7 @@
511
568
  const shownGroups = groups.slice(0, 2)
512
569
  const more = groups.length - shownGroups.length
513
570
  const kind = marketKindOf(m)
571
+ const on = !disabledModels.has(m.name)
514
572
  const priceRow = p.perCall !== undefined
515
573
  ? el('div', { class: 'mc-prices one' },
516
574
  el('div', null, el('span', { text: '按次计费' }), el('b', { text: money(p.perCall, 'M') + ' / ' + p.perLabel })))
@@ -521,13 +579,22 @@
521
579
  const hasStatus = m.status !== undefined && m.status !== null
522
580
  const bars = el('span', { class: 'mc-bar' }, Array.from({ length: 10 }, (_, i) =>
523
581
  el('i', { class: hasStatus ? (i < Math.round((Number(m.status) || 0) / 10) ? 'ok' : 'bad') : '' })))
524
- return el('article', { class: 'mc' + (kind !== 'chat' ? ' mc-' + kind : '') },
582
+ return el('article', {
583
+ class: 'mc' + (kind !== 'chat' ? ' mc-' + kind : '') + (on ? ' on' : ' off'),
584
+ 'aria-pressed': String(on),
585
+ title: on ? '已启用 · 点一下停用' : '已停用 · 点一下启用',
586
+ onclick: () => toggleModel(m.name),
587
+ },
525
588
  el('div', { class: 'mc-head' },
526
589
  el('span', { class: 'mc-vicon', text: vendorOf(m.vendor_id).slice(0, 1) }),
527
590
  el('div', { class: 'grow' },
528
591
  el('div', { class: 'mc-name', text: m.name }),
529
592
  el('div', { class: 'mc-vendor', text: vendorOf(m.vendor_id) })),
530
- el('button', { class: 'mc-copy', title: '复制模型 ID', onclick: () => copy(m.name) }, '⧉')),
593
+ el('span', { class: 'mc-flag', text: on ? '✓ 已启用' : '○ 未启用' }),
594
+ el('button', {
595
+ class: 'mc-copy', title: '复制模型 ID',
596
+ onclick: (e) => { e.stopPropagation(); copy(m.name) },
597
+ }, '⧉')),
531
598
  el('p', { class: 'mc-desc', text: m.description || '暂无描述。' }),
532
599
  el('div', { class: 'mc-billing ' + (p.tiered ? 'dyn' : 'flat'), text: p.tiered ? '动态计费' : '按量计费' }),
533
600
  priceRow,
@@ -592,7 +659,14 @@
592
659
  /** marketCard 是广场整页:顶部工具条 + 左筛选 + 右卡片网格。 */
593
660
  function marketCard() {
594
661
  const p = pricing()
595
- const groups = Object.keys(p?.groups || {}).sort((a, b) => (p.groups[a] - p.groups[b]) || a.localeCompare(b, 'zh'))
662
+ // 先按功能分栏,栏内按首标签(满血 → 官Key → 低价 → …)再按倍率排
663
+ const FUNC_ORDER = ['对话', '生图', '视频', '语音', '向量']
664
+ const rankOf = (g) => {
665
+ const t = groupTags(g)
666
+ return (FUNC_ORDER.indexOf(t.func) === -1 ? 99 : FUNC_ORDER.indexOf(t.func)) * 1000
667
+ + leadRank(t.lead) * 10 + (Number(p.groups[g]) || 0)
668
+ }
669
+ const groups = Object.keys(p?.groups || {}).sort((a, b) => rankOf(a) - rankOf(b) || a.localeCompare(b, 'zh'))
596
670
  const vendors = (p?.vendors || []).slice().sort((a, b) => String(a.name).localeCompare(String(b.name), 'zh'))
597
671
  const search = el('input', {
598
672
  class: 'market-search', type: 'search', placeholder: '搜索模型名称、供应商、端点或标签...',
@@ -603,33 +677,46 @@
603
677
  items.map(([k, label]) => el('button', {
604
678
  'aria-pressed': String(cur === k), onclick: () => { onPick(k); render() },
605
679
  }, label)))
680
+ const total = p?.models?.length || 0
681
+ const allOn = disabledModels.size === 0
682
+ const allOff = total > 0 && disabledModels.size >= total
606
683
  const tools = el('div', { class: 'market-tools' },
684
+ el('div', { class: 'market-seg' },
685
+ el('button', {
686
+ 'aria-pressed': String(allOn), class: allOn ? 'on' : '',
687
+ title: '启用全部模型', onclick: () => setAll(true),
688
+ }, '全选'),
689
+ el('button', {
690
+ 'aria-pressed': String(allOff), class: allOff ? 'on' : '',
691
+ title: '停用全部模型', onclick: () => setAll(false),
692
+ }, '全不选')),
607
693
  seg([['standard', '标准'], ['topup', '充值']], marketMode, (k) => { marketMode = k }),
608
694
  seg([['M', '/1M'], ['K', '/1K']], marketUnit, (k) => { marketUnit = k }),
609
695
  el('button', { class: 'market-tool' + (marketSort === 'latest' ? ' on' : ''), onclick: () => { marketSort = marketSort === 'latest' ? 'default' : 'latest'; refreshMarketList() } }, '↑ 最新版本'),
610
696
  el('div', { class: 'market-seg' },
611
697
  el('button', { 'aria-pressed': String(marketLayout === 'grid'), title: '网格', onclick: () => { marketLayout = 'grid'; refreshMarketList() } }, '▦'),
612
698
  el('button', { 'aria-pressed': String(marketLayout === 'list'), title: '列表', onclick: () => { marketLayout = 'list'; refreshMarketList() } }, '☰')))
699
+ // 分组按两级排:先功能(生图/视频/语音/向量/对话),再价格倍率
700
+ const byFunc = new Map()
701
+ for (const g of groups) {
702
+ const f = groupTags(g).func
703
+ if (!byFunc.has(f)) byFunc.set(f, [])
704
+ byFunc.get(f).push(g)
705
+ }
613
706
  const groupChips = el('div', { class: 'market-chips' },
614
707
  el('button', {
615
708
  class: 'market-chip' + (!marketGroup ? ' on' : ''), onclick: () => { marketGroup = ''; render() },
616
709
  }, '所有分组'),
617
- groups.map((g) => {
618
- const ratio = Number(p.groups[g]) || 0
619
- const on = !disabledGroups.has(g)
620
- return el('div', { class: 'market-chip-wrap' + (marketGroup === g ? ' on' : '') },
621
- el('button', {
622
- class: 'market-chip',
710
+ FUNC_ORDER.filter((f) => byFunc.has(f)).map((f) => el('div', { class: 'chip-group' },
711
+ el('div', { class: 'chip-group-name', text: f }),
712
+ el('div', { class: 'market-chips' }, byFunc.get(f).map((g) => {
713
+ const ratio = Number(p.groups[g]) || 0
714
+ return el('button', {
715
+ class: 'market-chip' + (marketGroup === g ? ' on' : ''),
623
716
  title: '按这个分组筛选',
624
717
  onclick: () => { marketGroup = marketGroup === g ? '' : g; render() },
625
- }, groupBadge(g), ratio > 0 ? el('span', { class: 'ratio', text: 'x' + ratioText(ratio) }) : null),
626
- el('button', {
627
- class: 'chip-toggle' + (on ? ' on' : ''),
628
- 'aria-pressed': String(on),
629
- title: on ? '禁用这个分组(模型不再进 magpie)' : '启用这个分组',
630
- onclick: () => toggleGroup(g),
631
- }, on ? '●' : '○'))
632
- }))
718
+ }, groupBadge(g), ratio > 0 ? el('span', { class: 'ratio', text: 'x' + ratioText(ratio) }) : null)
719
+ })))))
633
720
  const kinds = el('div', { class: 'market-chips' },
634
721
  MARKET_KINDS.map(([k, label]) => el('button', {
635
722
  class: 'market-chip' + (marketKind === k ? ' on' : ''),
@@ -653,14 +740,15 @@
653
740
  el('h4', { text: '分组' }), groupChips,
654
741
  el('h4', { text: '类型' }), kinds,
655
742
  el('h4', { text: '供应商' }), vendorChips)
656
- const off = disabledGroups.size
743
+ const off = disabledModels.size
657
744
  const body = el('div', { class: 'market-body' },
658
745
  aside,
659
746
  el('div', { class: 'market-main' },
660
747
  el('div', { class: 'market-count', id: 'market-count', text: (p?.models?.length || 0) + ' 个模型' }),
661
748
  el('div', { class: 'model-grid', id: 'market-list' }),
662
- off ? el('p', { class: 'note', text: '已禁用 ' + off + ' 个分组,点分组右侧的小圆点可启用。' })
663
- : el('p', { class: 'note', text: '点分组名按它筛选;点右侧小圆点禁用/启用分组,被禁用的模型不再进 magpie。' })))
749
+ el('p', { class: 'note', text: off
750
+ ? '已停用 ' + off + ' 个模型:它们不会进 magpie 的模型清单。点卡片可重新启用,或按「全选」。'
751
+ : '默认全选。点卡片切换启用状态,高亮 = 已启用;只有启用的模型才进 magpie 的模型清单。' })))
664
752
  const wrap = el('section', { class: 'market' },
665
753
  el('div', { class: 'market-top' }, search, tools),
666
754
  body)
@@ -669,7 +757,7 @@
669
757
  return wrap
670
758
  }
671
759
 
672
- /** 使用日志:这个窗口里每个模型花了多少、用了多少 token。 */
760
+ /** 使用日志:仿站点日志页——筛选条 + 统计条 + 全宽明细表。 */
673
761
  function logsCard() {
674
762
  const data = windows.get(span)
675
763
  const seg = el('div', { class: 'seg' },
@@ -678,76 +766,125 @@
678
766
  key === 'day' ? '日' : key === 'week' ? '周' : '月')))
679
767
  const head = el('div', { class: 'row' },
680
768
  el('h2', { class: 'grow', text: '使用日志', style: 'margin:0' }), seg)
681
- if (!data) return card(null, head, el('p', { class: 'note', text: '正在读取用量…' }))
769
+ if (!data) return el('section', { class: 'logs' }, card(null, head, el('p', { class: 'note', text: '正在读取用量…' })))
682
770
  if (!data.available) {
683
- return card(null, head, el('p', { class: 'note warn', text: data.reason === 'unreachable'
684
- ? '暂时读不到站点的用量数据。' : '站点未提供用量统计。' }))
771
+ return el('section', { class: 'logs' }, card(null, head,
772
+ el('p', { class: 'note warn', text: data.reason === 'unreachable'
773
+ ? '暂时读不到站点的用量数据。' : '站点未提供用量统计。' })))
685
774
  }
686
- const rows = (data.models || []).slice().sort((a, b) => b.tokens - a.tokens)
687
- const total = rows.reduce((sum, m) => sum + m.tokens, 0) || 1
688
- const table = el('div', { class: 'log-table' },
689
- el('div', { class: 'log-row head' },
690
- el('span', { text: '模型' }), el('span', { text: 'Token' }), el('span', { text: '花费' }), el('span', { text: '占比' })),
691
- rows.map((m) => el('div', { class: 'log-row' },
775
+ const all = (data.models || []).slice().sort((a, b) => b.tokens - a.tokens)
776
+ const total = all.reduce((sum, m) => sum + m.tokens, 0) || 1
777
+ const q = logQuery.trim().toLowerCase()
778
+ let rows = q ? all.filter((m) => String(m.model).toLowerCase().includes(q)) : all
779
+ if (logKind !== 'all') rows = rows.filter((m) => {
780
+ const snap = (pricing()?.models || []).find((x) => x.name === m.model)
781
+ return snap ? marketKindOf(snap) === logKind : logKind === 'chat'
782
+ })
783
+ if (logGroup) rows = rows.filter((m) => {
784
+ const snap = (pricing()?.models || []).find((x) => x.name === m.model)
785
+ return snap && (snap.enable_groups || []).includes(logGroup)
786
+ })
787
+ const groups = Object.keys(pricing()?.groups || {}).sort((a, b) => a.localeCompare(b, 'zh'))
788
+ const rangeText = span === 'day' ? '今日' : span === 'week' ? '本周' : '本月'
789
+ const toolbar = el('div', { class: 'logs-toolbar' },
790
+ el('div', { class: 'lt-field grow' }, el('span', { class: 'lt-ico', text: '▦' }),
791
+ el('span', { class: 'lt-range', text: rangeText + ' · 00:00 ~ 现在' })),
792
+ el('input', {
793
+ class: 'lt-input', type: 'search', placeholder: '模型名称', value: logQuery,
794
+ oninput: (e) => { logQuery = e.target.value; render() },
795
+ }),
796
+ el('select', { class: 'lt-select', onchange: (e) => { logGroup = e.target.value; render() } },
797
+ el('option', { value: '', text: '分组' }),
798
+ groups.map((g) => el('option', { value: g, text: g, selected: logGroup === g }))),
799
+ el('select', { class: 'lt-select', onchange: (e) => { logKind = e.target.value; render() } },
800
+ el('option', { value: 'all', text: '所有类型' }),
801
+ MARKET_KINDS.slice(1).map(([k, label]) => el('option', { value: k, text: label, selected: logKind === k }))),
802
+ el('button', { class: 'lt-btn', onclick: () => { logExpanded = !logExpanded; render() } }, logExpanded ? '收起 ▴' : '展开 ▾'))
803
+ const statbar = el('div', { class: 'logs-statbar' },
804
+ el('div', { class: 'ls-chips' },
805
+ el('span', { class: 'ls-chip' }, el('i', { class: 'ls-dot blue' }), '用量 ', el('b', { text: data.spent || '—' })),
806
+ el('span', { class: 'ls-chip' }, el('i', { class: 'ls-dot red' }), 'RPM ', el('b', { text: '0' })),
807
+ el('span', { class: 'ls-chip' }, el('i', { class: 'ls-dot blue' }), 'TPM ', el('b', { text: compact(data.tokens || 0) }))),
808
+ el('div', { class: 'ls-actions' },
809
+ el('button', { class: 'lt-btn', title: '10 秒刷新', onclick: () => { load().catch(() => {}) } }, '↻ 10s'),
810
+ el('button', { class: 'lt-btn', onclick: () => { logQuery = ''; logGroup = ''; logKind = 'all'; render() } }, '重置'),
811
+ el('button', { class: 'lt-btn primary', onclick: () => render() }, '搜索'),
812
+ el('button', { class: 'lt-btn', onclick: () => showError('逐条导出需要宿主提供日志端点。') }, '导出')))
813
+ const cols = ['时间', '令牌', '模型', '流', 'Token', '请求体大小', '费用', '耗时', '详情']
814
+ const table = el('div', { class: 'logs-table' },
815
+ el('div', { class: 'lt-row head' }, cols.map((c) => el('span', { text: c }))),
816
+ rows.length ? rows.map((m) => el('div', { class: 'lt-row' },
817
+ el('span', { text: rangeText }),
818
+ el('span', { text: view.tokenName || '—' }),
692
819
  el('span', { class: 'who', title: m.model, text: m.model }),
820
+ el('span', { text: '—' }),
693
821
  el('span', { class: 'num', text: compact(m.tokens) }),
694
- el('span', { class: 'num', text: m.costText || '' }),
695
- el('span', { class: 'num', text: Math.round((m.tokens / total) * 100) + '%' }))))
696
- return card(null, head,
697
- el('div', { class: 'stats' },
698
- el('div', { class: 'stat' }, el('div', { class: 'k', text: '消耗' }), el('div', { class: 'v', text: data.spent })),
699
- el('div', { class: 'stat' }, el('div', { class: 'k', text: '当前余额' }), el('div', { class: 'v', text: data.balance || '—' })),
700
- el('div', { class: 'stat' }, el('div', { class: 'k', text: 'Token' }), el('div', { class: 'v', text: compact(data.tokens) }))),
701
- table,
702
- el('p', { class: 'note', text: '数字来自站点用量端点;这个窗口里没有调用就不列模型。' }))
822
+ el('span', { text: '—' }),
823
+ el('span', { class: 'num', text: m.costText || '—' }),
824
+ el('span', { text: '—' }),
825
+ el('span', { class: 'num', text: Math.round((m.tokens / total) * 100) + '%' })))
826
+ : el('div', { class: 'lt-empty', text: '这个筛选下没有记录。' }))
827
+ // 分布不再是下面的一张卡:折进「展开」,默认不占版面
828
+ const dist = logExpanded ? el('div', { class: 'logs-dist' },
829
+ rows.slice(0, 8).map((m, i) => el('div', { class: 'dist-row' },
830
+ el('div', { class: 'dist-name', title: m.model, text: m.model }),
831
+ el('div', { class: 'dist-track' },
832
+ el('i', { style: 'width:' + Math.max(2, Math.round((m.tokens / total) * 100)) + '%;background:' + ['#5b8def', '#43b8a4', '#9b7ce0', '#54b26a', '#e0a44a', '#d47a9a', '#6fa8d6', '#c08bd0'][i % 8] })),
833
+ el('div', { class: 'dist-val', text: compact(m.tokens) + ' · ' + Math.round((m.tokens / total) * 100) + '%' })))) : null
834
+ return el('section', { class: 'logs' },
835
+ el('div', { class: 'logs-head' }, head),
836
+ toolbar, statbar, dist,
837
+ el('div', { class: 'logs-table-wrap' }, table),
838
+ el('p', { class: 'note', text: '数字来自站点用量端点,按模型汇总;站点未提供逐条流水,故「流 / 请求体大小 / 耗时」留空。' }))
703
839
  }
704
- /** 分组墙:站点原文组名 + 倍率 + 模型数,点一下启停(写进插件 options)。 */
705
- function groupsCard() {
706
- const list = Array.isArray(view.groupList) ? view.groupList : null
707
- const head = el('div', { class: 'row' },
708
- el('h2', { class: 'grow', text: '分组', style: 'margin:0' }),
709
- el('a', { class: 'link', href: 'https://neartoken.cc/pricing', target: '_blank', rel: 'noreferrer' }, '站点广场 ↗'))
710
- if (!list || !list.length) {
711
- return card(null, head,
712
- el('p', { class: 'note' },
713
- '宿主还没把分组明细交给页面。开关已经接好(写进 magpie 的 plugin options,provider 插件按它滤模型),',
714
- '宿主一回 groupList,这里就是一墙可点的分组。先去 ',
715
- el('a', { class: 'link', href: 'https://neartoken.cc/pricing', target: '_blank', rel: 'noreferrer' }, '站点广场'),
716
- ' 看分组与倍率。'))
717
- }
718
- const chips = list.map((g) => {
719
- const name = String(g?.name ?? '')
720
- const on = !disabledGroups.has(name)
721
- const ratio = Number(g?.ratio) || 0
722
- const label = ratio > 0 ? name + ' ' + ratioText(ratio) + 'x' : name
723
- return el('button', {
724
- class: 'group-chip',
725
- 'aria-pressed': String(on),
726
- title: g?.models ? g.models + ' 个模型' : '',
727
- onclick: () => toggleGroup(name),
728
- }, label, el('span', { class: 'n', text: String(g?.models || 0) }))
729
- })
730
- const off = disabledGroups.size
731
- return card(null, head,
732
- el('div', { class: 'groups' }, chips),
733
- el('p', { class: 'note', text: off
734
- ? '已关掉 ' + off + ' 个分组:它们的模型不再出现在 magpie 的模型列表里。'
735
- : '全部开着。点一下关掉一组,它的模型就不再出现在 magpie 的模型列表里。' }))
840
+ /** toggleModel 翻转一个模型的启用状态,并写回 plugin options。 */
841
+ async function toggleModel(name) {
842
+ if (!name) return
843
+ if (disabledModels.has(name)) disabledModels.delete(name)
844
+ else disabledModels.add(name)
845
+ refreshMarketList()
846
+ await saveDisabled()
736
847
  }
737
848
 
738
- /** toggleGroup 翻转一个分组,并写回插件 options(provider 插件按它过滤)。 */
739
- async function toggleGroup(name) {
740
- if (!name) return
741
- if (disabledGroups.has(name)) disabledGroups.delete(name)
742
- else disabledGroups.add(name)
849
+ /** setAll 全选 / 全不选:双状态按钮都走这里。 */
850
+ async function setAll(enable) {
851
+ const p = pricing()
852
+ if (!p) return
853
+ if (enable) disabledModels.clear()
854
+ else p.models.forEach((m) => disabledModels.add(m.name))
743
855
  render()
856
+ await saveDisabled()
857
+ }
858
+
859
+ /**
860
+ * saveDisabled 把「关掉的模型」写进 plugin options,provider 插件按它过滤清单。
861
+ *
862
+ * magpie 限制页面每秒最多写一次 options,连点卡片会被拒("a page sets its
863
+ * options once a second at most")。所以这里合并写入:1.1 秒内的多次改动只发
864
+ * 最后一次,正在发送时再排队补一次;限流错误不往页脚挂。
865
+ */
866
+ let saveTimer = null
867
+ let sending = false
868
+ let sendAgain = false
869
+ async function flushDisabled() {
870
+ if (sending) { sendAgain = true; return }
871
+ sending = true
744
872
  try {
745
- const next = await bridge.options.set({ ...options, disabledGroups: [...disabledGroups] })
873
+ const next = await bridge.options.set({ ...options, disabledModels: [...disabledModels] })
746
874
  if (next && typeof next === 'object') options = next
747
- } catch (error) {
748
- showError(error)
875
+ lastError = ''
876
+ } catch {
877
+ // 写失败时保留本地状态,下一拍重试;不把限流提示挂到页脚
878
+ sendAgain = true
879
+ } finally {
880
+ sending = false
881
+ if (sendAgain) { sendAgain = false; setTimeout(flushDisabled, 1100) }
749
882
  }
750
883
  }
884
+ function saveDisabled() {
885
+ if (saveTimer) clearTimeout(saveTimer)
886
+ saveTimer = setTimeout(() => { saveTimer = null; flushDisabled() }, 1150)
887
+ }
751
888
 
752
889
  /** ratioText 是倍率的写法:0.1 → 0.1,1 → 1。 */
753
890
  function ratioText(v) {
package/page/groups.js CHANGED
@@ -1,2 +1,2 @@
1
- self.NEARTOKEN_GROUPS = [{"name":"[低价] 灵车 K3.1 Pro 专用","ratio":0.3,"models":1,"ref":"#49"},{"name":"[低价] 神秘折扣模型","ratio":0.12,"models":7,"ref":"#24"},{"name":"[低价] 视频分组","ratio":1.5,"models":3,"ref":"#31"},{"name":"[低价] 语音合成 TTS","ratio":0.3,"models":5,"ref":"#35"},{"name":"[低价] 语音转文字 ASR","ratio":1,"models":1,"ref":"#27"},{"name":"[低价] DeepSeek","ratio":0.4,"models":3,"ref":"#16"},{"name":"[低价] GPT 福利","ratio":0.2,"models":6,"ref":"#56"},{"name":"[低价] Grok","ratio":0.1,"models":13,"ref":"#37"},{"name":"[低价] Seedance","ratio":1,"models":2,"ref":"#19"},{"name":"[低价][备用] GPT Pro","ratio":0.3,"models":8,"ref":"#13"},{"name":"[低价][促销] GPT Image","ratio":0.5,"models":2,"ref":"#39"},{"name":"[低价][反重力] Gemini","ratio":0.5,"models":18,"ref":"#5"},{"name":"[低价][满血] 国模","ratio":0.6,"models":9,"ref":"#6"},{"name":"[低价][满血] Claude 特惠","ratio":1.1,"models":6,"ref":"#22"},{"name":"[低价][满血] Claude 原生","ratio":1.5,"models":6,"ref":"#61"},{"name":"[低价][满血] DeepSeek 1017","ratio":0.5,"models":2,"ref":"#38"},{"name":"[低价][满血] GPT Pro 2","ratio":0.26,"models":8,"ref":"#14"},{"name":"[低价][满血][自有] GLM 官方","ratio":0.25,"models":2,"ref":"#17"},{"name":"[低价][生图] 生图特惠","ratio":0.2,"models":14,"ref":"#9"},{"name":"[低价][Kiro] 高智企业 Claude","ratio":1,"models":6,"ref":"#42"},{"name":"[官key] GPT","ratio":0.9,"models":5,"ref":"#28"},{"name":"[满血] Argon 专用","ratio":1,"models":1,"ref":"#47"},{"name":"[满血] CC 不降智精选","ratio":1.8,"models":10,"ref":"#7"},{"name":"[满血] GPT 不降智精选","ratio":0.35,"models":8,"ref":"#2"},{"name":"[满血] GPT Pro 500 高速","ratio":0.5,"models":2,"ref":"#57"},{"name":"[满血] Kimi K3.1 Pro 专用","ratio":0.6,"models":1,"ref":"#48"},{"name":"[满血] Suno","ratio":1,"models":5,"ref":"#67"},{"name":"[满血][官Key] DeepSeek","ratio":0.8,"models":2,"ref":"#15"},{"name":"[满血][官Key] Gemini","ratio":2,"models":6,"ref":"#8"},{"name":"[生图] Gemini","ratio":1,"models":7,"ref":"#29"},{"name":"[生图] GPT Image","ratio":1,"models":2,"ref":"#4"},{"name":"[AIS] Gemini 向量模型","ratio":1,"models":3,"ref":"#34"}]
2
- self.NEARTOKEN_GROUPS_AT = 1793773919667
1
+ // 由插件在拉取目录时覆盖写入;这里只是占位,免得页面加载时报 404。
2
+ self.NEARTOKEN_GROUPS = self.NEARTOKEN_GROUPS || null
package/page/icon.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" color="#a2acbb" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
2
- <!-- 空心五角星:外五点、内五点交替,只描边不填充 -->
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#a2acbb" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round">
2
+ <!-- 空心五角星:只描边,不填充 -->
3
3
  <path d="M12 3 L14.12 9.09 L20.56 9.22 L15.42 13.11 L17.29 19.28 L12 15.6 L6.71 19.28 L8.58 13.11 L3.44 9.22 L9.88 9.09 Z"/>
4
4
  </svg>
package/page/latest.js CHANGED
@@ -1,2 +1,2 @@
1
- self.NEARTOKEN_LATEST = "0.2.5"
2
- self.NEARTOKEN_LATEST_AT = 1793773917619
1
+ // 由插件在拉取目录时覆盖写入;这里只是占位。
2
+ self.NEARTOKEN_LATEST = self.NEARTOKEN_LATEST || ''
package/page/market.css CHANGED
@@ -33,7 +33,9 @@
33
33
  }
34
34
  .market-tool.on { color: var(--nt-ink); border-color: var(--nt-accent); }
35
35
 
36
- .market-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
36
+ .market-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
37
+ .market { width: 100%; }
38
+ .model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
37
39
 
38
40
  .market-aside {
39
41
  position: sticky; top: 10px; max-height: calc(100vh - 130px); overflow-y: auto;
@@ -81,10 +83,25 @@
81
83
  .model-grid.as-list { grid-template-columns: 1fr; }
82
84
 
83
85
  .mc {
84
- display: flex; flex-direction: column; min-width: 0;
86
+ display: flex; flex-direction: column; min-width: 0; cursor: pointer;
85
87
  padding: 12px; border: 1px solid var(--nt-line); border-radius: 12px;
86
- background: rgba(255,255,255,.02);
88
+ background: rgba(255,255,255,.02); transition: border-color .12s, background .12s, opacity .12s;
87
89
  }
90
+ .mc:hover { border-color: var(--nt-accent); }
91
+ .mc.on { border-color: var(--nt-accent); background: var(--nt-accent-soft); }
92
+ .mc.off { opacity: .48; }
93
+ .mc.off:hover { opacity: .8; }
94
+ .mc-flag { flex: none; font-size: 9.5px; color: var(--nt-muted); white-space: nowrap; }
95
+ .mc.on .mc-flag { color: var(--nt-accent); font-weight: 600; }
96
+
97
+ /* 两级标签:功能在前(饱和色),价格/品质在后(柔和色) */
98
+ .gb-tag.lvl1 { font-weight: 700; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
99
+ .gb-tag.lvl2 { opacity: .82; }
100
+ .gb-tag.lead { font-weight: 700; opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.32); }
101
+ .gb-tag.purple { background: #7b52b8; }
102
+ .gb-tag.teal { background: #2f8f8a; }
103
+ .chip-group { width: 100%; margin: 2px 0 4px; }
104
+ .chip-group-name { font-size: 10px; color: var(--nt-faint); margin: 6px 0 3px; letter-spacing: .04em; }
88
105
  .mc-image { border-color: rgba(139,79,158,.5); }
89
106
  .mc-video { border-color: rgba(214,140,60,.5); }
90
107
  .mc-audio { border-color: rgba(63,111,168,.5); }
@@ -131,7 +148,63 @@
131
148
  .mc-bar i.bad { background: #d08a3c; }
132
149
  .mc-foot { margin-top: 8px; text-align: right; }
133
150
 
134
- @media (max-width: 620px) {
151
+ /* 使用日志:仿站点日志页,筛选条 + 统计条 + 全宽明细表 */
152
+ .logs { width: 100%; }
153
+ .logs-head > .row { padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }
154
+
155
+ .logs-toolbar {
156
+ display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
157
+ padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 8px;
158
+ background: rgba(255,255,255,.02);
159
+ }
160
+ .lt-field { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; height: 32px; padding: 0 10px;
161
+ border: 1px solid var(--nt-line); border-radius: 9px; color: var(--nt-ink); font-size: 11.5px; }
162
+ .lt-ico { color: var(--nt-muted); }
163
+ .lt-input { height: 32px; flex: 1 1 160px; min-width: 120px; padding: 0 10px;
164
+ border: 1px solid var(--nt-line); border-radius: 9px; background: rgba(0,0,0,.2);
165
+ color: var(--nt-ink); font-size: 11.5px; }
166
+ .lt-input::placeholder { color: var(--nt-faint); }
167
+ .lt-select { height: 32px; flex: 0 1 150px; padding: 0 8px;
168
+ border: 1px solid var(--nt-line); border-radius: 9px; background: #1c2027;
169
+ color: var(--nt-ink); font-size: 11.5px; }
170
+ .lt-btn { height: 32px; padding: 0 11px; border: 1px solid var(--nt-line); border-radius: 9px;
171
+ background: transparent; color: var(--nt-ink); font-size: 11.5px; white-space: nowrap; }
172
+ .lt-btn:hover { border-color: var(--nt-accent); }
173
+ .lt-btn.primary { background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; }
174
+
175
+ .logs-statbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
176
+ padding: 8px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }
177
+ .ls-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
178
+ .ls-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
179
+ border: 1px solid var(--nt-line); border-radius: 999px; font-size: 10.5px; color: var(--nt-muted); }
180
+ .ls-chip b { color: var(--nt-ink); font-family: var(--nt-code); font-variant-numeric: tabular-nums; }
181
+ .ls-dot { width: 2px; height: 12px; border-radius: 1px; display: inline-block; }
182
+ .ls-dot.blue { background: #5b8def; }
183
+ .ls-dot.red { background: #d05a6a; }
184
+ .ls-actions { display: flex; align-items: center; gap: 6px; }
185
+
186
+ .logs-table-wrap { width: 100%; border: 1px solid var(--nt-line); border-radius: 12px; overflow: hidden; }
187
+ .logs-table { width: 100%; }
188
+ .lt-row { display: grid; grid-template-columns: 90px 90px minmax(140px, 1.6fr) 70px 100px 110px 100px 80px 70px;
189
+ gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--nt-line); font-size: 11px; }
190
+ .lt-row:last-child { border-bottom: 0; }
191
+ .lt-row.head { color: var(--nt-muted); font-size: 10.5px; background: rgba(255,255,255,.02); }
192
+ .lt-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-ink); }
193
+ .lt-row .num { text-align: right; font-family: var(--nt-code); font-variant-numeric: tabular-nums; color: var(--nt-muted); }
194
+ .lt-row > span:not(.who):not(.num) { color: var(--nt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
195
+ .lt-empty { padding: 26px; text-align: center; color: var(--nt-muted); font-size: 11.5px; }
196
+
197
+ .logs-dist { padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }
198
+ .dist-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 8px; align-items: center; margin: 8px 0; font-size: 10.5px; }
199
+ .dist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-muted); }
200
+ .dist-track { height: 8px; background: rgba(255,255,255,.05); border-radius: 5px; overflow: hidden; }
201
+ .dist-track i { display: block; height: 100%; border-radius: 5px; }
202
+ .dist-val { text-align: right; font-family: var(--nt-code); color: var(--nt-muted); font-variant-numeric: tabular-nums; }
203
+ .logs > .note { margin: 8px 2px 0; }
204
+
205
+ @media (max-width: 900px) {
135
206
  .market-body { grid-template-columns: 1fr; }
136
207
  .market-aside { position: static; max-height: none; }
208
+ .lt-row { grid-template-columns: 80px minmax(120px, 1.5fr) 90px 90px 60px; }
209
+ .lt-row > span:nth-child(2), .lt-row > span:nth-child(4), .lt-row > span:nth-child(6), .lt-row > span:nth-child(8) { display: none; }
137
210
  }
package/page/pricing.js CHANGED
@@ -1,2 +1,2 @@
1
- // 由 .work/build-snapshot.mjs 从站点 /api/pricing 与 /pricing 生成;插件运行时覆盖
2
- self.NEARTOKEN_PRICING = {"at":1793776040751,"source":"https://neartoken.cc/api/pricing + /pricing","version":"a42d372ccf0b5dd13ecf71203521f9d2","models":[{"name":"omni","description":"统一视频生成模型,可根据模式、时长和分辨率自动选择合适的处理路径。","tags":"video,unified","vendor_id":3,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.066666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.066666666667)"},{"name":"gemini-3.6-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"gpt-6-luna","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[满血] GPT 不降智精选","[低价] GPT 福利","[官key] GPT"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":2,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 0.1 + cr * 0.01 + cc * 0.125 + c * 0.5) : tier(\"272k_plus\", p * 0.2 + cr * 0.02 + cc * 0.25 + c * 0.75)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6 Luna 是 GPT-6 家族中最轻量的一员:快速、经济,适合规模化。","status":98.82,"latency":"26.77s","throughput":"54.9t/s"},{"name":"sd2.0","description":"sd2.0 标准档视频生成。seedance 分组按秒计费:480p ¥0.8/秒、720p ¥1/秒;其余分辨率暂未开放。通过 resolution 选择分辨率,费用=对应每秒单价×duration 秒;默认 480p、5 秒,n=1。不支持的档位返回参数错误,不自动降级。支持文本生成,参考素材用 images/videos/audios 数组传入;可通过 /v1/images/upload 上传素材(单文件≤20 MiB)。POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。","tags":"video,per-second","vendor_id":11,"enable_groups":["[低价] Seedance"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.55,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"480P\" && u(\"size\") == \"720x1280\" ? tier(\"480P·720x1280\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1280x720\" ? tier(\"480P·1280x720\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1792x1024\" ? tier(\"480P·1792x1024\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1024x1792\" ? tier(\"480P·1024x1792\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"720P\" && u(\"size\") == \"720x1280\" ? tier(\"720P·720x1280\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1280x720\" ? tier(\"720P·1280x720\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1792x1024\" ? tier(\"720P·1792x1024\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1024x1792\" ? tier(\"720P·1024x1792\", u(\"seconds\") * 1) : u(\"resolution\") == \"768P\" && u(\"size\") == \"720x1280\" ? tier(\"768P·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1280x720\" ? tier(\"768P·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1792x1024\" ? tier(\"768P·1792x1024\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1024x1792\" ? tier(\"768P·1024x1792\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"720x1280\" ? tier(\"1080P·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1280x720\" ? tier(\"1080P·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1792x1024\" ? tier(\"1080P·1792x1024\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1024x1792\" ? tier(\"1080P·1024x1792\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"720x1280\" ? tier(\"2K·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"1280x720\" ? tier(\"2K·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"1792x1024\" ? tier(\"2K·1792x1024\", u(\"seconds\") * 999) : tier(\"2K·1024x1792\", u(\"seconds\") * 999)"},{"name":"kimi-k3.1-pro","description":"Kimi K3.1 Pro 是 Moonshot 对标 Opus 5.5 的强大模型","icon":"Kimi","vendor_id":7,"enable_groups":["[低价] 灵车 K3.1 Pro 专用","[满血] Kimi K3.1 Pro 专用"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", p * 13 + c * 68 + cr * 1.3 + cc * 13 + cc1h * 26)","context_window":1000000,"max_tokens":65535,"input_modalities":["text","image"],"reasoning_levels":["low","high","max"]},{"name":"gemini-3.1-flash-lite","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + cr * 0.025 + ai * 0.5 + c * 1.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"suno_stems_by_url","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":1.5435,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-low","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"claude-fable-5-1","vendor_id":2,"enable_groups":["[低价][满血] Claude 特惠","[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.025,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 10 + cr * 0.25 + cc * 12.5 + cc1h * 20 + c * 50)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Anthropic 旗舰 Claude 模型,1M Token 上下文,面向最艰难的长时间编码与知识工作。"},{"name":"gemini-3.8-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"codex-auto-review","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[满血] GPT 不降智精选"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.2,"create_cache_ratio":0.2,"quota_type":0,"context_window":1050000,"input_modalities":["text"]},{"name":"gemini-3-flash","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.7-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"flux-2-pro","description":"FLUX 2 Pro 图像生成模型,按生成图片张数计费。","icon":"Flux","vendor_id":15,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"sd2.5","description":"sd2.5 标准档视频生成。seedance 分组按秒计费:720p ¥1.2/秒;其他分辨率档位暂未开放。通过 resolution 选择分辨率,费用=对应每秒单价×duration 秒;默认 720p、5 秒,n=1。不支持的档位返回参数错误,不自动降级。支持文本生成,参考素材用 images/videos/audios 数组传入;可通过 /v1/images/upload 上传素材(单文件≤20 MiB)。POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。","tags":"video,per-second","vendor_id":11,"enable_groups":["[低价] Seedance"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.65,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 1.2)"},{"name":"claude-sonnet-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.2 + cc * 2.5 + cc1h * 4 + c * 10)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Claude 的均衡档位,适合边界清晰的日常工作:开发功能、修 bug、产出精修内容。"},{"name":"grok-4.5量","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"minimax-h3","description":"H3 视频生成,视频分组。resolution=720p:¥0.07/秒,费用为单价×duration;resolution=2K:¥2.50/条,4~15 秒同价。未传 resolution 默认 2K,未传 duration 默认 4 秒;专属价格以账户实际价格为准。支持 16:9、9:16,n=1;images 最多9张,audios最多3段且需同时传图片,不支持参考视频。使用 JSON 提交 POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。非法分辨率返回参数错误,不自动降级。","tags":"video,text-to-video,image-to-video,resolution-billing","icon":"Minimax","vendor_id":9,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":1.6666666666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"768P\" ? tier(\"768P\", u(\"seconds\") * 0.046666666667) : tier(\"2K\", 1.666666666667)"},{"name":"suno_sound","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.308,"completion_ratio":0,"quota_type":1},{"name":"nano-banana-2","description":"Nano Banana 2 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠","[生图] Gemini"],"supported_endpoint_types":["image-generation","openai","openai-response","gemini"],"model_ratio":0,"model_price":0.1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"gpt-6-sol","vendor_id":1,"enable_groups":["[低价] GPT 福利","[满血] GPT 不降智精选","[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":2,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.2 + cc * 2.5 + c * 10) : tier(\"272k_plus\", p * 4 + cr * 0.4 + cc * 5 + c * 15)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6 Sol 把 Astra 的能力带到更快、更便宜的模型上,适合规模化使用。"},{"name":"claude-opus-5-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 4 + cr * 0.2 + cc * 5 + cc1h * 8 + c * 20)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"旗舰级表现的 Claude,价格更低,面向智能体工程与长时间编码会话。","status":97.63,"latency":"26.47s","throughput":"72.9t/s"},{"name":"grok-4.6-low","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gpt-image-2.5-sunburst","description":"GPT Image 2.5 Sunburst 图像生成模型,按生成图片张数计费。","icon":"OpenAI","vendor_id":1,"enable_groups":["[生图] GPT Image","[低价][促销] GPT Image"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.15,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.15)) * image_count"},{"name":"claude-opus-4-7","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"]},{"name":"z-image-turbo","description":"Z-Image Turbo 高速图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"image_count\") * 0.2)"},{"name":"gemini-3.1-flash-tts-preview","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1 + c * 20)"},{"name":"gemini-3.5-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1.5 + cr * 0.15 + ai * 1.5 + c * 9)","context_window":200000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-fast","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gemini-3-pro-image","description":"Gemini 3 Pro Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + c * 120)"},{"name":"gemini-3.1-flash-image","description":"Gemini 3.1 Flash Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + c * 60)"},{"name":"gemini-3.1-flash-lite-image","description":"Gemini 3.1 Flash Lite Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + c * 30)"},{"name":"gpt-5.6-terra","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":8,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.2 + cc * 2.5 + c * 12) : tier(\"272k_plus\", p * 4 + cr * 0.4 + cc * 5 + c * 18)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-embedding-2","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.1,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.2 + ai * 6.5 + c * 0)"},{"name":"gemini-3.5-flash-lite","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.3 + cr * 0.03 + c * 2.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.7","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.5 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 1 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gpt-6.1-terra","vendor_id":1,"enable_groups":["[满血] GPT 不降智精选","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"context_window":922000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"暂无描述。","status":76.12,"latency":"14.22s","throughput":"98.3t/s"},{"name":"glm-5.3","vendor_id":6,"enable_groups":["[低价][满血][自有] GLM 官方","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 8 + cr * 2 + cc * 0 + c * 28)","context_window":1000000,"max_tokens":131072,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GLM-5.3,Z.ai 的智能体编码旗舰,1M 上下文并支持结构化工具调用。","status":100,"latency":"2.97s","throughput":"52.6t/s"},{"name":"suno_lyrics","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.175,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.1-pro","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":1,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.8-flash-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.08,"completion_ratio":0,"quota_type":1},{"name":"gpt-5.6-sol","vendor_id":1,"enable_groups":["[低价] GPT 福利","[满血] GPT 不降智精选","[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":8,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 4 + cr * 0.4 + cc * 5 + c * 20) : tier(\"272k_plus\", p * 8 + cr * 0.8 + cc * 10 + c * 30)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"hy3","vendor_id":10,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":4,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0 + cr * 0 + cc * 0 + c * 0)","context_window":256000,"max_tokens":128000,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"nano-banana-2.1","description":"Nano Banana 2.1 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["image-generation","gemini","openai"],"model_ratio":0,"model_price":0.12,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.12)) * image_count"},{"name":"minimax-m3","vendor_id":9,"enable_groups":["[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.09,"model_price":0,"completion_ratio":4,"cache_ratio":0.2,"create_cache_ratio":1,"quota_type":0,"context_window":512000,"max_tokens":128000,"input_modalities":["text","image"]},{"name":"claude-sonnet-4-6","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 3 + cr * 0.3 + cc * 3.75 + cc1h * 6 + c * 15)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["max"]},{"name":"gemini-2.5-pro","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.625,"model_price":0,"completion_ratio":8,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 1.25 + cr * 0.125 + c * 10) : tier(\"200k_plus\", p * 2.5 + cr * 0.25 + c * 15)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"]},{"name":"gemini-3.8-flash-high","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"claude-sonnet-4.6","vendor_id":2,"enable_groups":["[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"context_window":1000000,"input_modalities":["text","image"],"reasoning_levels":["minimal","max"]},{"name":"gemini-2.5-flash-preview-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.25,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + c * 10)"},{"name":"seedream-5.0-lite","description":"Seedream 5.0 Lite 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"qwen-image","description":"Qwen Image 图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"image_count\") * 0.25)"},{"name":"nano-banana-pro","description":"Nano Banana Pro 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠","[生图] Gemini"],"supported_endpoint_types":["image-generation","openai","openai-response","gemini"],"model_ratio":0,"model_price":0.05,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.05)) * image_count"},{"name":"z-image","description":"Z-Image 图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.3)) * image_count"},{"name":"glm-5.2","vendor_id":6,"enable_groups":["[低价] 神秘折扣模型","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1.4 + cr * 0.26 + cc * 0 + c * 4.4)","context_window":1000000,"max_tokens":131072,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.5-transcribe","vendor_id":3,"enable_groups":["[低价] 语音转文字 ASR"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0,"model_price":0.005,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-lite-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.08,"completion_ratio":0,"quota_type":1},{"name":"claude-haiku-4.5","vendor_id":2,"enable_groups":["[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"context_window":200000,"input_modalities":["text","image"],"reasoning_levels":["low","medium","high","max"]},{"name":"gemini-3.1-flash-lite-preview","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + cr * 0.025 + ai * 0.5 + c * 1.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-low","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"grok-4.6","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.5 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 1 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-4-8","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"]},{"name":"suno_music","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":1.5435,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"ideogram-v3","description":"Ideogram V3 图像生成模型,按生成图片张数计费。","icon":"Ideogram","vendor_id":17,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"gpt-image-2.5-flare","description":"GPT Image 2.5 Flare 图像生成模型,按生成图片张数计费。","icon":"OpenAI","vendor_id":1,"enable_groups":["[低价][生图] 生图特惠","[低价][促销] GPT Image","[生图] GPT Image"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.12,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.2)) * image_count"},{"name":"gemini-4-argon","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[满血] Argon 专用"],"supported_endpoint_types":["gemini","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.1 + ai * 2 + c * 10)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["low","medium","high"]},{"name":"gemini-2.5-pro-preview-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1 + c * 20)"},{"name":"mimo-v2.6-flash","vendor_id":12,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":2,"cache_ratio":0.02,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.14 + cr * 0.0028 + c * 0.28)","context_window":1048576,"max_tokens":131072,"input_modalities":["text","image"]},{"name":"qwen3.8-27b","vendor_id":8,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.5,"model_price":0,"completion_ratio":4,"cache_ratio":0.2,"quota_type":0,"context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","xhigh","max"],"description":"Claude Opus 5 旗舰,effort 参数可在思考深度与延迟、成本之间取舍。","status":0,"latency":"1.23s"},{"name":"claude-sonnet-5-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.1 + cc * 2.5 + cc1h * 4 + c * 10)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"Claude 的均衡档位,适合边界清晰的日常工作:开发功能、修 bug、产出精修内容。"},{"name":"seedream-4","description":"Seedream 4 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"claude-fable-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 10 + cr * 1 + cc * 12.5 + cc1h * 20 + c * 50)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Anthropic 旗舰 Claude 模型,1M Token 上下文,面向最艰难的长时间编码与知识工作。"},{"name":"gemini-3.6-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.7-flash","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.6-medium","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"glm-5.3-flash","vendor_id":6,"enable_groups":["[低价][满血][自有] GLM 官方","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.2875,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.8 + cr * 0.23 + cc * 0 + c * 2.8)","context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-4-6","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["max"]},{"name":"gemini-embedding-001","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.075,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.15 + c * 0)"},{"name":"grok-4.6-xhigh","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gemini-2.5-flash-image","description":"Gemini 2.5 Flash Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.04,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.3 + cr * 0.075 + c * 30)"},{"name":"deepseek-v4-pro","vendor_id":4,"enable_groups":["[满血][官Key] DeepSeek","[低价] DeepSeek","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"weekday(\"UTC\") >= 1 && weekday(\"UTC\") <= 5 && ((hour(\"UTC\") >= 1 && hour(\"UTC\") < 4) || (hour(\"UTC\") >= 6 && hour(\"UTC\") < 10)) ? tier(\"peak\", p * 1.32 + cr * 0.044 + c * 3.96) : tier(\"off_peak\", p * 0.66 + cr * 0.022 + c * 1.98)","context_window":1000000,"max_tokens":384000,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.8-flash-medium","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"gemini-embedding-2-preview","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.1,"model_price":0,"completion_ratio":4,"quota_type":0},{"name":"gpt-6-astra","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选","[满血] GPT Pro 500 高速","[官key] GPT"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 10 + cr * 1 + cc * 12.5 + c * 50) : tier(\"272k_plus\", p * 20 + cr * 2 + cc * 25 + c * 75)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"OpenAI 前沿 GPT-6 模型,擅长计算机操作、编码、科学、网络安全与长上下文检索。","status":99.05,"latency":"26.64s","throughput":"52.3t/s"},{"name":"jev-1.13","vendor_id":13,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.21,"model_price":0,"completion_ratio":1,"cache_ratio":1,"quota_type":0,"context_window":64000,"input_modalities":["text"]},{"name":"grok-4.5","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.3 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 0.6 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-medium","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"veo-3.1","description":"高质量视频生成模型,支持文生视频、图生视频和参考素材输入。","tags":"video,unified","vendor_id":3,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.066666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.066666666667)"},{"name":"qwen3.8-max","vendor_id":8,"enable_groups":["[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.25 + cc * 2.5 + c * 6)","context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"nano-banana-2-lite","description":"Nano Banana 2 Lite 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"kimi-k3","vendor_id":7,"enable_groups":["[低价] 神秘折扣模型","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":10,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 3 + cr * 0.3 + cc * 3 + c * 15)","context_window":1048576,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-high","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"grok-4.6-high","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"seedream-4-5","description":"Seedream 4.5 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"gpt-6.1-sol","vendor_id":1,"enable_groups":["[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选","[满血] GPT Pro 500 高速"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.1 + cc * 2.5 + c * 10) : tier(\"272k_plus\", p * 4 + cr * 0.2 + cc * 5 + c * 15)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6.1 Sol 在 Sol 基础上升级智能体编码与计算机操作,接近 Astra 水平。","status":97.42,"latency":"22.62s","throughput":"51.3t/s"},{"name":"deepseek-flash","description":"当前为 DeepSeek v4.1 Flash 模型,具体检查点看分组,官 Key 为 1017 检查点","icon":"DeepSeek.Color","vendor_id":4,"enable_groups":["[低价] 神秘折扣模型","[满血][官Key] DeepSeek","[低价] DeepSeek","[低价][满血] 国模","[低价][满血] DeepSeek 1017"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"weekday(\"UTC\") >= 1 && weekday(\"UTC\") <= 5 && ((hour(\"UTC\") >= 1 && hour(\"UTC\") < 4) || (hour(\"UTC\") >= 6 && hour(\"UTC\") < 10)) ? tier(\"peak\", p * 2 + cr * 0.04 + c * 8) : tier(\"off_peak\", p * 1 + cr * 0.02 + c * 4)","context_window":1000000,"max_tokens":384000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","max"]},{"name":"suno_timing","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.7718,"completion_ratio":0,"quota_type":1},{"name":"kimseek-r1","enable_groups":["[低价][满血] 国模","[低价][满血] DeepSeek 1017","[低价] DeepSeek"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0},{"name":"gemini-3-flash-preview","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + cr * 0.05 + ai * 1 + c * 3)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.1-pro-preview","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.2 + c * 12) : tier(\"200k_plus\", p * 4 + cr * 0.4 + c * 18)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-imagine-image-2.0","description":"Grok Imagine Image 2.0 图像生成模型,按生成图片张数计费。","icon":"XAI","vendor_id":5,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"grok-imagine-image","description":"Grok Imagine Image 图像生成模型,按生成图片张数计费。","icon":"XAI","vendor_id":5,"enable_groups":["[低价][生图] 生图特惠","[低价] Grok"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.4,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.4)) * image_count"}],"groups":{"[AIS] Gemini 向量模型":1,"[低价] DeepSeek":0.4,"[低价] GPT 福利":0.2,"[低价] Grok":0.1,"[低价] Seedance":1,"[低价] 灵车 K3.1 Pro 专用":0.3,"[低价] 神秘折扣模型":0.12,"[低价] 视频分组":1.5,"[低价] 语音合成 TTS":0.3,"[低价] 语音转文字 ASR":1,"[低价][Kiro] 高智企业 Claude":1,"[低价][促销] GPT Image":0.5,"[低价][反重力] Gemini":0.5,"[低价][备用] GPT Pro":0.3,"[低价][满血] Claude 原生":1.5,"[低价][满血] Claude 特惠":1.1,"[低价][满血] DeepSeek 1017":0.5,"[低价][满血] GPT Pro 2":0.26,"[低价][满血] Gemini Ultra":0.5,"[低价][满血] 国模":0.6,"[低价][满血][自有] GLM 官方":0.25,"[低价][生图] 生图特惠":0.2,"[官key] GPT":0.9,"[满血] Argon 专用":1,"[满血] CC 不降智精选":1.8,"[满血] GPT Pro 500 高速":0.5,"[满血] GPT 不降智精选":0.35,"[满血] Kimi K3.1 Pro 专用":0.6,"[满血] Suno":1,"[满血][官Key] DeepSeek":0.8,"[满血][官Key] Gemini":2,"[生图] GPT Image":1,"[生图] Gemini":1},"refs":{"[AIS] Gemini 向量模型":"#34","[低价] DeepSeek":"#16","[低价] GPT 福利":"#56","[低价] Grok":"#37","[低价] Seedance":"#19","[低价] 灵车 K3.1 Pro 专用":"#49","[低价] 神秘折扣模型":"#24","[低价] 视频分组":"#31","[低价] 语音合成 TTS":"#35","[低价] 语音转文字 ASR":"#27","[低价][Kiro] 高智企业 Claude":"#42","[低价][促销] GPT Image":"#39","[低价][反重力] Gemini":"#5","[低价][备用] GPT Pro":"#13","[低价][满血] Claude 原生":"#61","[低价][满血] Claude 特惠":"#22","[低价][满血] DeepSeek 1017":"#38","[低价][满血] GPT Pro 2":"#14","[低价][满血] Gemini Ultra":"#12","[低价][满血] 国模":"#6","[低价][满血][自有] GLM 官方":"#17","[低价][生图] 生图特惠":"#9","[官key] GPT":"#28","[满血] Argon 专用":"#47","[满血] CC 不降智精选":"#7","[满血] GPT Pro 500 高速":"#57","[满血] GPT 不降智精选":"#2","[满血] Kimi K3.1 Pro 专用":"#48","[满血] Suno":"#67","[满血][官Key] DeepSeek":"#15","[满血][官Key] Gemini":"#8","[生图] GPT Image":"#4","[生图] Gemini":"#29"},"notes":{"[AIS] Gemini 向量模型":"Gemini 文本向量与嵌入模型(AIStudio 渠道)","[低价] DeepSeek":"DeepSeek 正式版,超低折扣,此分组为 v4 Flash 0731","[低价] GPT 福利":"GPT 低价福利分组,不保障满智力","[低价] Grok":"Grok 系列模型,低价通道","[低价] Seedance":"Seedance 视频生成(低价)","[低价] 灵车 K3.1 Pro 专用":"Kimi K3.1 Pro 灵车渠道","[低价] 神秘折扣模型":"神秘折扣模型合集,低价通道,deepseek flash 为 v4.1 旧版","[低价] 视频分组":"Veo / Minimax / Omni 视频生成,低价通道","[低价] 语音合成 TTS":"语音合成(TTS),低价通道","[低价] 语音转文字 ASR":"语音转文字(ASR),低价通道","[低价][Kiro] 高智企业 Claude":"90% Claude Max","[低价][促销] GPT Image":"降智 GPT Pro 号再上岗","[低价][反重力] Gemini":"Gemini 全系模型(反重力渠道)","[低价][备用] GPT Pro":"GPT Pro 账号反代,低价通道","[低价][满血] Claude 原生":"0 注入,神秘渠道","[低价][满血] Claude 特惠":"特惠,尽量保证满血","[低价][满血] DeepSeek 1017":"最新最热满血 DeepSeek v4.1 Flash 1017 专用特价分组","[低价][满血] GPT Pro 2":"GPT Pro 反代,低价 2 号通道","[低价][满血] Gemini Ultra":"反重力 Ultra 套餐反代,支持 Argon","[低价][满血] 国模":"国产大模型满血版,超低折扣","[低价][满血][自有] GLM 官方":"GLM Coding Plan 转发","[低价][生图] 生图特惠":"","[官key] GPT":"OpenAI 官方 Key 通道,支持 UltraFast","[满血] Argon 专用":"不知道从哪来的,质量比 Ultra 好点","[满血] CC 不降智精选":"Claude 满血满智精选,不降智","[满血] GPT Pro 500 高速":"","[满血] GPT 不降智精选":"GPT 满血不降智精选","[满血] Kimi K3.1 Pro 专用":"Kimi K3.1 Pro 专用渠道","[满血] Suno":"Suno 音乐生成(歌词/整曲/音效/分轨/时间轴),按次计费","[满血][官Key] DeepSeek":"","[满血][官Key] Gemini":"Gemini 官方 API Key 通道","[生图] GPT Image":"GPT Image 图像生成","[生图] Gemini":"Gemini 图像生成"},"auto":["[低价][满血] Gemini Ultra","[满血] CC 不降智精选","[满血] GPT 不降智精选","[低价][生图] 生图特惠","[低价] DeepSeek","[低价][备用] GPT Pro","[低价] Grok","[低价] Seedance","[低价] 视频分组","[低价] 语音合成 TTS","[低价] 语音转文字 ASR","[低价][满血] 国模","[低价] 神秘折扣模型","[AIS] Gemini 向量模型","[满血][官Key] Gemini","[官key] GPT","[生图] GPT Image","[生图] Gemini"],"vendors":[{"id":2,"name":"Anthropic","icon":"Claude.Color"},{"id":7,"name":"Moonshot","icon":"Moonshot"},{"id":10,"name":"腾讯","icon":"Hunyuan.Color"},{"id":1,"name":"OpenAI","icon":"OpenAI"},{"id":5,"name":"xAI","icon":"XAI"},{"id":9,"name":"MiniMax","icon":"Minimax.Color"},{"id":12,"name":"小米","icon":"XiaomiMiMo"},{"id":16,"name":"Midjourney","description":"Midjourney 图像生成服务","icon":"Midjourney"},{"id":6,"name":"智谱","icon":"Zhipu.Color"},{"id":13,"name":"TypeSafe"},{"id":14,"name":"字节跳动","description":"字节跳动 Seedream 图像生成系列","icon":"ByteDance"},{"id":15,"name":"Black Forest Labs","description":"Black Forest Labs FLUX 图像生成系列","icon":"Flux"},{"id":17,"name":"Ideogram","description":"Ideogram 图像生成服务","icon":"Ideogram"},{"id":3,"name":"Google","icon":"Gemini.Color"},{"id":4,"name":"DeepSeek","icon":"DeepSeek.Color"},{"id":8,"name":"阿里巴巴","icon":"Qwen.Color"},{"id":11,"name":"即梦","icon":"Jimeng.Color"}],"endpoints":{"anthropic":{"path":"/v1/messages","method":"POST"},"gemini":{"path":"/v1beta/models/{model}:generateContent","method":"POST"},"image-generation":{"path":"/v1/images/generations","method":"POST"},"openai":{"path":"/v1/chat/completions","method":"POST"},"openai-response":{"path":"/v1/responses","method":"POST"}}}
1
+ // 由插件运行时从 /api/pricing 写入
2
+ self.NEARTOKEN_PRICING = {"at":1793780165229,"source":"https://neartoken.cc/api/pricing","version":"a42d372ccf0b5dd13ecf71203521f9d2","models":[{"name":"omni","description":"统一视频生成模型,可根据模式、时长和分辨率自动选择合适的处理路径。","tags":"video,unified","vendor_id":3,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.066666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.066666666667)"},{"name":"gemini-3.6-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"gpt-6-luna","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[满血] GPT 不降智精选","[低价] GPT 福利","[官key] GPT"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":2,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 0.1 + cr * 0.01 + cc * 0.125 + c * 0.5) : tier(\"272k_plus\", p * 0.2 + cr * 0.02 + cc * 0.25 + c * 0.75)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6 Luna 是 GPT-6 家族中最轻量的一员:快速、经济,适合规模化。","status":98.82,"latency":"26.77s","throughput":"54.9t/s"},{"name":"sd2.0","description":"sd2.0 标准档视频生成。seedance 分组按秒计费:480p ¥0.8/秒、720p ¥1/秒;其余分辨率暂未开放。通过 resolution 选择分辨率,费用=对应每秒单价×duration 秒;默认 480p、5 秒,n=1。不支持的档位返回参数错误,不自动降级。支持文本生成,参考素材用 images/videos/audios 数组传入;可通过 /v1/images/upload 上传素材(单文件≤20 MiB)。POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。","tags":"video,per-second","vendor_id":11,"enable_groups":["[低价] Seedance"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.55,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"480P\" && u(\"size\") == \"720x1280\" ? tier(\"480P·720x1280\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1280x720\" ? tier(\"480P·1280x720\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1792x1024\" ? tier(\"480P·1792x1024\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"480P\" && u(\"size\") == \"1024x1792\" ? tier(\"480P·1024x1792\", u(\"seconds\") * 0.8) : u(\"resolution\") == \"720P\" && u(\"size\") == \"720x1280\" ? tier(\"720P·720x1280\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1280x720\" ? tier(\"720P·1280x720\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1792x1024\" ? tier(\"720P·1792x1024\", u(\"seconds\") * 1) : u(\"resolution\") == \"720P\" && u(\"size\") == \"1024x1792\" ? tier(\"720P·1024x1792\", u(\"seconds\") * 1) : u(\"resolution\") == \"768P\" && u(\"size\") == \"720x1280\" ? tier(\"768P·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1280x720\" ? tier(\"768P·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1792x1024\" ? tier(\"768P·1792x1024\", u(\"seconds\") * 999) : u(\"resolution\") == \"768P\" && u(\"size\") == \"1024x1792\" ? tier(\"768P·1024x1792\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"720x1280\" ? tier(\"1080P·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1280x720\" ? tier(\"1080P·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1792x1024\" ? tier(\"1080P·1792x1024\", u(\"seconds\") * 999) : u(\"resolution\") == \"1080P\" && u(\"size\") == \"1024x1792\" ? tier(\"1080P·1024x1792\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"720x1280\" ? tier(\"2K·720x1280\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"1280x720\" ? tier(\"2K·1280x720\", u(\"seconds\") * 999) : u(\"resolution\") == \"2K\" && u(\"size\") == \"1792x1024\" ? tier(\"2K·1792x1024\", u(\"seconds\") * 999) : tier(\"2K·1024x1792\", u(\"seconds\") * 999)"},{"name":"kimi-k3.1-pro","description":"Kimi K3.1 Pro 是 Moonshot 对标 Opus 5.5 的强大模型","icon":"Kimi","vendor_id":7,"enable_groups":["[低价] 灵车 K3.1 Pro 专用","[满血] Kimi K3.1 Pro 专用"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", p * 13 + c * 68 + cr * 1.3 + cc * 13 + cc1h * 26)","context_window":1000000,"max_tokens":65535,"input_modalities":["text","image"],"reasoning_levels":["low","high","max"]},{"name":"gemini-3.1-flash-lite","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + cr * 0.025 + ai * 0.5 + c * 1.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"suno_stems_by_url","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":1.5435,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-low","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"claude-fable-5-1","vendor_id":2,"enable_groups":["[低价][满血] Claude 特惠","[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.025,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 10 + cr * 0.25 + cc * 12.5 + cc1h * 20 + c * 50)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Anthropic 旗舰 Claude 模型,1M Token 上下文,面向最艰难的长时间编码与知识工作。"},{"name":"gemini-3.8-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"codex-auto-review","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[满血] GPT 不降智精选"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.2,"create_cache_ratio":0.2,"quota_type":0,"context_window":1050000,"input_modalities":["text"]},{"name":"gemini-3-flash","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.7-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"flux-2-pro","description":"FLUX 2 Pro 图像生成模型,按生成图片张数计费。","icon":"Flux","vendor_id":15,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"sd2.5","description":"sd2.5 标准档视频生成。seedance 分组按秒计费:720p ¥1.2/秒;其他分辨率档位暂未开放。通过 resolution 选择分辨率,费用=对应每秒单价×duration 秒;默认 720p、5 秒,n=1。不支持的档位返回参数错误,不自动降级。支持文本生成,参考素材用 images/videos/audios 数组传入;可通过 /v1/images/upload 上传素材(单文件≤20 MiB)。POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。","tags":"video,per-second","vendor_id":11,"enable_groups":["[低价] Seedance"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.65,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 1.2)"},{"name":"claude-sonnet-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.2 + cc * 2.5 + cc1h * 4 + c * 10)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Claude 的均衡档位,适合边界清晰的日常工作:开发功能、修 bug、产出精修内容。"},{"name":"grok-4.5量","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"minimax-h3","description":"H3 视频生成,视频分组。resolution=720p:¥0.07/秒,费用为单价×duration;resolution=2K:¥2.50/条,4~15 秒同价。未传 resolution 默认 2K,未传 duration 默认 4 秒;专属价格以账户实际价格为准。支持 16:9、9:16,n=1;images 最多9张,audios最多3段且需同时传图片,不支持参考视频。使用 JSON 提交 POST /v1/videos 或 /v1/video/generations,GET 同路径/{task_id} 查询。非法分辨率返回参数错误,不自动降级。","tags":"video,text-to-video,image-to-video,resolution-billing","icon":"Minimax","vendor_id":9,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":1.6666666666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"u(\"resolution\") == \"768P\" ? tier(\"768P\", u(\"seconds\") * 0.046666666667) : tier(\"2K\", 1.666666666667)"},{"name":"suno_sound","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.308,"completion_ratio":0,"quota_type":1},{"name":"nano-banana-2","description":"Nano Banana 2 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠","[生图] Gemini"],"supported_endpoint_types":["image-generation","openai","openai-response","gemini"],"model_ratio":0,"model_price":0.1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"gpt-6-sol","vendor_id":1,"enable_groups":["[低价] GPT 福利","[满血] GPT 不降智精选","[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":2,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.2 + cc * 2.5 + c * 10) : tier(\"272k_plus\", p * 4 + cr * 0.4 + cc * 5 + c * 15)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6 Sol 把 Astra 的能力带到更快、更便宜的模型上,适合规模化使用。"},{"name":"claude-opus-5-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 4 + cr * 0.2 + cc * 5 + cc1h * 8 + c * 20)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"旗舰级表现的 Claude,价格更低,面向智能体工程与长时间编码会话。","status":97.63,"latency":"26.47s","throughput":"72.9t/s"},{"name":"grok-4.6-low","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gpt-image-2.5-sunburst","description":"GPT Image 2.5 Sunburst 图像生成模型,按生成图片张数计费。","icon":"OpenAI","vendor_id":1,"enable_groups":["[生图] GPT Image","[低价][促销] GPT Image"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.15,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.15)) * image_count"},{"name":"claude-opus-4-7","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"]},{"name":"z-image-turbo","description":"Z-Image Turbo 高速图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"image_count\") * 0.2)"},{"name":"gemini-3.1-flash-tts-preview","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1 + c * 20)"},{"name":"gemini-3.5-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1.5 + cr * 0.15 + ai * 1.5 + c * 9)","context_window":200000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-fast","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gemini-3-pro-image","description":"Gemini 3 Pro Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + c * 120)"},{"name":"gemini-3.1-flash-image","description":"Gemini 3.1 Flash Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + c * 60)"},{"name":"gemini-3.1-flash-lite-image","description":"Gemini 3.1 Flash Lite Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.07,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + c * 30)"},{"name":"gpt-5.6-terra","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":8,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.2 + cc * 2.5 + c * 12) : tier(\"272k_plus\", p * 4 + cr * 0.4 + cc * 5 + c * 18)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-embedding-2","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.1,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.2 + ai * 6.5 + c * 0)"},{"name":"gemini-3.5-flash-lite","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.3 + cr * 0.03 + c * 2.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.7","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.5 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 1 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gpt-6.1-terra","vendor_id":1,"enable_groups":["[满血] GPT 不降智精选","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"context_window":922000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"暂无描述。","status":76.12,"latency":"14.22s","throughput":"98.3t/s"},{"name":"glm-5.3","vendor_id":6,"enable_groups":["[低价][满血][自有] GLM 官方","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 8 + cr * 2 + cc * 0 + c * 28)","context_window":1000000,"max_tokens":131072,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GLM-5.3,Z.ai 的智能体编码旗舰,1M 上下文并支持结构化工具调用。","status":100,"latency":"2.97s","throughput":"52.6t/s"},{"name":"suno_lyrics","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.175,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.1-pro","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":1,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.8-flash-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.08,"completion_ratio":0,"quota_type":1},{"name":"gpt-5.6-sol","vendor_id":1,"enable_groups":["[低价] GPT 福利","[满血] GPT 不降智精选","[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":8,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 4 + cr * 0.4 + cc * 5 + c * 20) : tier(\"272k_plus\", p * 8 + cr * 0.8 + cc * 10 + c * 30)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":272000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"hy3","vendor_id":10,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":4,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0 + cr * 0 + cc * 0 + c * 0)","context_window":256000,"max_tokens":128000,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"nano-banana-2.1","description":"Nano Banana 2.1 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["image-generation","gemini","openai"],"model_ratio":0,"model_price":0.12,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.12)) * image_count"},{"name":"minimax-m3","vendor_id":9,"enable_groups":["[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.09,"model_price":0,"completion_ratio":4,"cache_ratio":0.2,"create_cache_ratio":1,"quota_type":0,"context_window":512000,"max_tokens":128000,"input_modalities":["text","image"]},{"name":"claude-sonnet-4-6","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 3 + cr * 0.3 + cc * 3.75 + cc1h * 6 + c * 15)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["max"]},{"name":"gemini-2.5-pro","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.625,"model_price":0,"completion_ratio":8,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 1.25 + cr * 0.125 + c * 10) : tier(\"200k_plus\", p * 2.5 + cr * 0.25 + c * 15)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"]},{"name":"gemini-3.8-flash-high","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"claude-sonnet-4.6","vendor_id":2,"enable_groups":["[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"context_window":1000000,"input_modalities":["text","image"],"reasoning_levels":["minimal","max"]},{"name":"gemini-2.5-flash-preview-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.25,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + c * 10)"},{"name":"seedream-5.0-lite","description":"Seedream 5.0 Lite 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"qwen-image","description":"Qwen Image 图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"image_count\") * 0.25)"},{"name":"nano-banana-pro","description":"Nano Banana Pro 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠","[生图] Gemini"],"supported_endpoint_types":["image-generation","openai","openai-response","gemini"],"model_ratio":0,"model_price":0.05,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.05)) * image_count"},{"name":"z-image","description":"Z-Image 图像生成模型,按生成图片张数计费。","icon":"Qwen.Color","vendor_id":8,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.3)) * image_count"},{"name":"glm-5.2","vendor_id":6,"enable_groups":["[低价] 神秘折扣模型","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1.4 + cr * 0.26 + cc * 0 + c * 4.4)","context_window":1000000,"max_tokens":131072,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.5-transcribe","vendor_id":3,"enable_groups":["[低价] 语音转文字 ASR"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0,"model_price":0.005,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-lite-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.08,"completion_ratio":0,"quota_type":1},{"name":"claude-haiku-4.5","vendor_id":2,"enable_groups":["[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"context_window":200000,"input_modalities":["text","image"],"reasoning_levels":["low","medium","high","max"]},{"name":"gemini-3.1-flash-lite-preview","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.25 + cr * 0.025 + ai * 0.5 + c * 1.5)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-low","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"grok-4.6","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.5 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 1 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-4-8","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"]},{"name":"suno_music","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":1.5435,"completion_ratio":0,"quota_type":1},{"name":"gemini-3.8-flash-c","description":"【按次计费】","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0,"model_price":0.096,"completion_ratio":0,"quota_type":1,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"ideogram-v3","description":"Ideogram V3 图像生成模型,按生成图片张数计费。","icon":"Ideogram","vendor_id":17,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"gpt-image-2.5-flare","description":"GPT Image 2.5 Flare 图像生成模型,按生成图片张数计费。","icon":"OpenAI","vendor_id":1,"enable_groups":["[低价][生图] 生图特惠","[低价][促销] GPT Image","[生图] GPT Image"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.12,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.2)) * image_count"},{"name":"gemini-4-argon","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[满血] Argon 专用"],"supported_endpoint_types":["gemini","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.1 + ai * 2 + c * 10)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["low","medium","high"]},{"name":"gemini-2.5-pro-preview-tts","vendor_id":3,"enable_groups":["[低价] 语音合成 TTS"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.5,"model_price":0,"completion_ratio":20,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 1 + c * 20)"},{"name":"mimo-v2.6-flash","vendor_id":12,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.5,"model_price":0,"completion_ratio":2,"cache_ratio":0.02,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.14 + cr * 0.0028 + c * 0.28)","context_window":1048576,"max_tokens":131072,"input_modalities":["text","image"]},{"name":"qwen3.8-27b","vendor_id":8,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1.5,"model_price":0,"completion_ratio":4,"cache_ratio":0.2,"quota_type":0,"context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选","[低价][Kiro] 高智企业 Claude","[低价][满血] Claude 特惠"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","xhigh","max"],"description":"Claude Opus 5 旗舰,effort 参数可在思考深度与延迟、成本之间取舍。","status":0,"latency":"1.23s"},{"name":"claude-sonnet-5-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.1 + cc * 2.5 + cc1h * 4 + c * 10)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"Claude 的均衡档位,适合边界清晰的日常工作:开发功能、修 bug、产出精修内容。"},{"name":"seedream-4","description":"Seedream 4 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"claude-fable-5","vendor_id":2,"enable_groups":["[低价][满血] Claude 原生","[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 10 + cr * 1 + cc * 12.5 + cc1h * 20 + c * 50)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["xhigh","max"],"description":"Anthropic 旗舰 Claude 模型,1M Token 上下文,面向最艰难的长时间编码与知识工作。"},{"name":"gemini-3.6-flash","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.7-flash","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.75 + cr * 0.075 + ai * 0.75 + c * 3.75)","context_window":1000000,"max_tokens":64000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.6-medium","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"glm-5.3-flash","vendor_id":6,"enable_groups":["[低价][满血][自有] GLM 官方","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.4,"model_price":0,"completion_ratio":3.5,"cache_ratio":0.2875,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.8 + cr * 0.23 + cc * 0 + c * 2.8)","context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"claude-opus-4-6","vendor_id":2,"enable_groups":["[满血] CC 不降智精选"],"supported_endpoint_types":["anthropic","openai"],"model_ratio":2.5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 5 + cr * 0.5 + cc * 6.25 + cc1h * 10 + c * 25)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["max"]},{"name":"gemini-embedding-001","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.075,"model_price":0,"completion_ratio":4,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.15 + c * 0)"},{"name":"grok-4.6-xhigh","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"gemini-2.5-flash-image","description":"Gemini 2.5 Flash Image 图像生成模型,按 token 计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[生图] Gemini"],"supported_endpoint_types":["gemini","openai","image-generation"],"model_ratio":0,"model_price":0.04,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.3 + cr * 0.075 + c * 30)"},{"name":"deepseek-v4-pro","vendor_id":4,"enable_groups":["[满血][官Key] DeepSeek","[低价] DeepSeek","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"weekday(\"UTC\") >= 1 && weekday(\"UTC\") <= 5 && ((hour(\"UTC\") >= 1 && hour(\"UTC\") < 4) || (hour(\"UTC\") >= 6 && hour(\"UTC\") < 10)) ? tier(\"peak\", p * 1.32 + cr * 0.044 + c * 3.96) : tier(\"off_peak\", p * 0.66 + cr * 0.022 + c * 1.98)","context_window":1000000,"max_tokens":384000,"input_modalities":["text"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.8-flash-medium","vendor_id":3,"enable_groups":["[低价][反重力] Gemini"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.75,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"context_window":1000000,"max_tokens":64000,"input_modalities":["text"]},{"name":"gemini-embedding-2-preview","vendor_id":3,"enable_groups":["[AIS] Gemini 向量模型"],"supported_endpoint_types":["gemini","openai"],"model_ratio":0.1,"model_price":0,"completion_ratio":4,"quota_type":0},{"name":"gpt-6-astra","vendor_id":1,"enable_groups":["[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选","[满血] GPT Pro 500 高速","[官key] GPT"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":5,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 10 + cr * 1 + cc * 12.5 + c * 50) : tier(\"272k_plus\", p * 20 + cr * 2 + cc * 25 + c * 75)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"OpenAI 前沿 GPT-6 模型,擅长计算机操作、编码、科学、网络安全与长上下文检索。","status":99.05,"latency":"26.64s","throughput":"52.3t/s"},{"name":"jev-1.13","vendor_id":13,"enable_groups":["[低价] 神秘折扣模型"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.21,"model_price":0,"completion_ratio":1,"cache_ratio":1,"quota_type":0,"context_window":64000,"input_modalities":["text"]},{"name":"grok-4.5","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"create_cache_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.3 + c * 6) : tier(\"200k_plus\", p * 4 + cr * 0.6 + c * 12)","context_window":500000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-medium","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"veo-3.1","description":"高质量视频生成模型,支持文生视频、图生视频和参考素材输入。","tags":"video,unified","vendor_id":3,"enable_groups":["[低价] 视频分组"],"supported_endpoint_types":["openai-video"],"model_ratio":0,"model_price":0.066666666667,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"base\", u(\"seconds\") * 0.066666666667)"},{"name":"qwen3.8-max","vendor_id":8,"enable_groups":["[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 2 + cr * 0.25 + cc * 2.5 + c * 6)","context_window":1000000,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"nano-banana-2-lite","description":"Nano Banana 2 Lite 图像生成模型,按生成图片张数计费。","icon":"Gemini.Color","vendor_id":3,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"kimi-k3","vendor_id":7,"enable_groups":["[低价] 神秘折扣模型","[低价][满血] 国模"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":10,"model_price":0,"completion_ratio":5,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 3 + cr * 0.3 + cc * 3 + c * 15)","context_window":1048576,"max_tokens":131072,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-4.5-high","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"grok-4.6-high","vendor_id":5,"enable_groups":["[低价] Grok"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":3,"cache_ratio":0.25,"quota_type":0,"context_window":500000,"max_tokens":128000,"input_modalities":["text"]},{"name":"seedream-4-5","description":"Seedream 4.5 图像生成模型,按生成图片张数计费。","icon":"ByteDance","vendor_id":14,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":1,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(1)) * image_count"},{"name":"gpt-6.1-sol","vendor_id":1,"enable_groups":["[官key] GPT","[低价][备用] GPT Pro","[低价][满血] GPT Pro 2","[低价] GPT 福利","[满血] GPT 不降智精选","[满血] GPT Pro 500 高速"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"(len <= 272000 ? tier(\"0_272k\", p * 2 + cr * 0.1 + cc * 2.5 + c * 10) : tier(\"272k_plus\", p * 4 + cr * 0.2 + cc * 5 + c * 15)) * (param(\"service_tier\") == \"fast\" ? 2 : 1) * (param(\"service_tier\") == \"ultrafast\" ? 8 : 1)","context_window":1000000,"max_tokens":128000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"],"description":"GPT-6.1 Sol 在 Sol 基础上升级智能体编码与计算机操作,接近 Astra 水平。","status":97.42,"latency":"22.62s","throughput":"51.3t/s"},{"name":"deepseek-flash","description":"当前为 DeepSeek v4.1 Flash 模型,具体检查点看分组,官 Key 为 1017 检查点","icon":"DeepSeek.Color","vendor_id":4,"enable_groups":["[低价] 神秘折扣模型","[满血][官Key] DeepSeek","[低价] DeepSeek","[低价][满血] 国模","[低价][满血] DeepSeek 1017"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"weekday(\"UTC\") >= 1 && weekday(\"UTC\") <= 5 && ((hour(\"UTC\") >= 1 && hour(\"UTC\") < 4) || (hour(\"UTC\") >= 6 && hour(\"UTC\") < 10)) ? tier(\"peak\", p * 2 + cr * 0.04 + c * 8) : tier(\"off_peak\", p * 1 + cr * 0.02 + c * 4)","context_window":1000000,"max_tokens":384000,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","max"]},{"name":"suno_timing","enable_groups":["[满血] Suno"],"supported_endpoint_types":["openai"],"model_ratio":0,"model_price":0.7718,"completion_ratio":0,"quota_type":1},{"name":"kimseek-r1","enable_groups":["[低价][满血] 国模","[低价][满血] DeepSeek 1017","[低价] DeepSeek"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0},{"name":"gemini-3-flash-preview","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":0.25,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"standard\", p * 0.5 + cr * 0.05 + ai * 1 + c * 3)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"gemini-3.1-pro-preview","vendor_id":3,"enable_groups":["[满血][官Key] Gemini","[低价][反重力] Gemini"],"supported_endpoint_types":["openai","openai-response"],"model_ratio":1,"model_price":0,"completion_ratio":6,"cache_ratio":0.1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"len <= 200000 ? tier(\"0_200k\", p * 2 + cr * 0.2 + c * 12) : tier(\"200k_plus\", p * 4 + cr * 0.4 + c * 18)","context_window":1048576,"max_tokens":65536,"input_modalities":["text","image"],"reasoning_levels":["minimal","low","medium","high","xhigh","max"]},{"name":"grok-imagine-image-2.0","description":"Grok Imagine Image 2.0 图像生成模型,按生成图片张数计费。","icon":"XAI","vendor_id":5,"enable_groups":["[低价][生图] 生图特惠"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":37.5,"model_price":0,"completion_ratio":1,"quota_type":0,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.1)) * image_count"},{"name":"grok-imagine-image","description":"Grok Imagine Image 图像生成模型,按生成图片张数计费。","icon":"XAI","vendor_id":5,"enable_groups":["[低价][生图] 生图特惠","[低价] Grok"],"supported_endpoint_types":["image-generation","openai","openai-response"],"model_ratio":0,"model_price":0.4,"completion_ratio":0,"quota_type":1,"billing_mode":"tiered_expr","billing_expr":"tier(\"image\", fixed(0.4)) * image_count"}],"groups":{"[AIS] Gemini 向量模型":1,"[低价] DeepSeek":0.4,"[低价] GPT 福利":0.2,"[低价] Grok":0.1,"[低价] Seedance":1,"[低价] 灵车 K3.1 Pro 专用":0.3,"[低价] 神秘折扣模型":0.12,"[低价] 视频分组":1.5,"[低价] 语音合成 TTS":0.3,"[低价] 语音转文字 ASR":1,"[低价][Kiro] 高智企业 Claude":1,"[低价][促销] GPT Image":0.5,"[低价][反重力] Gemini":0.5,"[低价][备用] GPT Pro":0.3,"[低价][满血] Claude 原生":1.5,"[低价][满血] Claude 特惠":1.1,"[低价][满血] DeepSeek 1017":0.5,"[低价][满血] GPT Pro 2":0.26,"[低价][满血] Gemini Ultra":0.5,"[低价][满血] 国模":0.6,"[低价][满血][自有] GLM 官方":0.25,"[低价][生图] 生图特惠":0.2,"[官key] GPT":0.9,"[满血] Argon 专用":1,"[满血] CC 不降智精选":1.8,"[满血] GPT Pro 500 高速":0.5,"[满血] GPT 不降智精选":0.35,"[满血] Kimi K3.1 Pro 专用":0.6,"[满血] Suno":1,"[满血][官Key] DeepSeek":0.8,"[满血][官Key] Gemini":2,"[生图] GPT Image":1,"[生图] Gemini":1},"refs":{"[AIS] Gemini 向量模型":"#34","[低价] DeepSeek":"#16","[低价] GPT 福利":"#56","[低价] Grok":"#37","[低价] Seedance":"#19","[低价] 灵车 K3.1 Pro 专用":"#49","[低价] 神秘折扣模型":"#24","[低价] 视频分组":"#31","[低价] 语音合成 TTS":"#35","[低价] 语音转文字 ASR":"#27","[低价][Kiro] 高智企业 Claude":"#42","[低价][促销] GPT Image":"#39","[低价][反重力] Gemini":"#5","[低价][备用] GPT Pro":"#13","[低价][满血] Claude 原生":"#61","[低价][满血] Claude 特惠":"#22","[低价][满血] DeepSeek 1017":"#38","[低价][满血] GPT Pro 2":"#14","[低价][满血] Gemini Ultra":"#12","[低价][满血] 国模":"#6","[低价][满血][自有] GLM 官方":"#17","[低价][生图] 生图特惠":"#9","[官key] GPT":"#28","[满血] Argon 专用":"#47","[满血] CC 不降智精选":"#7","[满血] GPT Pro 500 高速":"#57","[满血] GPT 不降智精选":"#2","[满血] Kimi K3.1 Pro 专用":"#48","[满血] Suno":"#67","[满血][官Key] DeepSeek":"#15","[满血][官Key] Gemini":"#8","[生图] GPT Image":"#4","[生图] Gemini":"#29"},"notes":{"[AIS] Gemini 向量模型":"Gemini 文本向量与嵌入模型(AIStudio 渠道)","[低价] DeepSeek":"DeepSeek 正式版,超低折扣,此分组为 v4 Flash 0731","[低价] GPT 福利":"GPT 低价福利分组,不保障满智力","[低价] Grok":"Grok 系列模型,低价通道","[低价] Seedance":"Seedance 视频生成(低价)","[低价] 灵车 K3.1 Pro 专用":"Kimi K3.1 Pro 灵车渠道","[低价] 神秘折扣模型":"神秘折扣模型合集,低价通道,deepseek flash 为 v4.1 旧版","[低价] 视频分组":"Veo / Minimax / Omni 视频生成,低价通道","[低价] 语音合成 TTS":"语音合成(TTS),低价通道","[低价] 语音转文字 ASR":"语音转文字(ASR),低价通道","[低价][Kiro] 高智企业 Claude":"90% Claude Max","[低价][促销] GPT Image":"降智 GPT Pro 号再上岗","[低价][反重力] Gemini":"Gemini 全系模型(反重力渠道)","[低价][备用] GPT Pro":"GPT Pro 账号反代,低价通道","[低价][满血] Claude 原生":"0 注入,神秘渠道","[低价][满血] Claude 特惠":"特惠,尽量保证满血","[低价][满血] DeepSeek 1017":"最新最热满血 DeepSeek v4.1 Flash 1017 专用特价分组","[低价][满血] GPT Pro 2":"GPT Pro 反代,低价 2 号通道","[低价][满血] Gemini Ultra":"反重力 Ultra 套餐反代,支持 Argon","[低价][满血] 国模":"国产大模型满血版,超低折扣","[低价][满血][自有] GLM 官方":"GLM Coding Plan 转发","[低价][生图] 生图特惠":"","[官key] GPT":"OpenAI 官方 Key 通道,支持 UltraFast","[满血] Argon 专用":"不知道从哪来的,质量比 Ultra 好点","[满血] CC 不降智精选":"Claude 满血满智精选,不降智","[满血] GPT Pro 500 高速":"","[满血] GPT 不降智精选":"GPT 满血不降智精选","[满血] Kimi K3.1 Pro 专用":"Kimi K3.1 Pro 专用渠道","[满血] Suno":"Suno 音乐生成(歌词/整曲/音效/分轨/时间轴),按次计费","[满血][官Key] DeepSeek":"","[满血][官Key] Gemini":"Gemini 官方 API Key 通道","[生图] GPT Image":"GPT Image 图像生成","[生图] Gemini":"Gemini 图像生成"},"auto":["[低价][满血] Gemini Ultra","[满血] CC 不降智精选","[满血] GPT 不降智精选","[低价][生图] 生图特惠","[低价] DeepSeek","[低价][备用] GPT Pro","[低价] Grok","[低价] Seedance","[低价] 视频分组","[低价] 语音合成 TTS","[低价] 语音转文字 ASR","[低价][满血] 国模","[低价] 神秘折扣模型","[AIS] Gemini 向量模型","[满血][官Key] Gemini","[官key] GPT","[生图] GPT Image","[生图] Gemini"],"vendors":[{"id":2,"name":"Anthropic","icon":"Claude.Color"},{"id":7,"name":"Moonshot","icon":"Moonshot"},{"id":10,"name":"腾讯","icon":"Hunyuan.Color"},{"id":1,"name":"OpenAI","icon":"OpenAI"},{"id":5,"name":"xAI","icon":"XAI"},{"id":9,"name":"MiniMax","icon":"Minimax.Color"},{"id":12,"name":"小米","icon":"XiaomiMiMo"},{"id":16,"name":"Midjourney","description":"Midjourney 图像生成服务","icon":"Midjourney"},{"id":6,"name":"智谱","icon":"Zhipu.Color"},{"id":13,"name":"TypeSafe"},{"id":14,"name":"字节跳动","description":"字节跳动 Seedream 图像生成系列","icon":"ByteDance"},{"id":15,"name":"Black Forest Labs","description":"Black Forest Labs FLUX 图像生成系列","icon":"Flux"},{"id":17,"name":"Ideogram","description":"Ideogram 图像生成服务","icon":"Ideogram"},{"id":3,"name":"Google","icon":"Gemini.Color"},{"id":4,"name":"DeepSeek","icon":"DeepSeek.Color"},{"id":8,"name":"阿里巴巴","icon":"Qwen.Color"},{"id":11,"name":"即梦","icon":"Jimeng.Color"}],"endpoints":{"anthropic":{"path":"/v1/messages","method":"POST"},"gemini":{"path":"/v1beta/models/{model}:generateContent","method":"POST"},"image-generation":{"path":"/v1/images/generations","method":"POST"},"openai":{"path":"/v1/chat/completions","method":"POST"},"openai-response":{"path":"/v1/responses","method":"POST"}}}
package/page/star.png ADDED
Binary file
package/page/style.css CHANGED
@@ -36,11 +36,20 @@ html, body {
36
36
  }
37
37
 
38
38
  .wrap {
39
- max-width: 760px;
40
- margin: 0 auto;
39
+ max-width: none;
40
+ width: 100%;
41
+ margin: 0;
41
42
  padding: 20px 22px 48px;
42
43
  }
43
44
 
45
+ /* 首页铺满:两张卡一行,随窗口宽度伸缩;以账户卡为基准等高锁定,
46
+ 内容超出时卡片内部滚动,不把整页撑长。 */
47
+ .home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
48
+ .home-grid > .card { margin: 0; overflow-y: auto; scrollbar-width: thin; }
49
+ .home-grid > .card::-webkit-scrollbar { width: 6px; }
50
+ .home-grid > .card::-webkit-scrollbar-thumb { background: var(--nt-line); border-radius: 3px; }
51
+ @media (max-width: 720px) { .home-grid { grid-template-columns: 1fr; } .home-grid > .card { height: auto !important; } }
52
+
44
53
  /* 顶部:品牌 + 连接状态。整页只这里允许一点装饰。 */
45
54
  .head {
46
55
  display: flex;
package/page/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // 由 scripts/stamp.mjs 生成,别手改:版本号在 package.json。
2
- self.NEARTOKEN_VERSION = "0.3.0"
2
+ self.NEARTOKEN_VERSION = "0.4.1"