AI Image Generation — Text to Image API
Under maintenancePricing
from $20.00 / 1,000 results
AI Image Generation — Text to Image API
Under maintenanceGenerate images from text prompts: photos, illustrations, and artwork with multiple styles and quality options. Input a prompt, get image files back — ready for content creation, marketing assets, and creative automation.
Pricing
from $20.00 / 1,000 results
Rating
0.0
(0)
Developer
Fabio Suizu
Maintained by CommunityActor stats
0
Bookmarked
85
Total users
0
Monthly active users
7 days ago
Last modified
Categories
Share
AI Image Generation
Generate images from text prompts using AI. Create photos, illustrations, artwork, and more with Gemini image generation.
Features
- Fast Processing: Lightning-fast ai image generation powered by Azure
- Reliable: 99.9% uptime with automatic failover
- Scalable: Handle single requests or bulk operations
- Secure: Enterprise-grade security with API key authentication
- Well Documented: Comprehensive API documentation and examples
Use Cases
- E-commerce: Process product images at scale
- Media: Automate image processing pipelines
- Apps: Add image processing to your applications
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Describe the image you want to generate |
prompts | array | No | List of prompts for batch generation |
style | string | No | Visual style for the generated image |
quality | string | No | Image quality setting |
size | string | No | Output image dimensions |
saveToKeyValueStore | boolean | No | Save generated images to key-value store |
Output Format
{"success": true,"result": { ... },"timestamp": "2026-01-07T00:00:00Z"}
Code Examples
JavaScript (Node.js)
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const input = {"prompt": "A beautiful sunset over mountains with a lake reflection","prompts": ["A red apple","A blue car","A green forest"],"style": "vivid","quality": "standard","size": "1024x1024","saveToKeyValueStore": true};const run = await client.actor("vivid_astronaut/image-generation").call(input);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run_input = {"prompt": "A beautiful sunset over mountains with a lake reflection","prompts": ["A red apple","A blue car","A green forest"],"style": "vivid","quality": "standard","size": "1024x1024","saveToKeyValueStore": true}run = client.actor("vivid_astronaut/image-generation").call(run_input=run_input)for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
cURL
curl -X POST "https://api.apify.com/v2/acts/vivid_astronaut~image-generation/runs?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"prompt": "A beautiful sunset over mountains with a lake reflection","prompts": ["A red apple","A blue car","A green forest"],"style": "vivid","quality": "standard","size": "1024x1024","saveToKeyValueStore": true}'
Pricing
Model: Pay per result Price: $0.020 per result
You only pay for successful results. Platform usage costs are included.
API Documentation
Full API documentation is available at:
Support
- Issues: Report bugs via Apify Console
- Documentation: Apify Docs
- Community: Apify Discord
Version History
See ./CHANGELOG.md for version history.
Powered by Azure Cloud Infrastructure
