From cc958bcef5d01893d1725f7658e9a759f3a9ba07 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 2 Dec 2025 14:27:39 -0800 Subject: [PATCH] feat(models): added xai models and updated gemini pricing --- apps/sim/providers/models.ts | 72 +++++++++++++++++++++++++++++++----- 1 file changed, 62 insertions(+), 10 deletions(-) diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index 6111db81896..04ecdb71825 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -684,10 +684,10 @@ export const PROVIDER_DEFINITIONS: Record = { { id: 'gemini-2.5-pro', pricing: { - input: 0.15, - cachedInput: 0.075, - output: 0.6, - updatedAt: '2025-06-17', + input: 1.25, + cachedInput: 0.125, + output: 10.0, + updatedAt: '2025-12-02', }, capabilities: { temperature: { min: 0, max: 2 }, @@ -697,10 +697,23 @@ export const PROVIDER_DEFINITIONS: Record = { { id: 'gemini-2.5-flash', pricing: { - input: 0.15, - cachedInput: 0.075, - output: 0.6, - updatedAt: '2025-06-17', + input: 0.3, + cachedInput: 0.03, + output: 2.5, + updatedAt: '2025-12-02', + }, + capabilities: { + temperature: { min: 0, max: 2 }, + }, + contextWindow: 1048576, + }, + { + id: 'gemini-2.5-flash-lite', + pricing: { + input: 0.1, + cachedInput: 0.01, + output: 0.4, + updatedAt: '2025-12-02', }, capabilities: { temperature: { min: 0, max: 2 }, @@ -772,15 +785,54 @@ export const PROVIDER_DEFINITIONS: Record = { id: 'grok-4-latest', pricing: { input: 3.0, - cachedInput: 1.5, + cachedInput: 0.75, output: 15.0, - updatedAt: '2025-10-11', + updatedAt: '2025-12-02', }, capabilities: { temperature: { min: 0, max: 1 }, }, contextWindow: 256000, }, + { + id: 'grok-4-0709', + pricing: { + input: 3.0, + cachedInput: 0.75, + output: 15.0, + updatedAt: '2025-12-02', + }, + capabilities: { + temperature: { min: 0, max: 1 }, + }, + contextWindow: 256000, + }, + { + id: 'grok-4-1-fast-reasoning', + pricing: { + input: 0.2, + cachedInput: 0.05, + output: 0.5, + updatedAt: '2025-12-02', + }, + capabilities: { + temperature: { min: 0, max: 1 }, + }, + contextWindow: 2000000, + }, + { + id: 'grok-4-1-fast-non-reasoning', + pricing: { + input: 0.2, + cachedInput: 0.05, + output: 0.5, + updatedAt: '2025-12-02', + }, + capabilities: { + temperature: { min: 0, max: 1 }, + }, + contextWindow: 2000000, + }, { id: 'grok-4-fast-reasoning', pricing: {