使用FluxGen需要完成四个关键步骤:
- registrar uma conta:访问官网https://app.fluxtech.pro/完成免费注册,系统会发放试用信用额度
- Instalação do plug-in:在VS Code扩展商店搜索”FluxGen”并安装,重启编辑器后可见工具栏图标
- Geração de imagens:通过快捷键Ctrl+Shift+G调出输入框,输入英文描述(如”3D科技感按钮”)后回车
- 插入代码:生成图像后右键选择「Copy Code」可直接获取HTML/img标签或Markdown格式代码
As dicas avançadas incluem:
- 使用Smart Suggestions功能获取AI根据当前代码上下文推荐的提示词
- 在设置面板切换FLUX.1 Pro/Dev等不同模型平衡生成速度与质量
- 通过「Save to Project」将图像保存至本地指定目录
整个过程无需离开编辑器环境,图像生成仅需毫秒级响应。
Essa resposta foi extraída do artigoFluxGen: uma ferramenta para gerar imagens de IA diretamente em um editor de códigoO