Estimate Credits
credits
Estimate Credits
Estimate credit cost for an operation without consuming credits.
Provides cost estimation based on:
- Operation type
- Operation count
- User’s current tier (for discounts)
- Current pricing configuration
Args: request: Credit estimation request with operation details current_user: Authenticated user supabase_service: Supabase service instance
Returns: CreditEstimateResponse with cost breakdown
POST
Estimate Credits
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response
Credit cost estimation response model.
Credits required for operation
Required range:
x >= 0Type of operation
Number of operations
Current pricing mode
Cost per unit
Tier discount applied
Cost breakdown by component