Skip to content

Commit 9c6ae59

Browse files
committed
feat(models): add grok-4.6 and make it the xAI flagship
Verified every field against xAI's live API with the staging hosted key: context_length 500000, $2.00/$0.50/$6.00 per 1M, temperature capped at 2, tool calling and max_completion_tokens both accepted. Also feature the latest blog post.
1 parent 5cf60f6 commit 9c6ae59

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

apps/sim/content/blog/secret-provenance/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ogAlt: 'Sim secret provenance technical overview'
1313
about: ['Security', 'Execution']
1414
timeRequired: PT12M
1515
canonical: https://www.sim.ai/blog/secret-provenance
16-
featured: false
16+
featured: true
1717
draft: false
1818
faq:
1919
- q: "How does Sim keep API keys out of workflow execution logs?"

apps/sim/providers/models.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,14 @@ describe('kimi provider definition', () => {
362362
describe('xai provider definition', () => {
363363
const xai = PROVIDER_DEFINITIONS.xai
364364

365-
it('is registered with grok-4.5 as the default model', () => {
365+
it('is registered with grok-4.6 as the default model', () => {
366366
expect(xai).toBeDefined()
367367
expect(xai.id).toBe('xai')
368-
expect(xai.defaultModel).toBe('grok-4.5')
368+
expect(xai.defaultModel).toBe('grok-4.6')
369369
})
370370

371371
it('is included in getHostedModels since Sim provides the xAI key server-side', () => {
372+
expect(getHostedModels()).toContain('grok-4.6')
372373
expect(getHostedModels()).toContain('grok-4.5')
373374
})
374375
})

apps/sim/providers/models.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,14 +2135,29 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
21352135
fileAttachment: { maxBytes: 20 * 1024 * 1024, strategy: 'remote-url' },
21362136
name: 'xAI',
21372137
description: "xAI's Grok models",
2138-
defaultModel: 'grok-4.5',
2138+
defaultModel: 'grok-4.6',
21392139
modelPatterns: [/^grok/],
21402140
icon: xAIIcon,
21412141
color: '#555555',
21422142
capabilities: {
21432143
toolUsageControl: true,
21442144
},
21452145
models: [
2146+
{
2147+
id: 'grok-4.6',
2148+
pricing: {
2149+
input: 2.0,
2150+
cachedInput: 0.5,
2151+
output: 6.0,
2152+
updatedAt: '2026-08-12',
2153+
},
2154+
capabilities: {
2155+
temperature: { min: 0, max: 2 },
2156+
},
2157+
contextWindow: 500000,
2158+
releaseDate: '2026-08-12',
2159+
recommended: true,
2160+
},
21462161
{
21472162
id: 'grok-4.5',
21482163
pricing: {
@@ -2155,7 +2170,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
21552170
},
21562171
contextWindow: 500000,
21572172
releaseDate: '2026-07-08',
2158-
recommended: true,
21592173
},
21602174
{
21612175
id: 'grok-4.3',

0 commit comments

Comments
 (0)