CCAPI Developer Platform
Generate images from Claude Code
Connect Claude Code to an image-generation workflow and inspect the resulting assets locally.
Frequently asked questions
How do I generate images from Claude Code?
Two ways. Connect CCAPI over the Model Context Protocol and ask in plain language, or call the image endpoint directly from a script the assistant writes. MCP needs one line of configuration and no SDK.
Do I need a separate key for Claude Code?
No. The same CCAPI key works for the API and for the MCP connection. There is no second credential to create or rotate.
Will Claude Code spend money without asking?
Each generation is a billed call, so it is worth watching the first few sessions. Model lookup and balance checks are free, and errors are written to tell the assistant when retrying cannot help.
Can it save images straight into my repository?
Yes. The assistant receives a URL and can download it to any path you specify, then reference it from your code in the same turn.
Which image model should I use from an editor?
Ask the assistant to list the available image models rather than hardcoding a name. Availability depends on your account and changes as models ship and retire.