用途:在 fal.ai 上按文本提示生成图像,并在 FLUX 与 SDXL 等模型间选型、配置尺寸与质量参数、使用 LoRA 自定义风格、批量生成多张图。
主要能力:提供各模型端点与特性,如 fal-ai/flux-2-pro(最高质量、自动提示增强)、fal-ai/flux/dev、fal-ai/flux/schnell(4 步快速)、fal-ai/fast-sdxl、fal-ai/stable-diffusion-v3-medium、fal-ai/sdxl-turbo(单步)、fal-ai/fast-lightning-sdxl、fal-ai/recraft-v3、fal-ai/ideogram(文字排版)、fal-ai/playground-v25、fal-ai/aura-flow、fal-ai/kolors、fal-ai/flux-lora、fal-ai/flux-realism、fal-ai/flux-pro/v1/fill。
使用方式:通过 @fal-ai/client 的 fal.subscribe 或 Python fal_client.subscribe 调用端点,传入 prompt、image_size、num_inference_steps、guidance_scale、num_images、seed、output_format、enable_safety_checker,SDXL 支持 negative_prompt,FLUX 2 Pro 支持 safety_tolerance 与 raw,LoRA 需提供 path 与 scale。返回 images 数组含 url、宽高与 content_type,另含 seed、prompt、has_nsfw_concepts 与 timings。
尺寸:square、square_hd、portrait_4_3、portrait_16_9、landscape_4_3、landscape_16_9 或自定义宽高。
适用场景:快速预览、生产级出图、预算受限、定制风格、图中文字、设计素材与写实图像。
限制:部分价格与完整参数仅资料所列;未提供安装命令、平台要求与额度限制,实际生成受安全过滤与模型自身约束影响。