Leonardo AI API - Image Generation, Upscaling & Custom Models
Pricing
from $0.01 / 1,000 results
Leonardo AI API - Image Generation, Upscaling & Custom Models
Generate stunning AI images with Leonardo AI's powerful image generation models. Create images from text prompts, upscale existing images, generate variations, and access custom-trained models through a simple interface.
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer

John Rippy
Actor stats
0
Bookmarked
3
Total users
1
Monthly active users
12 days ago
Last modified
Categories
Share
API Integration
This actor connects to an external API service. You'll need valid API credentials from the service provider.
API Integration
This actor connects to an external API service. You'll need valid API credentials from the service provider.
Generate stunning AI images with Leonardo AI. Create images from text prompts, upscale existing images, generate variations, and use custom-trained models. Perfect for content creation, marketing, game assets, and creative automation.
Features
Image Generation
- generate_image - Generate images from text prompts
- get_generation - Get details of a specific generation
- list_generations - List recent generations
- list_user_generations - List your generations
Image Enhancement
- upscale_image - Upscale images to higher resolution
- generate_variations - Create variations of existing images
Models
- list_models - List available generation models
- get_model - Get details of a specific model
Account
- get_user_info - Get account info and credit balance
- calculate_cost - Estimate cost before generating
Quick Start
{"input": "your input here"}
Demo Mode
Set demoMode: true to test with sample data (no charges). When you're ready for real results, set demoMode: false or omit it.
{"demoMode": true,...}
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| See input schema |
Output Format
{"task": "generate_image","success": true,"result": {"generationId": "gen_abc123","status": "COMPLETE","images": [{"id": "img_001","url": "https://cdn.leonardo.ai/...","nsfw": false,"likeCount": 0}],"prompt": "A serene mountain landscape at sunset","modelId": "6bef9f1b-29cb-40c7-b9df-32b51c1f67d3","createdAt": "2024-01-20T14:30:00Z"},"creditCost": 7,"timestamp": "2024-01-20T14:30:00Z"}
Pricing
This actor uses pay-per-event billing: $0.01 per query (all tasks)
Note: Leonardo AI has its own credit system. Typical generation costs 5-8 credits.
Use Cases
- Content Creation - Generate blog images, social media visuals
- Marketing - Create ad creatives, product mockups
- Game Development - Generate game assets, concept art
- E-commerce - Product visualization, lifestyle imagery
- Design - Mood boards, style exploration
- Stock Photos - Generate custom stock imagery
- NFT Art - Create unique digital artwork
Common Problems & Solutions
"Invalid API key" error
Cause: Your API key is wrong, expired, or doesn't have the right permissions. Fix: Double-check your API key. Make sure you copied it exactly without extra spaces.
"Rate limit exceeded" error
Cause: You've hit the API's rate limits. Fix: Wait a few minutes, then try again. Consider reducing the number of concurrent requests.
Empty or incomplete results
Cause: The target may have anti-scraping protection or the data doesn't exist. Fix:
- Check if the URL/search query is correct
- Try with different parameters
- Some sites may block automated access
Demo data showing instead of real results
Cause: demoMode is still set to true.
Fix: Set demoMode: false and provide your API key(s).
Built by John Rippy | Actor Arsenal

