'GPT Image 1 (latest - best quality)', 'dall-e-3' => 'DALL-E 3 (high quality)', 'dall-e-2' => 'DALL-E 2 (legacy)', ]; } /** * Get DALL-E provider info */ function botwriter_get_dalle_info() { return [ 'name' => 'DALL-E (OpenAI)', 'description' => __('OpenAI\'s image generation models. The latest GPT Image 1 offers the best quality and prompt adherence.', 'botwriter'), 'website' => 'https://openai.com', 'api_url' => 'https://platform.openai.com/api-keys', 'docs_url' => 'https://platform.openai.com/docs/guides/images', 'pricing_url' => 'https://openai.com/api/pricing/', 'free_credits' => __('Included in OpenAI API free credits ($5 for new accounts)', 'botwriter'), 'pricing_summary' => [ 'GPT Image 1 (Low)' => '~$0.01/image', 'GPT Image 1 (Medium)' => '~$0.04/image', 'GPT Image 1 (High)' => '~$0.17/image', 'DALL-E 3 (1024x1024)' => '$0.04/image', 'DALL-E 3 (1792x1024)' => '$0.08/image', ], 'features' => [ __('Uses the same API key as OpenAI text models', 'botwriter'), __('Excellent prompt understanding', 'botwriter'), __('High quality, realistic images', 'botwriter'), __('Multiple size/quality options', 'botwriter'), __('Great for product images and illustrations', 'botwriter'), ], 'pros' => [ __('Same API key as text models', 'botwriter'), __('Best prompt understanding', 'botwriter'), __('Very realistic outputs', 'botwriter'), ], 'cons' => [ __('Higher cost than alternatives', 'botwriter'), __('Limited style controls', 'botwriter'), ], ]; } /** * Render DALL-E settings tab content */ function botwriter_render_dalle_settings($settings, $is_active) { $info = botwriter_get_dalle_info(); $models = botwriter_get_dalle_models(); $openai_api_key = $settings['botwriter_openai_api_key'] ?? ''; $has_key = !empty($openai_api_key); ?>

$price): ?>