Custom Image Generation v2
Generate images from text prompts using Custom Image Generation v2. Supports multiple aspect ratios (1:1, 2:3, 3:2).
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "custom-image-generation-v2",
"version": "0.0.1",
"input": {
"prompt": "A majestic snow-capped mountain reflected in a crystal clear lake at sunrise",
"image_url_1": "https://example.com/your-image.jpg"
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
aspect_ratio |
string | Options: 1:1, 2:3, 3:2 |
|
image_url_1 |
string | ||
image_url_10 |
string | ||
image_url_2 |
string | ||
image_url_3 |
string | ||
image_url_4 |
string | ||
image_url_5 |
string | ||
image_url_6 |
string | ||
image_url_7 |
string | ||
image_url_8 |
string | ||
image_url_9 |
string | ||
prompt |
string | Text prompt for image generation | |
style_slug |
string | ghibli-anime | Options: ghibli-anime, vintage-cartoon, simpsons, disney-animation, chibi-art, pixar-3d, funko-pop, yearbook-portrait, ukiyo-e, `... |
Examples
Generate a landscape:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "custom-image-generation-v2",
"version": "0.0.1",
"input": {
"prompt": "A majestic snow-capped mountain reflected in a crystal clear lake at sunrise",
"image_url_1": "https://example.com/your-image.jpg"
}
}'
Detailed scene with style:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "custom-image-generation-v2",
"version": "0.0.1",
"input": {
"prompt": "A cyberpunk street market at night with holographic signs and rain-slicked roads, ultra detailed",
"image_url_1": "https://example.com/your-image.jpg",
"aspect_ratio": "9:16"
}
}'