网页
综合
更新时间 2026-11-14 16:00:04
Enable image generation | Impeccable
自动蜘蛛
impeccable.style
正文约 4268 字
Push the visual direction further.
Image generation gives Impeccable room to explore bolder compositions and more creative visual directions. A generated mockup can set a visual target beyond what the coding model would naturally build on its own.
Choose comp-led when the visual direction matters enough to spend time refining it. Choose code-led when you want a strong first implementation with less work matching a visual reference. Image generation can also create illustrations and other finished assets; enabling it leaves both build workflows available.
Choose your setup path:
Already set up? Check that you’re ready.
Impeccable uses the coding tool’s image-generation tool first when one is available. You do not need to supply an OpenAI API key for this path.
Availability depends on your tool, account, and workspace settings. If the agent has no image-generation tool, use the API path below. Being able to read screenshots does not mean it can generate images.
For a coding tool without built-in image generation, Impeccable includes a fallback that uses OPENAI_API_KEY from the agent’s environment. The agent needs permission to run the helper and reach the OpenAI API.
Create a key in your OpenAI API project and make sure the project has billing and access to image generation. See the OpenAI API quickstart and image-generation requirements.
Impeccable should tell you before its first fallback render. Each mockup or revision can add a request. Check current API pricing before a large batch.
For a terminal-based coding tool, set the variable in your terminal, then launch the tool from that same terminal. Replace the placeholder locally with your key.
These examples set the key for the current terminal session and tools launched from it. For future sessions, use your tool’s environment or secret configuration.
The key must be available where the agent runs commands. Restart the agent session after configuring it. Keep keys out of chat, committed files, and browser-facing variables such as PUBLIC_* or VITE_*.
Use your tool’s environment or secret configuration. Setting a key in an unrelated terminal does not update an already-running app or a remote machine.
A project .env file works only if your launch setup loads it into the agent’s command environment. The fallback reads OPENAI_API_KEY; a .env file alone does not establish readiness.
Ask in the project’s agent chat:
This checks tool access or key presence without generating an image. To verify that generation succeeds, ask for a small test image; it uses your tool’s image allowance or API billing.
Have the agent run this in its own command environment. It prints only whether the variable is present:
A detected key does not confirm that it is valid, billing is active, or the network permits a request.
Then continue with Build something new. When image generation is available and no preference is saved, Impeccable defaults to mockup first (comp-led). You can choose build directly (code-led) in the picker or ask Impeccable to save it as your default.
A mockup, or comp, is an image of the proposed interface. You approve the composition, then the agent builds a working interface against that visual target. The mockup does not replace working controls, accessible text, or responsive layouts.
An asset is an image the interface actually uses: a product illustration, background, or cutout. Either build workflow can use generated assets. Choosing code-led skips the mockup approval stage; it does not disable image generation for assets you need.
Check for an actual image-generation tool, or configure the API fallback. Vision support alone is not enough.
Set it where the agent runs. Restart the app or terminal tool, and check any remote or container environment separately.
Read the returned error. Check key validity, project permissions, image-model access, API billing, usage limits, and network access as applicable.
Impeccable uses code-led when no image generation is available. Check readiness in a fresh session after configuring access.
Check your saved buildPath preference. Change the default or switch for this session.
You can keep working without image generation. Impeccable builds directly in code, and you review the design in the running interface.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。