@@ -139,26 +139,26 @@ class Flux(SimpleService): versions[0].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=0.33, + cost=0.3, coefficient=5.00, ), versions[1].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=4.4, - coefficient=5.00, + cost=4.00, + coefficient=2.00, ), versions[2].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=2.75, - coefficient=5.00, + cost=2.5, + coefficient=2.00, ), versions[3].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=6.6, - coefficient=5.00, + cost=6.00, + coefficient=2.00, ), } @@ -135,7 +135,7 @@ class Stablediffusion(SimpleService): ), ] - TOKEN_PRICE = Decimal('11') + TOKEN_PRICE = Decimal('2') _API_KEY = settings.STABLE_DIFFUSION_API_KEY @@ -143,11 +143,11 @@ class Stablediffusion(SimpleService): if ( input_message.info.get('version') or input_message.info.get('engine', 'sd3') ) == 'sd3': - return Decimal('71.5') + return Decimal('13') elif ( input_message.info.get('version') or input_message.info.get('engine', 'sd3') ) == 'sd3-turbo': - return Decimal('44') + return Decimal('8') steps = input_message.info.get('steps', 30) default_price = Decimal('0.9') * self.TOKEN_PRICE return default_price if steps <= 30 else default_price * Decimal((steps / 30))