Add Gemini Image node static pricing (#5219)

* Add Gemini Image node static pricing

* Update locales [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Jedrzej Kosinski
2025-08-26 17:53:10 -07:00
committed by GitHub
parent 9e8db6125c
commit 48b1ebf6cc
10 changed files with 19 additions and 0 deletions

View File

@@ -1332,6 +1332,9 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
return 'Token-based'
}
},
GeminiImageNode: {
displayPrice: '$0.03 per 1K tokens'
},
// OpenAI nodes
OpenAIChatNode: {
displayPrice: (node: LGraphNode): string => {

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "تم رفض إذن الميكروفون",
"migrate": "ترحيل",
"missing": "مفقود",
"moreWorkflows": "المزيد من سير العمل",
"name": "الاسم",
"newFolder": "مجلد جديد",
"next": "التالي",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "Permiso de micrófono denegado",
"migrate": "Migrar",
"missing": "Faltante",
"moreWorkflows": "Más flujos de trabajo",
"name": "Nombre",
"newFolder": "Nueva carpeta",
"next": "Siguiente",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "Permission du microphone refusée",
"migrate": "Migrer",
"missing": "Manquant",
"moreWorkflows": "Plus de workflows",
"name": "Nom",
"newFolder": "Nouveau dossier",
"next": "Suivant",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "マイクの許可が拒否されました",
"migrate": "移行する",
"missing": "不足している",
"moreWorkflows": "さらに多くのワークフロー",
"name": "名前",
"newFolder": "新しいフォルダー",
"next": "次へ",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "마이크 권한이 거부되었습니다",
"migrate": "이전(migrate)",
"missing": "누락됨",
"moreWorkflows": "더 많은 워크플로우",
"name": "이름",
"newFolder": "새 폴더",
"next": "다음",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "Доступ к микрофону запрещён",
"migrate": "Мигрировать",
"missing": "Отсутствует",
"moreWorkflows": "Больше рабочих процессов",
"name": "Имя",
"newFolder": "Новая папка",
"next": "Далее",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "麥克風權限被拒絕",
"migrate": "遷移",
"missing": "缺少",
"moreWorkflows": "更多工作流程",
"name": "名稱",
"newFolder": "新資料夾",
"next": "下一步",

View File

@@ -341,6 +341,7 @@
"micPermissionDenied": "麦克风权限被拒绝",
"migrate": "迁移",
"missing": "缺失",
"moreWorkflows": "更多工作流",
"name": "名称",
"newFolder": "新文件夹",
"next": "下一个",

View File

@@ -1561,6 +1561,14 @@ describe('useNodePricing', () => {
const price = getNodeDisplayPrice(node)
expect(price).toBe('Token-based')
})
it('should return static price for GeminiImageNode', () => {
const { getNodeDisplayPrice } = useNodePricing()
const node = createMockNode('GeminiImageNode')
const price = getNodeDisplayPrice(node)
expect(price).toBe('$0.03 per 1K tokens')
})
})
describe('Additional RunwayML edge cases', () => {