Models
Pricing
Estimate cost
Computes cost estimates using one of two methods:
1. Historical API Price (historical_api_price):
- Based on historical pricing per API call from past usage patterns
- Takes call_quantity (number of API calls) per endpoint
- Useful for estimating based on actual historical usage patterns
- Example: "How much will 100 calls to flux/dev cost?"
2. Unit Price (unit_price):
- Based on unit price × expected billing units from pricing service
- Takes unit_quantity (number of billing units like images/videos) per endpoint
- Useful when you know the expected output quantity
- Example: "How much will 50 images from flux/dev cost?"
Authentication: Required. Users must provide a valid API key. Custom pricing or discounts may be applied based on account status.
Common Use Cases:
- Pre-calculate costs for batch operations
- Display cost estimates in user interfaces
- Budget planning and cost optimization
See fal.ai pricing for more details.
post/models/pricing/estimate
Request body
Response
Cost estimates calculated successfully
Example response
{
"estimate_type": "historical_api_price",
"total_cost": 3.75,
"currency": "USD"
}Changes
No recorded changes to this endpoint across all 2 revisions of this API.