Skip to content

Automate browser based workflows with AI

update to $0.05 per step both in frontend and backend (#3495)

Shuchang Zheng38fe260d2c91
diff --git a/skyvern/forge/sdk/workflow/service.py b/skyvern/forge/sdk/workflow/service.py
index 6f4284567..b8d32a58d 100644
--- a/skyvern/forge/sdk/workflow/service.py
+++ b/skyvern/forge/sdk/workflow/service.py
@@ -1430,7 +1430,7 @@ class WorkflowService:
# TODO: This is a temporary cost calculation. We need to implement a more accurate cost calculation.
# successful steps are the ones that have a status of completed and the total count of unique step.order
successful_steps = [step for step in workflow_run_steps if step.status == StepStatus.completed]
- total_cost = 0.1 * (len(successful_steps) + len(text_prompt_blocks))
+ total_cost = 0.05 * (len(successful_steps) + len(text_prompt_blocks))
return WorkflowRunResponseBase(
workflow_id=workflow.workflow_permanent_id,
workflow_run_id=workflow_run_id,