GitHub Copilot 现已支持直接生成与编辑图像
英文标题:Generate and edit images directly in Copilot
GitHub Copilot 现已支持通过自然语言直接在对话中生成和编辑图像,该能力底层由 GPT Image 2.5 Flare 驱动的专用图像生成工具提供支持。开发者无需在开发环境与外部绘图应用间频繁切换,即可在对话中即时预览并将图像直接保存到工作区项目中。该功能已面向 Copilot Pro、Pro+、Business 与 Enterprise 用户开启公开预览,并按图像 Token 消耗套餐内的 AI 额度。这进一步消除了开发者的上下文切换成本,拓展了编程辅助工具在多模态工作流中的生产力边界。
110.2 KB
101.9 KB
698.4 KB
中文
现在,你可以在 GitHub Copilot 中使用自然语言直接生成并编辑图像。当你提出图像需求时,你所选的推理模型会调用由 GPT Image 2.5 Flare 驱动的专用图像生成工具,在行内即时预览结果,并将其保存到你的项目中。
此前,在 Copilot 工作流中获取视觉素材意味着必须切出到独立的外部工具,重新描述需求,在外部完成生成后再手动导回项目中。本次更新消除了这种上下文切换,让你无需中断编码心流,即可将创意转化为立即可用的图像。
- 可以在任意 Copilot 对话(Chat)中以对话方式描述图像,无论你是发起全新请求,还是正处于编码任务之中。
- Copilot 会在行内预览生成的图像,并将其直接保存到你的工作区(Workspace)中。
- 组织和企业管理员可以通过 Copilot 模型策略 禁用该图像生成模型,从而关闭图像生成功能。
- 你可以选择开启 Copilot 生成和编辑图像时附带的可见“Made with AI”水印。水印功能默认处于关闭状态。
如需体验,只需在 VS Code、GitHub Copilot 应用或 Copilot CLI 中打开 Copilot 对话,并描述你想要的图像即可。
图像生成功能目前面向 Copilot Pro、Copilot Pro+、Copilot Business 和 Copilot Enterprise 处于公开预览(Public Preview)阶段。该功能与聊天模型分开计费,将根据图像 Token 计费并从你订阅套餐的 AI 额度(AI credits)中扣除。
欢迎加入 GitHub Community 参与讨论。
English / 原文
You can now generate and edit images using natural language in GitHub Copilot. When you ask for an image, your selected reasoning model calls a dedicated image-generation tool powered by GPT Image 2.5 Flare, previews the result inline, and saves it to your project.
Previously, getting a visual asset while working in Copilot meant stepping away to a separate tool, describing what you needed again, generating it there, and manually bringing it back into your project. This update removes that context switch, so you can go from an idea to a usable image without breaking your flow.
- Describe an image conversationally in any Copilot chat session, whether you’re starting a new request or in the middle of a coding task.
- Copilot previews the generated image inline and saves it directly to your workspace.
- Organization and enterprise owners can turn off image generation by disabling the image generation model using Copilot model policies.
- You can opt in to a visible “Made with AI” watermark on images Copilot generates and edits. Watermarking is off by default.
To try it, open a Copilot chat in VS Code, the GitHub Copilot app, or Copilot CLI and describe the image you want.
Image generation is in public preview for Copilot Pro, Copilot Pro+, Copilot Business, and Copilot Enterprise. It’s billed separately from your chat model, based on image tokens that count toward your plan’s AI credits.
Join the discussion within GitHub Community.