@ai-sdk/gateway 4.0.150 → 4.0.152

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.
@@ -661,6 +661,72 @@ the short-lived setup response from `getToken()`.
661
661
  should stay compact (under an 8 KiB safe header budget).
662
662
  </Note>
663
663
 
664
+ ### Live Models
665
+
666
+ Live models such as `openai/gpt-live-1.1` hold one continuous conversation: a
667
+ `session-start` event opens the session, PCM16 audio streams in both directions,
668
+ and `session-close` ends it with final usage. `gateway.experimental_realtime()`
669
+ returns a Live model for known Live model IDs. It connects to the Gateway Live
670
+ route and speaks the normalized Live protocol. Pass `{ api: 'live' }` for a Live
671
+ model ID the SDK does not know yet, or `{ api: 'realtime' }` to force the
672
+ realtime route.
673
+
674
+ ```ts
675
+ import { gateway } from '@ai-sdk/gateway';
676
+
677
+ const live = gateway.experimental_realtime('openai/gpt-live-1.1');
678
+ const newerLive = gateway.experimental_realtime('openai/gpt-live-2', {
679
+ api: 'live',
680
+ });
681
+ ```
682
+
683
+ `getToken()` mints a client secret bound to the Live route for Live models, so
684
+ the browser can connect straight to the Gateway:
685
+
686
+ ```ts filename='app/api/live/setup/route.ts'
687
+ import { gateway } from '@ai-sdk/gateway';
688
+
689
+ export async function POST() {
690
+ const token = await gateway.experimental_realtime.getToken({
691
+ model: 'openai/gpt-live-1.1',
692
+ });
693
+
694
+ return Response.json(token);
695
+ }
696
+ ```
697
+
698
+ ```tsx filename='app/live/page.tsx'
699
+ 'use client';
700
+
701
+ import { gateway } from '@ai-sdk/gateway';
702
+ import { experimental_useRealtime } from '@ai-sdk/react';
703
+
704
+ const model = gateway.experimental_realtime('openai/gpt-live-1.1');
705
+
706
+ export default function LivePage() {
707
+ const live = experimental_useRealtime({
708
+ model,
709
+ api: { token: '/api/live/setup' },
710
+ sessionConfig: { instructions: 'Keep replies brief.' },
711
+ });
712
+
713
+ // live.connect(), live.close(), live.session?.usage, ...
714
+ }
715
+ ```
716
+
717
+ Live sessions accept `instructions`, `voice`, `inputAudioFormat`,
718
+ `outputAudioFormat` and `providerOptions` (`gateway`, and `openai` with
719
+ `delegation`, `input`, `store` and `voice`). Audio is `audio/pcm` at 16000 or
720
+ 24000 Hz, with the same format in both directions. Live uses client delegation:
721
+ your application submits context with `context-append` instead of the
722
+ turn-based tool loop, and `sendTextMessage()` and `addToolOutput()` are not
723
+ available. Live model IDs must be fully qualified (`creator/model-name`).
724
+
725
+ <Note>
726
+ Live through the Gateway provider uses WebSocket only. For WebRTC, use
727
+ `@ai-sdk/openai` directly. Responses delegation is not supported.
728
+ </Note>
729
+
664
730
  ### Provider Options
665
731
 
666
732
  Gateway [provider options](#gateway-provider-options) — `tags`, `user`, `byok`, compliance flags, and so on — are set under `providerOptions.gateway` in the **session configuration**, mirroring how they ride the request body on the non-realtime routes. Include them in the session configuration you send to the Gateway, and the Gateway applies them server-side:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-sdk/gateway",
3
3
  "private": false,
4
- "version": "4.0.150",
4
+ "version": "4.0.152",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "sideEffects": false,
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/provider": "4.0.39",
34
- "@ai-sdk/provider-utils": "5.0.82",
34
+ "@ai-sdk/provider-utils": "5.0.83",
35
35
  "@vercel/oidc": "3.2.0"
36
36
  },
