
Create Detailed Images from Text with AI
Fast Image Creation for Any Project
Imagen 4 produces lifelike 2K images, rendering realistic details like water droplets, fabrics, and animal fur.
Get API Key

It captures intricate elements with precision, such as the texture of clothing or natural patterns, ensuring high-quality output for professional design.
Get API KeyImagen 4 renders clear, legible text with accurate spelling, even in small fonts, ideal for comics, posters, and slides.


AI/ML API provides scalability, faster deployment, and access to 200+ advanced machine learning models without the need for extensive in-house expertise or infrastructure.
Our API allows seamless integration of powerful AI capabilities into your applications, regardless of your coding experience. Simply swap your API key to begin using the AI/ML API.
AI/ML API provides flexibility for business growth since you can scale resources by purchasing more tokens as needed, ensuring optimal performance and cost efficiency
We offer flat, predictable pricing, payable by card or cryptocurrency, keeping it the lowest on the market and affordable for everyone.

import requests
def main():
response = requests.post(
"https://api.aimlapi.com/v1/images/generations",
headers={
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
"Content-Type": "application/json",
},
json={
"prompt": "Racoon eating ice-cream",
"model": "google/imagen4/preview",
"aspect_ratio": "16:9"
}
)
response.raise_for_status()
data = response.json()
print("Generation:", data)
if __name__ == "__main__":
main()Visit AI Playground to quickly try Imagen.
For more information about technical features, please refer to Imagen 4 documentation or model card.