Billing & Costs
Understanding Your Costs
Transparent, real-time cost tracking for all workflow executions.
Cost Response Format
When you execute a Workflow, the response includes detailed cost information:
{
"external_cost_usd": {
"cost": 0.002424,
"commission": 0.000764
}
}
Fields Explanation
| Field | Description |
|---|---|
cost | Total amount charged for the workflow execution |
commission | Marketplace fee (when using workflows from marketplace) |
Calculation
cost - commission = AI execution cost
Example:
Total charged: $0.002424
Marketplace fee: $0.000764
AI execution cost: $0.001660
Tracking Your Spending
Project-Level Costs
Track total spending per project:
Get Project Costs
curl -X GET "https://scriptrun.ai/api/v1/projects/123/" \
-H "X-Api-Key: <Your API Key>"
Response
{
"id": 123,
"name": "My Project",
"total_spent": 15.42,
"created_at": "2024-09-26T01:34:43.155232Z"
}
Workflow Execution History
View execution history with costs:
Get Workflow History
curl -X GET "https://scriptrun.ai/api/v1/workflows/history/?workflow_id=456&limit=10" \
-H "X-Api-Key: <Your API Key>"
Each workflow run in the history includes cost information.
Cost Optimization
The platform automatically optimizes costs through:
- Smart Routing - Routes requests to the most cost-effective AI providers
- Efficient Processing - Minimizes redundant API calls
- Transparent Pricing - No hidden fees, all costs displayed upfront
Rate Limits
To prevent unexpected costs, API keys have rate limits:
- Default: 60 requests per minute
- Custom limits: Contact your administrator for adjustments
For rate limit information, see Authentication.
Support
For questions about billing or to discuss custom pricing:
- 📧 Email: support@scriptrun.ai
- 💬 Telegram: @scriptrunai