# AI Art Generator (`easyapi/ai-art-generator`) Actor

Generate stunning AI art with custom prompts and diverse styles in seconds! 🎨✨

- **URL**: https://apify.com/easyapi/ai-art-generator.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** AI, Integrations, Developer tools
- **Stats:** 56 total users, 2 monthly users, 100.0% runs succeeded, 1 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 Art Generator 🎨

Unleash your creativity with the AI Art Generator! This powerful actor allows you to generate stunning AI-generated images based on your custom prompts. Whether you're looking for a 3D model, anime style, or fantasy art, this tool has got you covered. Simply input your desired prompt, choose a style, and let the magic happen! ✨

### Features

- **Custom Prompts**: Tailor your art with unique prompts to get the perfect image.
- **Multiple Styles**: Choose from a variety of styles including 3D Model, Anime, Fantasy Art, and more.
- **High-Quality Output**: Get high-resolution images ready for use in your projects.
- **Easy Integration**: Seamlessly integrate with your existing workflows using Apify's powerful platform.

### How to Use

1. **Input your prompt**: Describe the image you want to generate.
2. **Select a style**: Choose from a wide range of artistic styles.
3. **Generate and download**: Get your AI-generated image in seconds.

### Use Cases

- **Creative Projects**: Enhance your creative projects with unique AI-generated art.
- **Marketing Materials**: Create eye-catching visuals for your marketing campaigns.
- **Personal Use**: Generate art for personal enjoyment or as gifts.

Get started today and explore the endless possibilities of AI-generated art! 🚀

#### Input Example

A full explanation of an input example in JSON.

```
{
    "prompt: "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
    "style": "3D Model"
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

![sample-image-1](https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083261-0.jpg)
![sample-image-2](https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-1.jpg)
![sample-image-3](https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-2.jpg)
![sample-image-4](https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-3.jpg)

```
[
    {
        "imageUrl": "https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083261-0.jpg",
        "prompt": "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
        "style": "3D Model",
        "model": "sdxl",
        "index": 0
    },
    {
        "imageUrl": "https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-1.jpg",
        "prompt": "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
        "style": "3D Model",
        "model": "sdxl",
        "index": 1
    },
    {
        "imageUrl": "https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-2.jpg",
        "prompt": "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
        "style": "3D Model",
        "model": "sdxl",
        "index": 2
    },
    {
        "imageUrl": "https://api.apify.com/v2/key-value-stores/URHVU57IGPUOm9wfi/records/image-1733388083262-3.jpg",
        "prompt": "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
        "style": "3D Model",
        "model": "sdxl",
        "index": 3
    }
]
```

#### Related Actors

- 🎨 [AI Face Generator](https://apify.com/easyapi/ai-face-generator) - Create diverse HD facial images using AI for design and research projects
- 🤖 [AI Idea Generator](https://apify.com/easyapi/ai-idea-generator) - Transform creative challenges into innovative solutions with AI-powered suggestions
- 🎨 [AI Art Prompt Generator](https://apify.com/easyapi/ai-art-prompt-generator) - Generate creative prompts for AI art creation with specific themes and concepts
- 🖼️ [Image to Prompt Generator](https://apify.com/easyapi/image-to-prompt-generator) - Convert images into detailed text descriptions for AI art generation
- 🔍 [AI-powered Search](https://apify.com/easyapi/ai-powered-search) - Get structured, AI-enhanced summaries with references and optimization tips
- 🎨 [Pinterest Image Downloader](https://apify.com/easyapi/pinterest-image-downloader) - Download high-quality images from Pinterest for inspiration
- 🖼️ [Unsplash Image Scraper](https://apify.com/easyapi/unsplash-image-scraper) - Fetch professional stock photos with detailed metadata
- 🎨 [Adobe Stock Search Scraper](https://apify.com/easyapi/adobe-stock-search-scraper) - Extract image, video, and illustration data from Adobe Stock
- 🎯 [Pinterest Search Scraper](https://apify.com/easyapi/pinterest-search-scraper) - Discover visual content on Pinterest with customizable search options
- 🔍 [Pinterest Keyword Autocomplete Scraper](https://apify.com/easyapi/pinterest-keyword-autocomplete-scraper) - Get keyword suggestions for better content discovery
- 🖼️ [Anime Wallpaper Scraper](https://apify.com/easyapi/anime-wallpaper-scraper) - Collect high-quality anime wallpapers from multiple sources
- 📊 [URL Metadata Crawler](https://apify.com/easyapi/url-metadata-crawler) - Extract comprehensive metadata from web pages including images
- 🎯 [Pinterest Profile Scraper](https://apify.com/easyapi/pinterest-profile-scraper) - Extract Pinterest user profiles data for inspiration and analysis
- 🎨 [Pinterest Boards Scraper](https://apify.com/easyapi/pinterest-boards-scraper) - Discover and explore creative collections on Pinterest
- 🔍 [Meta Tags Check API](https://apify.com/easyapi/meta-tags-check-api) - Analyze and optimize image metadata and social media previews

# Actor input Schema

## `prompt` (type: `string`):

The description of the image you want to generate.

## `style` (type: `string`):

The artistic style of the generated image.

## Actor input object example

```json
{
  "prompt": "plague doctor with steampunk upgrades, Victorian sci-fi, dark fantasy",
  "style": "3D Model"
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/ai-art-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/ai-art-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 '{}' |
apify call easyapi/ai-art-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/ai-art-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/9p07Z89Lnq3kRNtbf/builds/FYmnslXIDDkU3MgzR/openapi.json
