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:
@@ -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")
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user