MCPcopy Index your code
hub / github.com/simstudioai/sim / getModelPricing

Function getModelPricing

apps/sim/providers/utils.ts:812–819  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

810}
811
812export function getModelPricing(modelId: string): any {
813 const embeddingPricing = getEmbeddingModelPricing(modelId)
814 if (embeddingPricing) {
815 return embeddingPricing
816 }
817
818 return getModelPricingFromDefinitions(modelId)
819}
820
821/**
822 * Format cost as a credit string for display.

Callers 2

utils.test.tsFile · 0.90
updateUserStatsForWandFunction · 0.90

Calls 1

getEmbeddingModelPricingFunction · 0.90

Tested by

no test coverage detected