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:
|
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 5: Image generated successfully")
|
||||||
print(f"[AI][{function_name}] Step 6: Cost: ${cost:.4f}")
|
print(f"[AI][{function_name}] Step 6: Cost: ${cost:.4f}")
|
||||||
print(f"[AI][{function_name}][Success] Image generation completed")
|
print(f"[AI][{function_name}][Success] Image generation completed")
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ class IntegrationSettingsViewSet(viewsets.ViewSet):
|
|||||||
'success': True,
|
'success': True,
|
||||||
'message': '✅ Runware API connected successfully!',
|
'message': '✅ Runware API connected successfully!',
|
||||||
'image_url': image_url,
|
'image_url': image_url,
|
||||||
'cost': '$0.0360',
|
'cost': '$0.0090',
|
||||||
'provider': 'runware',
|
'provider': 'runware',
|
||||||
'model': 'runware:97@1',
|
'model': 'runware:97@1',
|
||||||
'size': '128x128'
|
'size': '128x128'
|
||||||
|
|||||||
@@ -977,8 +977,8 @@ Make sure each prompt is detailed enough for image generation, describing the vi
|
|||||||
|
|
||||||
if image_url:
|
if image_url:
|
||||||
logger.info(f"[AIProcessor.generate_image] Image URL extracted: {image_url[:50]}...")
|
logger.info(f"[AIProcessor.generate_image] Image URL extracted: {image_url[:50]}...")
|
||||||
# Calculate cost (Runware: $0.036 per image)
|
# Calculate cost (Runware: $0.009 per image)
|
||||||
cost = 0.036
|
cost = 0.009
|
||||||
logger.info(f"[AIProcessor.generate_image] Cost calculated: ${cost:.4f}")
|
logger.info(f"[AIProcessor.generate_image] Cost calculated: ${cost:.4f}")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ export default function ValidationCard({
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong className="text-gray-700 dark:text-gray-300">Cost:</strong>{' '}
|
<strong className="text-gray-700 dark:text-gray-300">Cost:</strong>{' '}
|
||||||
<span className="text-gray-900 dark:text-white">{testResult.cost || '$0.0360'}</span>
|
<span className="text-gray-900 dark:text-white">{testResult.cost || '$0.0090'}</span>
|
||||||
</div>
|
</div>
|
||||||
{testResult.full_response?.image_url && (
|
{testResult.full_response?.image_url && (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ export default function Integration() {
|
|||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{ value: 'openai', label: 'OpenAI - Multiple models available' },
|
{ value: 'openai', label: 'OpenAI - Multiple models available' },
|
||||||
{ value: 'runware', label: 'Runware - $0.036 per image' },
|
{ value: 'runware', label: 'Runware - $0.009 per image' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -596,9 +596,9 @@ export default function Integration() {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{ value: 'runware:97@1', label: 'HiDream-I1 Full - $0.036 per image' },
|
{ value: 'runware:97@1', label: 'HiDream-I1 Full - $0.009 per image' },
|
||||||
{ value: 'runware:gen3a_turbo', label: 'Gen3a Turbo - $0.036 per image' },
|
{ value: 'runware:gen3a_turbo', label: 'Gen3a Turbo - $0.009 per image' },
|
||||||
{ value: 'runware:gen3a', label: 'Gen3a - $0.036 per image' },
|
{ value: 'runware:gen3a', label: 'Gen3a - $0.009 per image' },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -892,7 +892,7 @@ export default function Integration() {
|
|||||||
<IntegrationCard
|
<IntegrationCard
|
||||||
icon={<RunwareIcon />}
|
icon={<RunwareIcon />}
|
||||||
title="Runware"
|
title="Runware"
|
||||||
description="High-quality AI image generation with Runware's models ($0.036 per image)"
|
description="High-quality AI image generation with Runware's models ($0.009 per image)"
|
||||||
validationStatus={validationStatuses.runware}
|
validationStatus={validationStatuses.runware}
|
||||||
integrationId="runware"
|
integrationId="runware"
|
||||||
modelName={
|
modelName={
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ function igny8_runway_generate_image($prompt, $model = 'gen3a_turbo') {
|
|||||||
igny8_log_ai_event('runway_api_success', 'success', [
|
igny8_log_ai_event('runway_api_success', 'success', [
|
||||||
'model' => $model,
|
'model' => $model,
|
||||||
'prompt_length' => strlen($prompt),
|
'prompt_length' => strlen($prompt),
|
||||||
'cost' => 0.036, // Runware pricing
|
'cost' => 0.009, // Runware pricing
|
||||||
'service' => 'runware'
|
'service' => 'runware'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ ob_start();
|
|||||||
</label>
|
</label>
|
||||||
<label style="display: block;">
|
<label style="display: block;">
|
||||||
<input type="radio" name="igny8_image_service" value="runware" <?php checked(get_option('igny8_image_service', 'openai'), 'runware'); ?> />
|
<input type="radio" name="igny8_image_service" value="runware" <?php checked(get_option('igny8_image_service', 'openai'), 'runware'); ?> />
|
||||||
<strong>Runware</strong> — $0.036 per image<br>
|
<strong>Runware</strong> — $0.009 per image<br>
|
||||||
<span style="color: #666; font-size: 12px;">High-quality AI image generation with Runware's models</span>
|
<span style="color: #666; font-size: 12px;">High-quality AI image generation with Runware's models</span>
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -150,7 +150,7 @@ ob_start();
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<label style="display: block;">
|
<label style="display: block;">
|
||||||
<input type="radio" name="igny8_runware_model" value="runware:97@1" <?php checked(get_option('igny8_runware_model', 'runware:97@1'), 'runware:97@1'); ?> />
|
<input type="radio" name="igny8_runware_model" value="runware:97@1" <?php checked(get_option('igny8_runware_model', 'runware:97@1'), 'runware:97@1'); ?> />
|
||||||
<strong>HiDream-I1 Full</strong> — $0.036 per image<br>
|
<strong>HiDream-I1 Full</strong> — $0.009 per image<br>
|
||||||
<span style="color: #666; font-size: 12px;">High-quality AI image generation with Runware's HiDream model</span>
|
<span style="color: #666; font-size: 12px;">High-quality AI image generation with Runware's HiDream model</span>
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
Reference in New Issue
Block a user