← Back to Blog

Speed Run: Generate Images with Kie.ai & Hermes Agent

June 11, 2026 speed-run hermes

Introduction

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.

Prerequisites

Before you start, make sure you have your Kie.ai API key ready:

Integration — Kie.ai API

Don't have a Kie.ai account yet? Sign up here for free — you get credits to start generating immediately.

Prompt

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.

Prompt 1 — Kie.ai Integration

Generated by the Derez Dashboard
Prompt 2 — Generate Image

Generate a 1920x1080 cyberpunk cityscape at night using the Kie.ai API. Use the model 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."

Set 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.

Wrap Up

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.

Pro tip: Set up a cron job on your agent to generate daily images — a "hero image for today's blog post" or "social media banner" schedule. The agent calls Kie.ai, downloads the result, and even uploads it to your Nextcloud or sends it via email, all without your involvement.

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 10 Minutes.