Pricing Estimate

Get a cost estimate for a generation request before running it.


POST/api/v1/pricing/estimate

Request Body

ParameterTypeRequiredDescription
modelstringYesModel key to estimate cost for
promptstringNoText prompt (used for token-based cost estimation)
paramsobjectNoModel-specific parameters that affect pricing (e.g., resolution, duration)

Response

{
  "model": "nano-banana-2",
  "estimatedCostMicrodollars": 1234,
  "estimatedCostUsd": "$0.001234",
  "estimatedCredits": 1234
}

Example

cURL

curl https://api.wondercat.ai/api/v1/pricing/estimate \
  -H "Authorization: Bearer sk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "params": { "resolution": "2K", "aspectRatio": "16:9" }
  }'