billing

Estimate Operation Cost

Estimate cost for an AI operation before execution.

This endpoint helps users understand the cost implications before running expensive AI operations. The estimate includes:

  • Total cost to be charged
  • Platform margin based on subscription tier
  • Current wallet balance
  • Whether sufficient funds are available
post/api/v1/billing/estimate-cost

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/billing/estimate-cost
  • Auth: none declared

Headers

Authorizationstring

Request body

operation_typestring required
modelstring required
estimated_tokensinteger nullable
asset_idstring uuid nullable

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.