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": <string>
}'
# 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": "<string>"}'Examples





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