All models




Imagen 4
google/imagen-4
Google Image GenerationHigh QualityPhotorealistic
Google's latest image generation model producing high-quality, photorealistic images from text prompts with support for multiple aspect ratios.
Quick start
# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
-H "content-type: application/json" \
-d '{
"model": "google/imagen-4",
"prompt": "<your prompt>"
}'
# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
-J '{"model": "google/imagen-4", "prompt": "<your prompt>"}'Examples





Parameters
Input
prompt string required
Text prompt describing the image to generate
aspect_ratio string optional
Aspect ratio of the generated image
person_generation string optional
Allow the model to generate images of people. dont_allow: block people, allow_adult: adults only, allow_all: adults and children
Output
image: URL to the generated image