Google's Imagen 4 flagship text-to-image model.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "google/imagen-4",
"input": {
"prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film.",
"aspect_ratio": "16:9",
"safety_filter_level": "block_medium_and_above"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text prompt for image generation |
aspect_ratio | string | No | 1:1 | Aspect ratio of the generated image 1:19:1616:93:44:3 |
image_size | string | No | 1K | Resolution of the generated image. Billed the same regardless of tier 1K2K |
safety_filter_level | string | No | block_only_high | block_low_and_above is strictest; block_only_high is most permissive block_low_and_aboveblock_medium_and_aboveblock_only_high |
output_format | string | No | jpg | Format of the output image jpgpng |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
A late-90s indie film style cinematic portrait
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "google/imagen-4",
"input": {
"prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film.",
"aspect_ratio": "16:9",
"safety_filter_level": "block_medium_and_above"
}
}'POST /v1/predictions