Image Generator
Generate images from text prompts using AI models (Flux, Imagen, and more).
You have access to image generation through the OpenLabor API.
How to Generate Images
Use the exec tool to run use. Credentials are loaded automatically from the workspace.
use images GENERATE '{"prompt":"your image description","model":"flux-schnell"}'
Parameters
| Parameter |
Type |
Default |
Description |
prompt |
string |
required |
Detailed description of the image to generate |
model |
string |
"flux-schnell" |
Which model to use (see models below) |
aspect_ratio |
string |
"1:1" |
Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4) |
num_images |
string |
"1" |
Number of images (1-4) |
output_format |
string |
"webp" |
Output format (webp, png, jpg) |
Available Models
| Model ID |
Speed |
Quality |
Best For |
flux-schnell |
Fast (~5s) |
Good |
Quick drafts, iteration |
flux-dev |
Medium (~15s) |
High |
Balanced quality/speed |
flux-2-pro |
Slow (~30s) |
Highest |
Final/polished images |
imagen-4-fast |
Fast (~5s) |
Good |
Quick Google-quality drafts |
imagen-4 |
Medium (~15s) |
High |
Balanced Google quality |
imagen-4-ultra |
Slow (~45s) |
Highest |
Ultra-quality images |
List Available Models
use images MODELS '{}'
Examples
# Social media post image
use images GENERATE '{"prompt":"Modern minimal workspace with laptop showing analytics dashboard, warm lighting, top-down view","model":"flux-schnell","aspect_ratio":"1:1"}'
# Twitter header
use images GENERATE '{"prompt":"Abstract gradient background in deep blue and purple, subtle geometric patterns","model":"flux-dev","aspect_ratio":"16:9"}'
# Instagram story
use images GENERATE '{"prompt":"Bold typographic quote card, white text on dark background, motivational","model":"flux-schnell","aspect_ratio":"9:16"}'
# High-quality brand image
use images GENERATE '{"prompt":"Professional product photo of a sleek SaaS dashboard on a MacBook, clean desk setup","model":"flux-2-pro","aspect_ratio":"16:9"}'
Response Format
Returns JSON with:
model — Model used
images — Array of image URLs (or base64 data URIs for Google models)
durationMs — Generation time in milliseconds
Prompt Writing Tips
For Social Media Images
- Be specific about style: "minimal", "bold", "professional", "playful"
- Include composition details: "top-down view", "close-up", "wide shot"
- Mention lighting: "warm lighting", "natural light", "studio lighting"
- Specify mood: "energetic", "calm", "professional", "casual"
For Brand Content
- Reference your brand colors if relevant
- Be specific about what should be in the image
- Include "no text" if you want a clean image without text
- Use "professional", "corporate", "clean" for business content
What Works Best
- Detailed, specific prompts get better results
- Include style references: "in the style of Apple product photography"
- Specify what you DON'T want: "no people", "no text", "no watermark"
- Use
flux-schnell for iteration, then flux-2-pro for the final version
Guidelines
- Generate images that are on-brand and professional
- Use 1:1 for social posts, 16:9 for headers/banners, 9:16 for stories
- Start with
flux-schnell for speed, upgrade model for final versions
- Never generate inappropriate, misleading, or offensive content
- Credit AI generation when required by platform rules
1---2name: image-generator3description: Generate images from text prompts using Flux, Imagen, and other AI models4---56<!-- openlabor-connector: images, api_key={{INTERNAL_API_KEY}}, employee={{EMPLOYEE_ID}}, base={{API_BASE_URL}} -->78# Image Generator910Generate images from text prompts using AI models (Flux, Imagen, and more).1112You have access to image generation through the OpenLabor API.1314## How to Generate Images1516Use the exec tool to run `use`. Credentials are loaded automatically from the workspace.1718```19use images GENERATE '{"prompt":"your image description","model":"flux-schnell"}'20```2122### Parameters2324| Parameter | Type | Default | Description |25|-----------|------|---------|-------------|26| `prompt` | string | required | Detailed description of the image to generate |27| `model` | string | "flux-schnell" | Which model to use (see models below) |28| `aspect_ratio` | string | "1:1" | Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4) |29| `num_images` | string | "1" | Number of images (1-4) |30| `output_format` | string | "webp" | Output format (webp, png, jpg) |3132### Available Models3334| Model ID | Speed | Quality | Best For |35|----------|-------|---------|----------|36| `flux-schnell` | Fast (~5s) | Good | Quick drafts, iteration |37| `flux-dev` | Medium (~15s) | High | Balanced quality/speed |38| `flux-2-pro` | Slow (~30s) | Highest | Final/polished images |39| `imagen-4-fast` | Fast (~5s) | Good | Quick Google-quality drafts |40| `imagen-4` | Medium (~15s) | High | Balanced Google quality |41| `imagen-4-ultra` | Slow (~45s) | Highest | Ultra-quality images |4243### List Available Models4445```46use images MODELS '{}'47```4849### Examples5051```52# Social media post image53use images GENERATE '{"prompt":"Modern minimal workspace with laptop showing analytics dashboard, warm lighting, top-down view","model":"flux-schnell","aspect_ratio":"1:1"}'5455# Twitter header56use images GENERATE '{"prompt":"Abstract gradient background in deep blue and purple, subtle geometric patterns","model":"flux-dev","aspect_ratio":"16:9"}'5758# Instagram story59use images GENERATE '{"prompt":"Bold typographic quote card, white text on dark background, motivational","model":"flux-schnell","aspect_ratio":"9:16"}'6061# High-quality brand image62use images GENERATE '{"prompt":"Professional product photo of a sleek SaaS dashboard on a MacBook, clean desk setup","model":"flux-2-pro","aspect_ratio":"16:9"}'63```6465### Response Format6667Returns JSON with:68- `model` — Model used69- `images` — Array of image URLs (or base64 data URIs for Google models)70- `durationMs` — Generation time in milliseconds7172## Prompt Writing Tips7374### For Social Media Images75- Be specific about style: "minimal", "bold", "professional", "playful"76- Include composition details: "top-down view", "close-up", "wide shot"77- Mention lighting: "warm lighting", "natural light", "studio lighting"78- Specify mood: "energetic", "calm", "professional", "casual"7980### For Brand Content81- Reference your brand colors if relevant82- Be specific about what should be in the image83- Include "no text" if you want a clean image without text84- Use "professional", "corporate", "clean" for business content8586### What Works Best87- Detailed, specific prompts get better results88- Include style references: "in the style of Apple product photography"89- Specify what you DON'T want: "no people", "no text", "no watermark"90- Use `flux-schnell` for iteration, then `flux-2-pro` for the final version9192## Guidelines93- Generate images that are on-brand and professional94- Use 1:1 for social posts, 16:9 for headers/banners, 9:16 for stories95- Start with `flux-schnell` for speed, upgrade model for final versions96- Never generate inappropriate, misleading, or offensive content97- Credit AI generation when required by platform rules