# AI Image Generator (no API key) (`kavel/kavel-ai-image-generator`) Actor

Generate AI images from a text prompt. No API key, no account, no card. Returns a hosted image URL.

- **URL**: https://apify.com/kavel/kavel-ai-image-generator.md
- **Developed by:** [ohan he](https://apify.com/kavel) (community)
- **Categories:** AI, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AI Image Generator (no API key)

Turn a list of text prompts into images. **No API key, no account, no card** — this Actor
calls a public anonymous endpoint, so you can run it the minute you land here.

Most image Actors and workflow nodes need an OpenAI, fal, or Replicate key before they
produce a single pixel. This one doesn't.

### What you get

| | |
|---|---|
| Input | A list of prompts + one aspect ratio |
| Output | One dataset row per prompt: `prompt`, `aspectRatio`, `imageUrl`, `watermarked` |
| Image hosting | A permanent CDN URL — nothing to download or re-upload |
| Speed | ~25–40s per square image; 16:9 can take longer when the free queue is busy |
| Cost to you | Apify platform usage only. The generation itself is free. |

### Input

```json
{
  "prompts": [
    "a paper boat on a calm lake at sunrise, soft light",
    "an isometric cutaway of a tiny bookshop, warm lamps"
  ],
  "aspectRatio": "16:9",
  "timeoutSecs": 240
}
```

`aspectRatio` accepts `1:1`, `16:9`, `9:16`, `4:3`, `3:4`.

### Output

```json
{
  "prompt": "a paper boat on a calm lake at sunrise, soft light",
  "aspectRatio": "16:9",
  "imageUrl": "https://cdn.kavel.ai/uploads/kie/image/81c21156-....webp",
  "watermarked": true
}
```

A prompt that fails or times out still produces a row, with `imageUrl: null` and an
`error` field, so a long run never silently drops entries.

### Good to know

- **The free tier is metered per run.** Each run starts a fresh anonymous identity with a
  small grant of credits, which covers a handful of images. Feed it a 200-prompt list and
  the tail of the list will come back with an error row rather than an image.
- **Free output carries a watermark and lands at 1K.** If you need it clean, that is what
  an account is for — see [Kavel pricing](https://www.kavel.ai/pricing?ref=apify). If you
  are trying to strip a watermark from something else entirely, that is a different job:
  [how watermark removers actually work](https://www.kavel.ai/blog/chatgpt-watermark-remover?ref=apify).
- **One model, chosen for throughput.** The free lane runs a fast text-to-image model. For
  the frontier ones, compare
  [Nano Banana Pro vs Nano Banana 2](https://www.kavel.ai/image/nano-banana-pro-vs-nano-banana-2?ref=apify)
  and [Gemini 3 Pro Image](https://www.kavel.ai/image/gemini-3-pro-image?ref=apify).

### Recipes

- **Bulk product mockups** — feed one prompt per SKU, pull `imageUrl` straight into a sheet.
- **Blog headers** — one prompt per post title, `16:9`.
- **Portrait sets** — `9:16` plus a prompt list; see
  [AI selfie generator](https://www.kavel.ai/image/ai-selfie-generator?ref=apify) for prompt
  patterns that hold a face steady.
- **Seasonal batches** — e.g.
  [AI Christmas card generator](https://www.kavel.ai/image/ai-christmas-card-generator?ref=apify).

### Who makes this

Built on [Kavel](https://www.kavel.ai/?ref=apify), an AI image and video studio that shows
the credit cost before every generation. There is also a
[n8n template](https://n8n.io/workflows/19009-generate-ai-images-from-form-inputs-with-kavels-anonymous-api/)
running the same endpoint if you prefer that over Apify.

# Actor input Schema

## `prompts` (type: `array`):

One image is generated per prompt.

## `aspectRatio` (type: `string`):

Output shape.

## `timeoutSecs` (type: `integer`):

Give up on one image after this many seconds and move on to the next prompt.

## Actor input object example

```json
{
  "prompts": [
    "a paper boat on a calm lake at sunrise, soft light"
  ],
  "aspectRatio": "1:1",
  "timeoutSecs": 240
}
```

# Actor output Schema

## `images` (type: `string`):

Dataset of generated images: prompt, aspectRatio, imageUrl, watermarked.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompts": [
        "a paper boat on a calm lake at sunrise, soft light"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kavel/kavel-ai-image-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "prompts": ["a paper boat on a calm lake at sunrise, soft light"] }

# Run the Actor and wait for it to finish
run = client.actor("kavel/kavel-ai-image-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompts": [
    "a paper boat on a calm lake at sunrise, soft light"
  ]
}' |
apify call kavel/kavel-ai-image-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kavel/kavel-ai-image-generator"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nhDjg89IDnUJfoyfr/builds/ua26FpW0pgu6EPrGc/openapi.json