37
37
  "devDependencies": {
@@ -69,9 +69,9 @@
69
69
  "scripts": {
70
70
  "build": "pnpm clean && tsdown",
71
71
  "build:watch": "pnpm clean && tsdown --watch",
72
- "clean": "del-cli docs *.tsbuildinfo",
72
+ "clean": "del-cli docs",
73
73
  "generate-model-settings": "tsx scripts/generate-model-settings.ts",
74
- "type-check": "tsc --build",
74
+ "type-check": "tsc --noEmit",
75
75
  "test": "pnpm test:node && pnpm test:edge",
76
76
  "test:update": "pnpm test:node -u",
77
77
  "test:watch": "vitest --config vitest.node.config.js",
@@ -1,28 +1,5 @@
1
+ import type { GatewayModelIds } from './gateway-model-catalog';
2
+
1
3
  export type GatewayDecisionModelId =
2
- | 'baseten/elephant-1'
3
- | 'baseten/joey-1'
4
- | 'baseten/mammoth-1'
5
- | 'convaiinnovations/laya'
6
- | 'google/gemini-decision-1'
7
- | 'heygen/heygen-decision-1'
8
- | 'heygen/heygen-decision-1-turbo'
9
- | 'liquid/d1'
10
- | 'liquid/d1-ultra'
11
- | 'liquid/d1.2'
12
- | 'liquid/d1.2-ultra'
13
- | 'microsoft/decision-1.1'
14
- | 'microsoft/microsoft-decision-1'
15
- | 'nace-ai/drex-max-finance'
16
- | 'nace-ai/drex-max-v1.1'
17
- | 'nace-ai/drex-v2.0'
18
- | 'openai/gpt-6-luna-decisions'
19
- | 'parallel/parallel-decisions-fast'
20
- | 'perplexity/pplx-decider-flash-v1.2'
21
- | 'perplexity/pplx-decider-flash-v1.3'
22
- | 'perplexity/pplx-decider-v1.2'
23
- | 'perplexity/pplx-decider-v1.3'
24
- | 'scaledown/scaledown-classify-1'
25
- | 'typesafe-ai/jev'
26
- | 'typesafe-ai/jev-1.13.0'
27
- | 'typesafe-ai/jev-1.14.0'
4
+ | GatewayModelIds['decision']
28
5
  | (string & {});
@@ -1,30 +1,5 @@
1
+ import type { GatewayModelIds } from './gateway-model-catalog';
2
+
1
3
  export type GatewayEmbeddingModelId =
2
- | 'alibaba/qwen3-embedding-0.6b'
3
- | 'alibaba/qwen3-embedding-4b'
4
- | 'alibaba/qwen3-embedding-8b'
5
- | 'amazon/titan-embed-text-v2'
6
- | 'cohere/embed-v4.0'
7
- | 'cohere/embed-v5.0-fast'
8
- | 'cohere/embed-v5.0-pro'
9
- | 'google/gemini-embedding-001'
10
- | 'google/gemini-embedding-2'
11
- | 'google/text-embedding-005'
12
- | 'google/text-multilingual-embedding-002'
13
- | 'mistral/codestral-embed'
14
- | 'mistral/mistral-embed'
15
- | 'openai/text-embedding-3-large'
16
- | 'openai/text-embedding-3-small'
17
- | 'openai/text-embedding-ada-002'
18
- | 'perplexity/pplx-embed-v1-0.6b'
19
- | 'perplexity/pplx-embed-v1-4b'
20
- | 'voyage/voyage-3-large'
21
- | 'voyage/voyage-3.5'
22
- | 'voyage/voyage-3.5-lite'
23
- | 'voyage/voyage-4'
24
- | 'voyage/voyage-4-large'
25
- | 'voyage/voyage-4-lite'
26
- | 'voyage/voyage-code-2'
27
- | 'voyage/voyage-code-3'
28
- | 'voyage/voyage-finance-2'
29
- | 'voyage/voyage-law-2'
4
+ | GatewayModelIds['embedding']
30
5
  | (string & {});
@@ -1 +1,5 @@
1
- export type GatewayExtractionModelId = string & {};
1
+ import type { GatewayModelIds } from './gateway-model-catalog';
2
+
3
+ export type GatewayExtractionModelId =
4
+ | GatewayModelIds['extraction']
5
+ | (string & {});
@@ -1,46 +1,3 @@
1
- export type GatewayImageModelId =
2
- | 'bfl/flux-2-flex'
3
- | 'bfl/flux-2-klein-4b'
4
- | 'bfl/flux-2-klein-9b'
5
- | 'bfl/flux-2-max'
6
- | 'bfl/flux-2-pro'
7
- | 'bfl/flux-3-image'
8
- | 'bfl/flux-3-image-klein'
9
- | 'bfl/flux-kontext-max'
10
- | 'bfl/flux-kontext-pro'
11
- | 'bfl/flux-pro-1.0-fill'
12
- | 'bfl/flux-pro-1.1'
13
- | 'bfl/flux-pro-1.1-ultra'
14
- | 'bytedance/seedream-4.0'
15
- | 'bytedance/seedream-4.5'
16
- | 'bytedance/seedream-5.0-lite'
17
- | 'bytedance/seedream-5.0-pro'
18
- | 'bytedance/seedream-5.5'
19
- | 'meta/muse-image-1.0'
20
- | 'microsoft/mai-image-2.6'
21
- | 'microsoft/mai-image-2.6-flash'
22
- | 'microsoft/mai-image-2.7'
23
- | 'microsoft/mai-image-2.7-flash'
24
- | 'minimax/minimax-h3-image'
25
- | 'minimax/minimax-h3-image-highspeed'
26
- | 'openai/gpt-image-1-mini'
27
- | 'openai/gpt-image-1.5'
28
- | 'openai/gpt-image-2'
29
- | 'openai/gpt-image-2.5-flare'
30
- | 'openai/gpt-image-2.5-sunburst'
31
- | 'openai/gpt-image-2.6-flare'
32
- | 'openai/gpt-image-2.6-sunburst'
33
- | 'prodia/flux-fast-schnell'
34
- | 'recraft/recraft-v2'
35
- | 'recraft/recraft-v3'
36
- | 'recraft/recraft-v4'
37
- | 'recraft/recraft-v4-pro'
38
- | 'recraft/recraft-v4.1'
39
- | 'recraft/recraft-v4.1-flash'
40
- | 'recraft/recraft-v4.1-pro'
41
- | 'recraft/recraft-v4.1-utility'
42
- | 'recraft/recraft-v4.1-utility-pro'
43
- | 'spacexai/grok-imagine-image'
44
- | 'spacexai/grok-imagine-image-2.0'
45
- | 'topaz/wonder-3.5'
46
- | (string & {});
1
+ import type { GatewayModelIds } from './gateway-model-catalog';
2
+
3
+ export type GatewayImageModelId = GatewayModelIds['image'] | (string & {});
@@ -1,324 +1,3 @@
1
- export type GatewayModelId =
2
- | 'alibaba/qwen-3-14b'
3
- | 'alibaba/qwen-3-30b'
4
- | 'alibaba/qwen-3-32b'
5
- | 'alibaba/qwen3-coder-30b-a3b'
6
- | 'alibaba/qwen3-coder-next'
7
- | 'alibaba/qwen3-max-thinking'
8
- | 'alibaba/qwen3-next-80b-a3b-instruct'
9
- | 'alibaba/qwen3-vl-instruct'
10
- | 'alibaba/qwen3.5-flash'
11
- | 'alibaba/qwen3.5-plus'
12
- | 'alibaba/qwen3.6-27b'
13
- | 'alibaba/qwen3.6-35b-a3b'
14
- | 'alibaba/qwen3.6-plus'
15
- | 'alibaba/qwen3.7-flash'
16
- | 'alibaba/qwen3.7-max'
17
- | 'alibaba/qwen3.7-plus'
18
- | 'alibaba/qwen3.8-2.4t-a95b'
19
- | 'alibaba/qwen3.8-27b'
20
- | 'alibaba/qwen3.8-flash'
21
- | 'alibaba/qwen3.8-max'
22
- | 'alibaba/qwen3.8-max-0902'
23
- | 'alibaba/qwen3.8-max-prime'
24
- | 'alibaba/qwen3.8-omni-flash'
25
- | 'alibaba/qwen4-max'
26
- | 'amazon/nova-2-lite'
27
- | 'amazon/nova-lite'
28
- | 'amazon/nova-micro'
29
- | 'amazon/nova-pro'
30
- | 'anthropic/claude-fable-5'
31
- | 'anthropic/claude-fable-5-batch'
32
- | 'anthropic/claude-fable-5.1'
33
- | 'anthropic/claude-fable-5.1-batch'
34
- | 'anthropic/claude-fable-5.2'
35
- | 'anthropic/claude-fable-5.2-batch'
36
- | 'anthropic/claude-fable-5.2-fast'
37
- | 'anthropic/claude-haiku-4.5'
38
- | 'anthropic/claude-haiku-4.5-batch'
39
- | 'anthropic/claude-haiku-5.5'
40
- | 'anthropic/claude-haiku-5.5-batch'
41
- | 'anthropic/claude-opus-4.5'
42
- | 'anthropic/claude-opus-4.5-batch'
43
- | 'anthropic/claude-opus-4.6'
44
- | 'anthropic/claude-opus-4.6-batch'
45
- | 'anthropic/claude-opus-4.7'
46
- | 'anthropic/claude-opus-4.7-batch'
47
- | 'anthropic/claude-opus-4.8'
48
- | 'anthropic/claude-opus-4.8-batch'
49
- | 'anthropic/claude-opus-4.8-fast'
50
- | 'anthropic/claude-opus-5'
51
- | 'anthropic/claude-opus-5-batch'
52
- | 'anthropic/claude-opus-5-fast'
53
- | 'anthropic/claude-opus-5.5'
54
- | 'anthropic/claude-opus-5.5-batch'
55
- | 'anthropic/claude-opus-5.5-fast'
56
- | 'anthropic/claude-sonnet-4.5'
57
- | 'anthropic/claude-sonnet-4.5-batch'
58
- | 'anthropic/claude-sonnet-4.6'
59
- | 'anthropic/claude-sonnet-4.6-batch'
60
- | 'anthropic/claude-sonnet-5'
61
- | 'anthropic/claude-sonnet-5-batch'
62
- | 'anthropic/claude-sonnet-5.5'
63
- | 'anthropic/claude-sonnet-5.5-batch'
64
- | 'bytedance/seed-2.1-turbo'
65
- | 'callstack/apex'
66
- | 'cohere/command-a'
67
- | 'deepseek/deepseek-r1'
68
- | 'deepseek/deepseek-v3.1'
69
- | 'deepseek/deepseek-v3.2'
70
- | 'deepseek/deepseek-v3.2-thinking'
71
- | 'deepseek/deepseek-v4-flash'
72
- | 'deepseek/deepseek-v4-flash-0731'
73
- | 'deepseek/deepseek-v4-flash-vision-exp'
74
- | 'deepseek/deepseek-v4-pro'
75
- | 'deepseek/deepseek-v4-pro-0813'
76
- | 'deepseek/deepseek-v4.1-flash'
77
- | 'deepseek/deepseek-v4.1-flash-1017'
78
- | 'deepseek/deepseek-v4.1-flash-1017-fast'
79
- | 'deepseek/deepseek-v4.1-flash-1017-ultrafast'
80
- | 'deepseek/deepseek-v4.1-flash-fast'
81
- | 'elorian/glimpse'
82
- | 'fireworks/ember-1'
83
- | 'google/gemini-2.5-flash'
84
- | 'google/gemini-2.5-flash-batch'
85
- | 'google/gemini-2.5-flash-image'
86
- | 'google/gemini-2.5-flash-lite'
87
- | 'google/gemini-2.5-flash-lite-batch'
88
- | 'google/gemini-2.5-pro'
89
- | 'google/gemini-2.5-pro-batch'
90
- | 'google/gemini-3-flash'
91
- | 'google/gemini-3-flash-batch'
92
- | 'google/gemini-3-pro-image'
93
- | 'google/gemini-3.1-flash-image'
94
- | 'google/gemini-3.1-flash-lite'
95
- | 'google/gemini-3.1-flash-lite-batch'
96
- | 'google/gemini-3.1-flash-lite-image'
97
- | 'google/gemini-3.1-pro-preview'
98
- | 'google/gemini-3.1-pro-preview-batch'
99
- | 'google/gemini-3.5-flash'
100
- | 'google/gemini-3.5-flash-lite'
101
- | 'google/gemini-3.5-flash-lite-batch'
102
- | 'google/gemini-3.6-flash'
103
- | 'google/gemini-3.6-flash-batch'
104
- | 'google/gemini-3.7-flash'
105
- | 'google/gemini-3.8-flash'
106
- | 'google/gemini-4-argon'
107
- | 'google/gemini-4-carbon'
108
- | 'google/gemini-4-hydrogen'
109
- | 'google/gemini-nano-banana-2.1'
110
- | 'google/gemini-omni-1.2-flash'
111
- | 'google/gemini-omni-flash-preview'
112
- | 'google/gemma-4-26b-a4b-it'
113
- | 'google/gemma-4-31b-it'
114
- | 'humansand/ampersand-v0.1'
115
- | 'inception/mercury-3'
116
- | 'inclusionai/ling-3.0-flash'
117
- | 'inclusionai/ling-3.0-flash-fin'
118
- | 'inclusionai/ling-3.0-flash-sante'
119
- | 'inclusionai/ling-3.0-flash-vl'
120
- | 'inclusionai/ling-3.1-flash'
121
- | 'inclusionai/ling-3.1-flash-1019'
122
- | 'inference-net/schematron-v2-small'
123
- | 'inference-net/schematron-v2-turbo'
124
- | 'interfaze/interfaze-beta'
125
- | 'liquid/lfm2.5-24b-a2b'
126
- | 'meituan/longcat-2.5'
127
- | 'meta/llama-3.1-70b'
128
- | 'meta/llama-3.1-8b'
129
- | 'meta/llama-3.3-70b'
130
- | 'meta/llama-4-maverick'
131
- | 'meta/llama-4-scout'
132
- | 'meta/muse-ember'
133
- | 'meta/muse-glimmer-30b'
134
- | 'meta/muse-spark-1.1'
135
- | 'meta/muse-spark-1.2'
136
- | 'meta/muse-spark-1.2-contributor'
137
- | 'meta/muse-spark-1.3'
138
- | 'meta/muse-spark-1.3-contributor'
139
- | 'meta/muse-spark-open'
140
- | 'meta/muse-wonder-1.0'
141
- | 'minimax/minimax-m2.1'
142
- | 'minimax/minimax-m2.5'
143
- | 'minimax/minimax-m2.7'
144
- | 'minimax/minimax-m3'
145
- | 'minimax/minimax-m3.1-flash'
146
- | 'mistral/codestral'
147
- | 'mistral/ministral-14b'
148
- | 'mistral/ministral-3b'
149
- | 'mistral/ministral-8b'
150
- | 'mistral/mistral-large-3'
151
- | 'mistral/mistral-large-4'
152
- | 'mistral/mistral-medium-3.5'
153
- | 'mistral/mistral-nemo'
154
- | 'mistral/mistral-small'
155
- | 'mixedbread/toast-1'
156
- | 'moonshotai/kimi-k2'
157
- | 'moonshotai/kimi-k2.5'
158
- | 'moonshotai/kimi-k2.6'
159
- | 'moonshotai/kimi-k2.7-code'
160
- | 'moonshotai/kimi-k2.7-code-highspeed'
161
- | 'moonshotai/kimi-k3'
162
- | 'moonshotai/kimi-k3-fast'
163
- | 'moonshotai/kimi-k3.1-pro'
164
- | 'moonshotai/kimi-k3.1-pro-highspeed'
165
- | 'morph/morph-v3-fast'
166
- | 'morph/morph-v3-large'
167
- | 'nvidia/nemotron-3-super-120b-a12b'
168
- | 'nvidia/nemotron-3-ultra-550b-a55b'
169
- | 'nvidia/nemotron-3.5-lightning'
170
- | 'nvidia/nemotron-3.5-lightning-free'
171
- | 'nvidia/nemotron-3.5-super-vl'
172
- | 'nvidia/nemotron-nano-12b-v2-vl'
173
- | 'nvidia/nemotron-nano-9b-v2'
174
- | 'openai/gpt-4.1'
175
- | 'openai/gpt-4.1-batch'
176
- | 'openai/gpt-4.1-fast'
177
- | 'openai/gpt-4.1-mini'
178
- | 'openai/gpt-4.1-mini-batch'
179
- | 'openai/gpt-4.1-mini-fast'
180
- | 'openai/gpt-4.1-nano'
181
- | 'openai/gpt-4o'
182
- | 'openai/gpt-4o-batch'
183
- | 'openai/gpt-4o-fast'
184
- | 'openai/gpt-4o-mini'
185
- | 'openai/gpt-4o-mini-batch'
186
- | 'openai/gpt-4o-mini-fast'
187
- | 'openai/gpt-5'
188
- | 'openai/gpt-5-batch'
189
- | 'openai/gpt-5-codex'
190
- | 'openai/gpt-5-fast'
191
- | 'openai/gpt-5-mini'
192
- | 'openai/gpt-5-mini-batch'
193
- | 'openai/gpt-5-mini-fast'
194
- | 'openai/gpt-5-nano'
195
- | 'openai/gpt-5-nano-batch'
196
- | 'openai/gpt-5-pro'
197
- | 'openai/gpt-5-pro-batch'
198
- | 'openai/gpt-5.1-codex'
199
- | 'openai/gpt-5.1-codex-max'
200
- | 'openai/gpt-5.1-codex-mini'
201
- | 'openai/gpt-5.1-thinking'
202
- | 'openai/gpt-5.1-thinking-fast'
203
- | 'openai/gpt-5.2'
204
- | 'openai/gpt-5.2-batch'
205
- | 'openai/gpt-5.2-codex'
206
- | 'openai/gpt-5.2-fast'
207
- | 'openai/gpt-5.2-pro'
208
- | 'openai/gpt-5.3-codex'
209
- | 'openai/gpt-5.3-codex-fast'
210
- | 'openai/gpt-5.4'
211
- | 'openai/gpt-5.4-batch'
212
- | 'openai/gpt-5.4-fast'
213
- | 'openai/gpt-5.4-mini'
214
- | 'openai/gpt-5.4-mini-batch'
215
- | 'openai/gpt-5.4-mini-fast'
216
- | 'openai/gpt-5.4-nano'
217
- | 'openai/gpt-5.4-nano-batch'
218
- | 'openai/gpt-5.4-pro'
219
- | 'openai/gpt-5.5'
220
- | 'openai/gpt-5.5-batch'
221
- | 'openai/gpt-5.5-fast'
222
- | 'openai/gpt-5.5-pro'
223
- | 'openai/gpt-5.5-pro-batch'
224
- | 'openai/gpt-5.6-luna'
225
- | 'openai/gpt-5.6-luna-batch'
226
- | 'openai/gpt-5.6-luna-fast'
227
- | 'openai/gpt-5.6-sol'
228
- | 'openai/gpt-5.6-sol-batch'
229
- | 'openai/gpt-5.6-sol-fast'
230
- | 'openai/gpt-5.6-terra'
231
- | 'openai/gpt-5.6-terra-batch'
232
- | 'openai/gpt-5.6-terra-fast'
233
- | 'openai/gpt-6-astra'
234
- | 'openai/gpt-6-astra-batch'
235
- | 'openai/gpt-6-astra-fast'
236
- | 'openai/gpt-6-luna'
237
- | 'openai/gpt-6-luna-batch'
238
- | 'openai/gpt-6-luna-fast'
239
- | 'openai/gpt-6-sol'
240
- | 'openai/gpt-6-sol-batch'
241
- | 'openai/gpt-6-sol-fast'
242
- | 'openai/gpt-6.1-sol'
243
- | 'openai/gpt-6.1-sol-batch'
244
- | 'openai/gpt-6.1-sol-fast'
245
- | 'openai/gpt-6.1-terra'
246
- | 'openai/gpt-6.1-terra-fast'
247
- | 'openai/gpt-6.2-astra'
248
- | 'openai/gpt-6.2-astra-fast'
249
- | 'openai/gpt-6.2-sol'
250
- | 'openai/gpt-6.2-sol-fast'
251
- | 'openai/gpt-oss-120b'
252
- | 'openai/gpt-oss-20b'
253
- | 'openai/gpt-oss-safeguard-120b'
254
- | 'openai/gpt-oss-safeguard-20b'
255
- | 'openai/o1'
256
- | 'openai/o3'
257
- | 'openai/o3-fast'
258
- | 'openai/o3-mini'
259
- | 'openai/o3-pro'
260
- | 'openai/o4-mini'
261
- | 'paperinstruments/ultramarine-1-flash'
262
- | 'particle/particle-1'
263
- | 'perplexity/sonar'
264
- | 'quiverai/arrow-2'
265
- | 'quiverai/arrow-2-telos'
266
- | 'recursive/flint-v1.0'
267
- | 'reflection/beam'
268
- | 'reflection/beam-free'
269
- | 'sakana/fugu-max'
270
- | 'sakana/fugu-ultra'
271
- | 'sakana/fugu-ultra-v2'
272
- | 'sakana/namazu'
273
- | 'scaledown/scaledown-extract-1'
274
- | 'scaledown/scaledown-summarize-1'
275
- | 'spacexai/grok-4.20-multi-agent'
276
- | 'spacexai/grok-4.20-multi-agent-batch'
277
- | 'spacexai/grok-4.20-multi-agent-beta'
278
- | 'spacexai/grok-4.20-non-reasoning'
279
- | 'spacexai/grok-4.20-non-reasoning-batch'
280
- | 'spacexai/grok-4.20-non-reasoning-beta'
281
- | 'spacexai/grok-4.20-reasoning'
282
- | 'spacexai/grok-4.20-reasoning-batch'
283
- | 'spacexai/grok-4.20-reasoning-beta'
284
- | 'spacexai/grok-4.3'
285
- | 'spacexai/grok-4.3-batch'
286
- | 'spacexai/grok-4.5'
287
- | 'spacexai/grok-4.6'
288
- | 'spacexai/grok-4.7'
289
- | 'spacexai/grok-build-0.1'
290
- | 'stealth/glyph-cluster'
291
- | 'stepfun/step-3.7-flash'
292
- | 'stepfun/step-5-preview'
293
- | 'tencent/hy-mt2-lite'
294
- | 'tencent/hy-mt2-plus'
295
- | 'tencent/hy-mt2-pro'
296
- | 'tencent/hy3'
297
- | 'tencent/hy4'
298
- | 'tencent/hy4-flash'
299
- | 'tencent/hy4-preview'
300
- | 'thinkingmachines/inkling'
301
- | 'thinkingmachines/inkling-2-small'
302
- | 'thinkingmachines/inkling-small'
303
- | 'xiaomi/mimo-v2.6-flash'
304
- | 'xiaomi/mimo-v2.6-pro'
305
- | 'xiaomi/mimo-v2.6-pro-ultraspeed'
306
- | 'zai/glm-4.5'
307
- | 'zai/glm-4.5-air'
308
- | 'zai/glm-4.5v'
309
- | 'zai/glm-4.6'
310
- | 'zai/glm-4.7'
311
- | 'zai/glm-4.7-flash'
312
- | 'zai/glm-4.7-flashx'
313
- | 'zai/glm-5'
314
- | 'zai/glm-5-turbo'
315
- | 'zai/glm-5.1'
316
- | 'zai/glm-5.2'
317
- | 'zai/glm-5.2-fast'
318
- | 'zai/glm-5.3'
319
- | 'zai/glm-5.3-fast'
320
- | 'zai/glm-5.3-flash'
321
- | 'zai/glm-5.3-flashx'
322
- | 'zai/glm-5.3-flashx-legal'
323
- | 'zai/glm-5v-turbo'
324
- | (string & {});
1
+ import type { GatewayModelIds } from './gateway-model-catalog';
2
+
3
+ export type GatewayModelId = GatewayModelIds['language'] | (string & {});