API Reference
Pricing
Credits-based pricing with quote support
Credits-based pricing
ThankYou uses credits. Purchase credits and consume them per generation -- no subscriptions, no minimums.
Sample pricing
Image generation
| Model | Credits |
|---|---|
flux/v2/pro/text-to-image | 0.8 |
flux/v2/dev/text-to-image | 0.5 |
bytedance/seedream/v5/lite/text-to-image | 0.5 |
google/nano-banana/v2/text-to-image | 0.3 |
Video generation
| Model | Credits |
|---|---|
wan/v2.6/text-to-video | 3.0 |
bytedance/seedance/v2/text-to-video | 3.0 |
kling/v3.0/pro/text-to-video | 4.0 |
kling/v3.0/standard/text-to-video | 2.0 |
google/veo/v3.1/text-to-video | 4.0 |
Audio
| Model | Credits |
|---|---|
fish-audio/text-to-speech | 0.2 |
elevenlabs/sound-effect | 0.3 |
Prices vary by model and parameters (duration, resolution). Use the quote endpoint for exact costs.
Quote endpoint
Get the exact cost before committing:
curl -X POST https://api.thankyouai.com/open/v1/generate/quote \
-H "Authorization: Bearer $THANKYOU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/v2.6/text-to-video",
"input": { "prompt": "A sunset", "duration": "10" }
}'{
"quote_id": "quote_abc123",
"estimated_cost": 6.0,
"currency": "points",
"expires_at": "2026-03-29T10:10:00Z"
}Billing lifecycle
Every generation follows freeze-confirm-release:
- Submitted -- credits are frozen (reserved)
- Succeeded -- credits are confirmed (deducted)
- Failed / Cancelled -- credits are released (returned)
You are never charged for failed generations.
Usage tracking
Every response includes usage:
{
"usage": {
"credits_consumed": 3.0,
"currency": "points"
}
}Spending limits
Set per-key spending limits in Dashboard > Settings > API Keys. When a key hits its limit, requests return 402 quota_exceeded.