Skip to main content

Cost Calculation

Klyntos automatically calculates costs for all workflow executions, providing transparent pricing based on AI model usage and execution charges. Understanding these costs helps you optimize workflows and manage your budget effectively.

How Costs Are Calculated

Every workflow execution includes two cost components:

Base Execution Charge: $0.001 per execution

AI Model Usage: Variable cost based on token consumption

modelCost = (inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000
totalCost = baseExecutionCharge + modelCost
info

AI model prices are per million tokens. The calculation divides by 1,000,000 to get the actual cost. Workflows without AI blocks only incur the base execution charge.

Model Breakdown in Logs

For workflows using AI blocks, you can view detailed cost information in the logs:

The model breakdown shows:

  • Token Usage: Input and output token counts for each model
  • Cost Breakdown: Individual costs per model and operation
  • Model Distribution: Which models were used and how many times
  • Total Cost: Aggregate cost for the entire workflow execution

Pricing Options

info

Pricing shown reflects rates as of September 10, 2025. Check provider documentation for current pricing.

Cost Optimization Strategies

Model Selection

Choose models based on task complexity. Simple tasks can use GPT-4.1-nano ($0.10/$0.40) while complex reasoning might need o1 or Claude Opus.

Prompt Engineering

Well-structured, concise prompts reduce token usage without sacrificing quality.

Local Models

Use Ollama for non-critical tasks to eliminate API costs entirely.

Caching and Reuse

Store frequently used results in variables or files to avoid repeated AI model calls.

Batch Processing

Process multiple items in a single AI request rather than making individual calls.

Usage Monitoring

Monitor your usage and billing in Settings → Subscription:

  • Current Usage: Real-time usage and costs for the current period
  • Usage Limits: Plan limits with visual progress indicators
  • Billing Details: Projected charges and minimum commitments
  • Plan Management: Upgrade options and billing history

Programmatic Usage Tracking

You can query your current usage and limits programmatically using the API:

Endpoint:

GET /api/users/me/usage-limits

Authentication:

  • Include your API key in the X-API-Key header

Example Request:

curl -X GET -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" https://klyntos.com/api/users/me/usage-limits

Example Response:

{
"success": true,
"rateLimit": {
"sync": { "isLimited": false, "limit": 10, "remaining": 10, "resetAt": "2025-09-08T22:51:55.999Z" },
"async": { "isLimited": false, "limit": 50, "remaining": 50, "resetAt": "2025-09-08T22:51:56.155Z" },
"authType": "api"
},
"usage": {
"currentPeriodCost": 12.34,
"limit": 100,
"plan": "pro"
}
}

Response Fields:

  • currentPeriodCost reflects usage in the current billing period
  • limit is derived from individual limits (Free/Pro) or pooled organization limits (Team/Enterprise)
  • plan is the highest-priority active plan associated with your user

Plan Limits

Different subscription plans have different usage limits:

PlanMonthly Usage LimitRate Limits (per minute)
Free$105 sync, 10 async
Pro$10010 sync, 50 async
Team$500 (pooled)50 sync, 100 async
EnterpriseCustomCustom

Cost Management Best Practices

  1. Monitor Regularly: Check your usage dashboard frequently to avoid surprises
  2. Set Budgets: Use plan limits as guardrails for your spending
  3. Optimize Workflows: Review high-cost executions and optimize prompts or model selection
  4. Use Appropriate Models: Match model complexity to task requirements
  5. Batch Similar Tasks: Combine multiple requests when possible to reduce overhead

Next Steps