Loading...
Loading...
Generate new images from text prompts using EachLabs AI models. Supports text-to-image with multiple model families including Flux, GPT Image, Gemini, Imagen, Seedream, and more. Use when the user wants to create new images from text. For editing existing images, see eachlabs-image-edit.
npx skill4agent add eachlabs/skills eachlabs-image-generationeachlabs-image-editHeader: X-API-Key: <your-api-key>EACHLABS_API_KEYcurl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-turbo-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "A serene Japanese garden with cherry blossoms, watercolor style",
"image_size": "landscape_16_9",
"num_images": 1,
"output_format": "png"
}
}'curl https://api.eachlabs.ai/v1/prediction/{prediction_id} \
-H "X-API-Key: $EACHLABS_API_KEY"status"success""failed"| Model | Slug | Best For |
|---|---|---|
| Flux 2 Turbo | | Fast, high quality general purpose |
| Flux 2 Flash | | Fastest Flux generation |
| Flux 2 Max | | Highest quality Flux |
| Flux 2 Klein 9B | | Balanced quality/speed |
| Flux 2 Pro | | Pro quality |
| Flux 2 Flex | | Flexible outputs |
| Flux 2 LoRA | | LoRA-powered generation |
| XAI Grok Imagine | | Creative and artistic |
| GPT Image v1.5 | | High quality, transparent bg |
| Bytedance Seedream v4.5 | | Bytedance latest |
| Gemini 3 Pro Image | | Google's latest |
| Imagen 4 | | Google Imagen 4 |
| Imagen 4 Fast | | Fast Google quality |
| Reve | | Artistic text-to-image |
| Hunyuan Image v3 | | Tencent's latest |
| Ideogram V3 Turbo | | Text in images |
| Minimax | | High quality |
| Wan v2.6 | | Chinese/English bilingual |
| P Image | | Custom aspect ratios |
| Nano Banana Pro | | Fast, lightweight |
| Vidu Q2 | | Latest Vidu |
| Model | Slug | Best For |
|---|---|---|
| Z Image Trainer | | Custom LoRA training |
| Flux LoRA Portrait Trainer | | Portrait LoRA |
| Flux Turbo Trainer | | Fast LoRA training |
GET https://api.eachlabs.ai/v1/model?slug=<slug>request_schemahttps://api.eachlabs.ai/v1/prediction"0.0.1"GET https://api.eachlabs.ai/v1/prediction/{id}"success""failed"curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-turbo-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "A red vintage Porsche 911 on a winding mountain road at golden hour, photorealistic",
"image_size": "landscape_16_9",
"num_images": 1,
"output_format": "png"
}
}'curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "gpt-image-v1-5-text-to-image",
"version": "0.0.1",
"input": {
"prompt": "A minimalist logo for a coffee shop called Brew Lab, clean vector style",
"background": "transparent",
"quality": "high",
"output_format": "png"
}
}'curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "imagen4-preview",
"version": "0.0.1",
"input": {
"prompt": "A whimsical fairy tale castle on a floating island, digital art, highly detailed"
}
}'square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_91:116:99:164:33:43:22:3custom