[ 'fal-ai/nano-banana-pro' => '🍌 Nano Banana Pro (newest!)', 'fal-ai/gemini-3-pro-image-preview' => 'Gemini 3 Pro Image', ], // ByteDance Seedream 'ByteDance' => [ 'fal-ai/bytedance/seedream/v4.5/text-to-image' => 'Seedream 4.5 (newest!)', 'fal-ai/bytedance/seedream/v4/text-to-image' => 'Seedream 4.0', ], // Flux 2.x (Latest) 'Flux 2.x' => [ 'fal-ai/flux-2-pro' => 'Flux 2 Pro (best)', 'fal-ai/flux-2-flex' => 'Flux 2 Flex', 'fal-ai/flux-2' => 'Flux 2 Dev', 'fal-ai/flux-2/lora' => 'Flux 2 LoRA', ], // Flux Pro / Kontext 'Flux Kontext' => [ 'fal-ai/flux-pro/kontext/max' => 'Flux Kontext Max', 'fal-ai/flux-pro/kontext' => 'Flux Kontext Pro', 'fal-ai/flux-kontext-lora' => 'Flux Kontext LoRA', ], // Flux 1.x 'Flux 1.x' => [ 'fal-ai/flux-pro/v1.1' => 'Flux Pro v1.1', 'fal-ai/flux/dev' => 'Flux Dev', 'fal-ai/flux/schnell' => 'Flux Schnell (ultra fast)', ], // Recraft 'Recraft' => [ 'fal-ai/recraft/v3/text-to-image' => 'Recraft V3 (SOTA)', ], // Qwen Image 'Qwen' => [ 'fal-ai/qwen-image' => 'Qwen Image (best text)', ], // Other Notable 'Other' => [ 'fal-ai/z-image/turbo' => 'Z-Image Turbo (super fast)', 'fal-ai/piflow' => 'PiFlow (fast, quality)', 'fal-ai/flux-realism' => 'Flux Realism', 'fal-ai/flux-lora' => 'Flux LoRA', 'imagineart/imagineart-1.5-preview/text-to-image' => 'ImagineArt 1.5', 'bria/fibo/generate' => 'Bria Fibo (enterprise)', ], ]; } /** * Get Fal.ai provider info */ function botwriter_get_fal_info() { return [ 'name' => 'Fal.ai', 'description' => __('Fast, reliable inference for Flux and other cutting-edge image models. Known for excellent quality and speed.', 'botwriter'), 'website' => 'https://fal.ai', 'api_url' => 'https://fal.ai/dashboard/keys', 'docs_url' => 'https://docs.fal.ai/', 'pricing_url' => 'https://fal.ai/pricing', 'free_credits' => __('Free credits on signup for testing', 'botwriter'), 'pricing_summary' => [ '🍌 Nano Banana Pro' => '~$0.02/image', 'Seedream 4.5' => '~$0.03/image', 'Flux 2 Pro' => '~$0.05/image', 'Flux Pro v1.1' => '~$0.04/image', 'Flux Schnell' => '~$0.003/image (ultra cheap!)', 'Recraft V3' => '~$0.04/image', 'Z-Image Turbo' => '~$0.002/image', ], 'features' => [ __('Hosts the best Flux models', 'botwriter'), __('Very fast generation (seconds)', 'botwriter'), __('Excellent image quality', 'botwriter'), __('LoRA support for custom styles', 'botwriter'), __('Competitive pricing', 'botwriter'), __('Video generation also available', 'botwriter'), ], 'pros' => [ __('Best Flux hosting', 'botwriter'), __('Fast inference', 'botwriter'), __('Great documentation', 'botwriter'), __('Flexible pricing', 'botwriter'), ], 'cons' => [ __('Smaller model selection', 'botwriter'), __('Newer platform', 'botwriter'), ], ]; } /** * Render Fal.ai settings tab content */ function botwriter_render_fal_settings($settings, $is_active) { $info = botwriter_get_fal_info(); $models = botwriter_get_fal_models(); ?>