mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 06:42:14 +00:00
costs
This commit is contained in:
1 parent
25d7f0bfd5
commit
3191b627aa
2 files changed
-17
No files matched your search
-8
@@ -4,14 +4,6 @@ use crate::generate::generate_video::video_generation_cost_estimate::VideoGenera
|
||||
use crate::generate::generate_video_v2::providers::artcraft::seedance_2p0_fast_g::request::ArtcraftSeedance2p0FastGRequestState;
|
||||
|
||||
// ── Pricing constants ──
|
||||
//
|
||||
// Based on GmiCloud Seedance 2.0 Fast costs + 30% margin.
|
||||
//
|
||||
// GmiCloud rates (cents per second):
|
||||
// 480p: 1.0 ¢/s → with 30% margin: 1.3 ¢/s
|
||||
// 720p: 3.1 ¢/s → with 30% margin: 4.03 ¢/s
|
||||
//
|
||||
// Formula: cost_cents = ceil(cents_per_second * duration) * batch_count
|
||||
|
||||
const CENTS_PER_SECOND_480P: f64 = 1.3;
|
||||
const CENTS_PER_SECOND_720P: f64 = 4.03;
|
||||
|
||||
-9
@@ -4,15 +4,6 @@ use crate::generate::generate_video::video_generation_cost_estimate::VideoGenera
|
||||
use crate::generate::generate_video_v2::providers::artcraft::seedance_2p0_g::request::ArtcraftSeedance2p0GRequestState;
|
||||
|
||||
// ── Pricing constants ──
|
||||
//
|
||||
// Based on GmiCloud Seedance 2.0 costs + 30% margin.
|
||||
//
|
||||
// GmiCloud rates (cents per second):
|
||||
// 480p: 2.4 ¢/s → with 30% margin: 3.12 ¢/s
|
||||
// 720p: 5.2 ¢/s → with 30% margin: 6.76 ¢/s
|
||||
// 1080p: 11.6 ¢/s → with 30% margin: 15.08 ¢/s
|
||||
//
|
||||
// Formula: cost_cents = ceil(cents_per_second * duration) * batch_count
|
||||
|
||||
const CENTS_PER_SECOND_480P: f64 = 3.12;
|
||||
const CENTS_PER_SECOND_720P: f64 = 6.76;
|
||||
|
||||
Reference in new issue
Block a user