evm_generate_nft_image
Generate NFT images from AI prompts, existing URLs, or local files and return them ready for IPFS upload.
Instructions
Generate NFT image using AI, existing URL, or local file - unified tool supporting 3 input modes.
CRITICAL RULES:
Provide EXACTLY ONE of: prompt (AI), imageUrl (URL), or imagePath (file)
AI generation: Free Pollinations.ai (default) or paid services (FLUX, Stable Diffusion, Playground)
Returns image URL or path ready for IPFS upload
No blockchain interaction - pure image preparation
THREE INPUT MODES:
MODE 1: AI Generation (Free or Paid)
prompt: Text description (required for AI mode)
style: artistic, realistic, cartoon, fantasy, cyberpunk, minimalist (optional)
service: pollinations (free), flux, stable-diffusion, playground (optional, default: pollinations)
aspectRatio: 1:1, 16:9, 9:16, 4:3, 3:4 (optional, default: 1:1)
quality: standard, high, ultra (optional)
seed: Number for reproducible results (optional)
MODE 2: Existing URL
imageUrl: URL to existing image (required for URL mode)
Validates URL format, returns for IPFS upload
MODE 3: Local File
imagePath: Absolute path to local image file (required for file mode)
Returns path for IPFS upload
EXAMPLES:
✅ Free AI Generation (Pollinations): {prompt: "Cyberpunk cat with neon eyes", style: "cyberpunk"} → Uses Pollinations.ai (free, no API key needed)
✅ Paid AI Generation (FLUX): {prompt: "Photorealistic mountain landscape", service: "flux", quality: "ultra"} → Uses FLUX.1 (requires FLUX_API_KEY env var)
✅ Existing URL: {imageUrl: "https://example.com/artwork.png"} → Validates and prepares for IPFS upload
✅ Local File: {imagePath: "/Users/me/Desktop/nft-art.jpg"} → Prepares local file for IPFS upload
AI SERVICES: • Pollinations.ai - FREE, no API key, unlimited use • FLUX.1 - Requires FLUX_API_KEY + FLUX_MODEL_VERSION • Stable Diffusion - Requires HUGGINGFACE_API_KEY • Playground AI - Requires PLAYGROUND_API_KEY
OUTPUT STRUCTURE: • mode: ai_generation, existing_url, or local_file • imageUrl: Direct URL (AI or existing) • imagePath: Local file path (file mode) • model: AI service used • cost: Generation cost ($0 for Pollinations) • suggestedFilename: Recommended filename • nextSteps: What to do with the image
WORKFLOW:
Generate/select image (this tool)
Upload to IPFS: evm_create_nft_with_ipfs
Deploy NFT contract: evm_deploy_nft
Mint NFT: evm_mint_nft
COMMON MISTAKES:
Providing multiple input modes (only ONE allowed)
Expecting blockchain interaction (this is image-only)
Not setting API keys for paid services
Using relative paths instead of absolute paths
USE CASES:
Generate AI art for NFT collections
Use existing artwork from URLs
Upload local digital art files
Test NFT workflows with free images
Running on Linux.
LINUX-SPECIFIC NOTES:
Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)
Python 3 is typically 'python3' command
GNU tools are standard
Use 'xdg-open' command to open files/applications
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "evm_generate_nft_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | AI generation: Random seed for reproducible results | |
| model | No | AI generation: Specific model name (e.g., flux, turbo) | |
| style | No | AI generation: Art style | |
| prompt | No | AI generation: Text description of image to generate | |
| quality | No | AI generation: Quality level (default: high) | |
| service | No | AI generation: Service to use (default: pollinations - free) | |
| imageUrl | No | Existing URL: URL of image to use | |
| imagePath | No | Local file: Absolute path to image file | |
| aspectRatio | No | AI generation: Image aspect ratio (default: 1:1) |