> = PerRequestPricing * no code changes needed. */ interface ToolHostingConfig
> {
+ /** Optional predicate for tools where hosted keys only apply to some parameter combinations. */
+ enabled?: (params: P) => boolean
/**
* Env var name prefix for hosted keys.
* At runtime, `{envKeyPrefix}_COUNT` is read to determine how many keys exist,
diff --git a/apps/sim/tools/video/falai.ts b/apps/sim/tools/video/falai.ts
index 77999d87820..b2314472f4d 100644
--- a/apps/sim/tools/video/falai.ts
+++ b/apps/sim/tools/video/falai.ts
@@ -1,3 +1,4 @@
+import { FALAI_HOSTED_KEY_MARKUP_MULTIPLIER } from '@/lib/tools/falai-pricing'
import type { ToolConfig } from '@/tools/types'
import type { VideoParams, VideoResponse } from '@/tools/video/types'
import { parseBooleanParam, parseBooleanParamWithDefault } from '@/tools/video/utils'
@@ -68,6 +69,37 @@ export const falaiVideoTool: ToolConfig