Files
Genarrative/server-rs/crates/api-server/config/editor-generation-pricing.default.json
T
JenkenB 163b2fa077 Add editor generation model pricing admin UI & API
Introduce centralized model pricing for editor generations: add EditorGenerationPricing types and admin API client methods (GET/POST), backend default config and runtime override support, and server route/handler changes to expose admin editor-generation-pricing. Add an AdminEditorGenerationPricingPage component, styles, route entry, icon, and tests, plus a test for admin routes. Update docs and decision log to describe the pricing contract and management workflow. This enables managing per-model pricing (perGeneration / perSecond, flat or tiered) from the admin panel and exposes runtime pricing to the main site.
2026-06-22 16:57:29 +08:00

76 lines
1.3 KiB
JSON

{
"models": {
"gemini-3.1-flash-image-preview": {
"unit": "perGeneration",
"prices": {
"0.5K": 8,
"1K": 12,
"2K": 24
}
},
"gpt-image-2": {
"unit": "perGeneration",
"prices": {
"1K": 20,
"2K": 40
}
},
"seedance2.0-fast": {
"unit": "perSecond",
"prices": {
"480p": 10,
"720p": 20,
"1080p": 40
}
},
"seedance2.0": {
"unit": "perSecond",
"prices": {
"480p": 12,
"720p": 24,
"1080p": 48
}
},
"kling3.0": {
"unit": "perSecond",
"prices": {
"480p": 15,
"720p": 30,
"1080p": 60
}
},
"kling3.0-omni": {
"unit": "perSecond",
"prices": {
"480p": 20,
"720p": 40,
"1080p": 80
}
},
"veo3.1": {
"unit": "perSecond",
"prices": {
"480p": 10,
"720p": 20,
"1080p": 40
}
},
"veo3.1-fast": {
"unit": "perSecond",
"prices": {
"480p": 10,
"720p": 20,
"1080p": 40
}
},
"audio1.0": {
"unit": "perGeneration",
"price": 10
},
"chirp-v5": {
"unit": "perGeneration",
"price": 5
}
}
}