Logging and Cost Calculation
Understanding workflow logs and how execution costs are calculated in Visual Workflow AI
Visual Workflow AI provides comprehensive logging for workflow executions and automatic cost calculation for AI model usage.
Logging System
Visual Workflow AI offers two complementary logging interfaces:
Real-Time Console (Manual Executions)
During manual workflow execution, logs appear in real-time in the Console panel on the right side of the workflow editor:
The console shows:
- Block execution progress with active block highlighting
- Real-time outputs as blocks complete
- Execution timing for each block
- Success/error status indicators
Logs Page (All Executions)
All workflow executions—whether triggered manually, via API, Chat, Schedule, or Webhook—are logged to the dedicated Logs page:
The Logs page provides:
- Comprehensive filtering by time range, status, trigger type, folder, and workflow
- Search functionality across all logs
- Live mode for real-time updates
- 7-day log retention (upgradeable for longer retention)
Log Details Sidebar
Clicking on any log entry opens a detailed sidebar view:
Block Input/Output
View the complete data flow for each block with tabs to switch between:
Output Tab shows the block's execution result:
- Structured data with JSON formatting
- Markdown rendering for AI-generated content
- Copy button for easy data extraction
Input Tab displays what was passed to the block:
- Resolved variable values
- Referenced outputs from other blocks
- Environment variables used
- API keys are automatically redacted for security
Execution Timeline
For workflow-level logs, view detailed execution metrics:
- Start and end timestamps
- Total workflow duration
- Individual block execution times
- Performance bottleneck identification
Model Breakdown
For workflows using AI blocks, expand the Model Breakdown section to see:
- 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
Workflow Snapshot
For any logged execution, click "View Snapshot" to see the exact workflow state at execution time:
The snapshot provides:
- Frozen canvas showing the workflow structure
- Block states and connections as they were during execution
- Click any block to see its inputs and outputs
- Useful for debugging workflows that have since been modified
Workflow snapshots are only available for executions after the enhanced logging system was introduced. Older migrated logs show a "Logged State Not Found" message.
Cost Calculation
Visual Workflow AI automatically calculates costs for all AI model usage:
How Costs Are Calculated
cost = (inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000
Prices are per million tokens. The calculation divides by 1,000,000 to get the actual cost.
Pricing Options
Hosted Models - Visual Workflow AI provides API keys with a 2.5x pricing multiplier:
Model | Base Price (Input/Output) | Hosted Price (Input/Output) |
---|---|---|
GPT-4o | $2.50 / $10.00 | $6.25 / $25.00 |
GPT-4.1 | $2.00 / $8.00 | $5.00 / $20.00 |
o1 | $15.00 / $60.00 | $37.50 / $150.00 |
o3 | $2.00 / $8.00 | $5.00 / $20.00 |
Claude 3.5 Sonnet | $3.00 / $15.00 | $7.50 / $37.50 |
Claude Opus 4.0 | $15.00 / $75.00 | $37.50 / $187.50 |
The 2.5x multiplier covers infrastructure and API management costs.
Your Own API Keys - Use any model at base pricing:
Provider | Models | Input / Output |
---|---|---|
Gemini 2.5 | $0.15 / $0.60 | |
Deepseek | V3, R1 | $0.75 / $1.00 |
xAI | Grok 4, Grok 3 | $5.00 / $25.00 |
Groq | Llama 4 Scout | $0.40 / $0.60 |
Cerebras | Llama 3.3 70B | $0.94 / $0.94 |
Ollama | Local models | Free |
Pay providers directly with no markup
Pricing shown reflects rates as of July 14, 2025. Check provider documentation for current pricing.
Cost Optimization
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