Update Runware pricing across the application to reflect new cost of $0.009 per image in backend and frontend components.

This commit is contained in:
Desktop
2025-11-12 14:41:20 +05:00
parent 2c2eaa4c47
commit bcc52c4891
7 changed files with 13 additions and 13 deletions

View File

@@ -800,7 +800,7 @@ class AICore:
if image_url:
cost = 0.036 * n # Runware pricing
cost = 0.009 * n # Runware pricing
print(f"[AI][{function_name}] Step 5: Image generated successfully")
print(f"[AI][{function_name}] Step 6: Cost: ${cost:.4f}")
print(f"[AI][{function_name}][Success] Image generation completed")

View File

@@ -335,7 +335,7 @@ class IntegrationSettingsViewSet(viewsets.ViewSet):
'success': True,
'message': '✅ Runware API connected successfully!',
'image_url': image_url,
'cost': '$0.0360',
'cost': '$0.0090',
'provider': 'runware',
'model': 'runware:97@1',
'size': '128x128'

View File

@@ -977,8 +977,8 @@ Make sure each prompt is detailed enough for image generation, describing the vi
if image_url:
logger.info(f"[AIProcessor.generate_image] Image URL extracted: {image_url[:50]}...")
# Calculate cost (Runware: $0.036 per image)
cost = 0.036
# Calculate cost (Runware: $0.009 per image)
cost = 0.009
logger.info(f"[AIProcessor.generate_image] Cost calculated: ${cost:.4f}")
return {