@@ -19,7 +19,7 @@ class Codellama(SimpleService): title = 'Code LLaMA-34B' description = 'Нейросеть, способная генерировать код из вашего контекста' - price = Decimal(1) + price = Decimal('0.558') category = ModelCategory(title='Код', slug='code') versions = [] inputs = [] @@ -21,19 +21,19 @@ class Dalle(SimpleService): TOKEN_PAYMENT_RULES = { 'dall-e-2': { - '256x256': Decimal('6.8'), - '512x512': Decimal('7.65'), - '1024x1024': Decimal('8.5'), + '256x256': Decimal('10.56'), + '512x512': Decimal('11.88'), + '1024x1024': Decimal('13.2'), }, 'dall-e-3': { - '1024x1024': Decimal('24'), - '1792x1024': Decimal('32'), - '1024x1792': Decimal('32'), + '1024x1024': Decimal('26.4'), + '1792x1024': Decimal('35.2'), + '1024x1792': Decimal('35.2'), }, 'dall-e-3-hd': { - '1024x1024': Decimal('32'), - '1792x1024': Decimal('48'), - '1024x1792': Decimal('48'), + '1024x1024': Decimal('35.2'), + '1792x1024': Decimal('52.8'), + '1024x1792': Decimal('52.8'), }, } @@ -83,12 +83,12 @@ class Dalle(SimpleService): def calculate_price(self, input_message: Message) -> Decimal: price = self.TOKEN_PAYMENT_RULES[input_message.info.get('version', 'dall-e-2')][ - input_message.info.get('size', '1024x1024') - ] * input_message.info.get('n', 1) + input_message.info.get('size', '1024x1024') + ] * input_message.info.get('n', 1) return price.quantize(Decimal('.01')) def save_results( - self, input_prompt: str, r: list[str], t: timedelta, save: bool = True + self, input_prompt: str, r: list[str], t: timedelta, save: bool = True ) -> list[Message]: out: list[Message] = [] for obj in r: @@ -21,7 +21,7 @@ class Deepl(SimpleService): title = 'DeepL' description = 'Нейросеть, способная генерировать перевод ваших длинных текстов' - price = Decimal(0.0026) + price = Decimal('0.011') category = ModelCategory(title='Чат-боты', slug='chat-bots') versions = [] inputs = [ @@ -88,7 +88,7 @@ class Djourney(SimpleService): ), ] - PRICE = Decimal('0.508') + PRICE = Decimal('0.558') _CALLBACK = ( 'lorenzomarines/d-journey' @@ -21,7 +21,7 @@ class Epicphotogasm(SimpleService): title = 'EpicPhotogasm V2.0' description = 'Нейросеть, способная генерировать еще больше текста из вашего текста' category = ModelCategory(title='Изображения', slug='images') - price = Decimal(0.1) + price = Decimal('0.248') versions = [] inputs = [ModelInput(type=ModelInput.TypeChoices.TEXT, required=True)] @@ -151,19 +151,19 @@ class Flux(SimpleService): versions[0].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=4, + cost=4.4, coefficient=5.00, ), versions[1].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=2.5, + cost=2.75, coefficient=5.00, ), versions[2].slug: ModelPaymentRule( strategy=ModelPaymentRule.StrategyChoices.FIXED, interaction_type=ModelPaymentRule.InteractionTypeChoices.INPUT, - cost=6.00, + cost=6.6, coefficient=5.00, ), } @@ -106,7 +106,7 @@ class Iconic(SimpleService): ), ] - PRICE = Decimal('0.980') + PRICE = Decimal('1.078') _CALLBACK = ( 'miike-ai/flux-ico' @@ -21,7 +21,7 @@ class Kandinsky(SimpleService): title = 'Kandinsky' description = 'Нейросеть, способная генерировать еще больше текста из вашего текста' category = ModelCategory(title='Изображения', slug='images') - price = Decimal(0.1) + price = Decimal('0.633') versions = [] inputs = [ModelInput(type=ModelInput.TypeChoices.TEXT)] @@ -41,7 +41,7 @@ class Llama(SimpleService): ), ] - price = Decimal(0.05) + price = Decimal('1.078') model_version = '' def calculate_price(self, process_time: timedelta) -> Decimal: @@ -89,7 +89,7 @@ class Logoai(SimpleService): ), ] - PRICE = Decimal('0.494') + PRICE = Decimal('0.544') _CALLBACK = ( 'mejiabrayan/logoai' @@ -40,12 +40,12 @@ class Mistral(SimpleService): ] TOKEN_PAYMENT_RULES = { - 'mistral-tiny-input': Decimal(0.15), - 'mistral-tiny-output': Decimal(0.449), - 'mistral-small-input': Decimal(0.642), - 'mistral-small-output': Decimal(1.93), - 'mistral-medium-input': Decimal(2.67), - 'mistral-medium-output': Decimal(8.02), + 'mistral-tiny-input': Decimal(0.165), + 'mistral-tiny-output': Decimal(0.494), + 'mistral-small-input': Decimal(0.706), + 'mistral-small-output': Decimal(2.123), + 'mistral-medium-input': Decimal(2.937), + 'mistral-medium-output': Decimal(8.822), } def __init__(self, store): @@ -20,7 +20,7 @@ class Musicgen(SimpleService): title = 'MusicGen' description = 'Нейросеть, способная генерировать музыку из ваших слов' - price = Decimal(1) + price = Decimal('0.633') category = ModelCategory(title='Чат-боты', slug='chat-bots') versions = [ ModelVersion(name='Melody', slug='melody', default=True), @@ -20,7 +20,7 @@ class Openjourney(SimpleService): title = 'OpenJourney' description = 'Нейросеть, способная генерировать фотографии из вашего текста' - price = Decimal('1.38') + price = Decimal('1.518') category = ModelCategory(title='Изображения', slug='images') versions = [] inputs = [ModelInput(type=ModelInput.TypeChoices.TEXT, required=True)] @@ -89,7 +89,7 @@ class Pulid(SimpleService): ), ] - PRICE = Decimal('0.340') + PRICE = Decimal('0.374') _CALLBACK = ( 'zsxkib/pulid' @@ -88,7 +88,7 @@ class Sdxlemoji(SimpleService): ), ] - PRICE = Decimal('0.481') + PRICE = Decimal('0.529') _CALLBACK = ( 'fofr/sdxl-emoji' @@ -23,7 +23,7 @@ class Upscaleai(SimpleService): title = 'Upscaleai' description = 'Нейросеть, которая улучшит качество изображений по вашему запросу' - price = Decimal('0.3') + price = Decimal('0.633') category = ModelCategory(title='Изображения', slug='images') versions = [] @@ -17,7 +17,7 @@ class Vicuna(SimpleService): title = 'Vicuna' description = 'Нейросеть, способная генерировать еще больше текста из вашего текста' - price = Decimal('0.805') + price = Decimal('0.886') category = ModelCategory(title='Чат-боты', slug='chat-bots') versions = [ModelVersion(name='13Billion', slug='13B', default=True)] inputs = [ModelInput(type=ModelInput.TypeChoices.TEXT, required=True)] @@ -21,7 +21,7 @@ class Whisper(SimpleService): title = 'Whisper' description = 'Система автоматического распознавания голоса, обученная на 680000 часах аудио разных языков' - price = Decimal(0.08) # Per second > 4.8/min + price = Decimal('0.088') # Per second > 4.8/min category = ModelCategory(title='Аудио', slug='audio') versions = [ModelVersion(name='Standart', slug='whisper-1', default=True)] inputs = [ModelInput(type=ModelInput.TypeChoices.AUDIO)]