Member Junction
    Preparing search index...
    • Estimates the worst-case cost in USD of a single image (units = 1, usageKind = 'Images') or video (units = durationSeconds, usageKind = 'Seconds') generation call by resolving the carrier prompt (AIVideoRunner.GENERATIVE_PROMPT_NAME or AIImageGenerationRunner.DEFAULT_PROMPT_NAME) and pricing every Active/Preview bound PromptModel via AIEngineBase.Instance.CalculateModelCost (VS-GEN-6).

      Fails closed by throwing when the carrier prompt or its PromptModels are missing, or when any bound candidate has no valid price (since NextBestModel failover can reach any bound candidate). Returns the maximum cost across all bound candidates.

      Parameters

      Returns Promise<number>