This speed run shows you how to connect Hermes Agent to Kie.ai — a multi-model API that gives you access to over 70 image generation models through a single endpoint. GPT Image 2, Flux-2, Grok Imagine, Google Nano Banana, Recraft, Ideogram — your agent can use any of them to create production-quality visuals on demand.
In under 10 minutes you'll go from zero to an agent that generates images from a text prompt and saves them directly to your agent's file system. No coding, no manual API calls.
Before you start, make sure you have your Kie.ai API key ready:
https://api.kie.aikie-sk-ZXhhbXBsZS1hcGkta2V5LWZvci1kZW1vgpt-image-2 (or any image model from kie.ai/market)Don't have a Kie.ai account yet? Sign up here for free — you get credits to start generating immediately.
We configured two prompts on the agent's dashboard at app.derez.ai. The first connects your agent to the Kie.ai API. The second tells it what image to create.
gpt-image-2 with prompt: "Cyberpunk city at night, neon lights reflecting on wet asphalt, flying vehicles between skyscrapers, volumetric lighting, cinematic composition, 4K, high detail."n=1 and size=1920x1080. Save the generated image URL to my agent's workspace as cyberpunk-cityscape.jpg. Then download the image from the Kie.ai generated URL and save it to the file.
The first prompt authenticates with Kie.ai using your API key from the dashboard integration. The second prompt instructs the agent to call the Kie.ai image generation endpoint, download the result, and save it — all in one automated sequence.
In under 10 minutes you went from nothing to an AI agent that generates images through Kie.ai's multi-model API. The same pattern works for any of the 70+ image models they support — swap the model name in the prompt and you're using a completely different engine without changing any other configuration.
Use coupon code BLOG950 at checkout to get $9.50 off your first month — zero risk, full access.
Deploy your own image-generating agent now.
Derez.ai — Deploy your AI agent in 5 minutes.