In Altan, task credits represent the cost of executing workflows and their components. Each workflow module or action consumes credits based on its type, complexity, and resource usage. Here's a simple breakdown:
View credit consumption#
You can view credit consumption from the dashboard or from particular worklfow executions.
How Credits Are Calculated:#
1.
Module Type
Each module type has a different credit cost:Free Modules (0 credits):
Modules like Altaners, Responses, Octopus, Variables, Aggregators, Iterators, and Routers.
Basic Modules (1 credit):
Modules like Invoke, AI Agents, Code Execution, Search, and Actions.Search modules in loops: Additional credits apply for each iteration beyond the first.
2.
Execution Time
Modules (except Aggregators, Iterators, and Routers) also incur credits based on the time taken to execute:The cost per second decreases logarithmically for longer executions, ensuring efficiency is rewarded.
3.
Payload Size
Larger payloads incur additional credits:Cost scales logarithmically with the size of data processed.
4.
Retries
Each retry increases the cost:Total credits for a module multiply by the number of retries (e.g., 1 retry = 2x credits).
Why Task Credits?#
Altan's credit system ensures transparency and fairness, aligning costs with resource usage and complexity. You can monitor your workflows’ credit usage in real-time, helping you optimize both performance and cost.Let me know if you'd like further refinements! Modified at 2024-11-19 15:18:02