Pricing Estimate
Get a cost estimate for a generation request before running it.
POST
/api/v1/pricing/estimateRequest Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model key to estimate cost for |
| prompt | string | No | Text prompt (used for token-based cost estimation) |
| params | object | No | Model-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" }
}'