Text to Image
Generate images from text descriptions using each::sense — the intelligent AI agent that automatically selects the best model for your request.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
Using curl
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "A lone astronaut standing on a red desert planet, looking up at a sky filled with three massive moons, cinematic lighting, photorealistic, wide shot"
}
],
"stream": false
}'
Using Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_EACHLABS_API_KEY",
base_url="https://eachsense-agent.core.eachlabs.run/v1"
)
response = client.chat.completions.create(
model="eachsense/beta",
messages=[{
"role": "user",
"content": "A lone astronaut standing on a red desert planet, looking up at a sky filled with three massive moons, cinematic lighting, photorealistic, wide shot"
}]
)
print(response.choices[0].message.content)
Streaming
Set "stream": true for real-time Server-Sent Events (SSE) responses, or "stream": false to receive the complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.
Prompt Engineering Guide
Prompt Structure
[subject] + [action/pose] + [environment] + [style] + [lighting] + [camera/composition]
Style Keywords
| Style |
Keywords |
| Photorealistic |
photorealistic, ultra-realistic, DSLR photo, 8K, raw photo |
| Illustration |
digital illustration, vector art, hand-drawn, watercolor |
| Cinematic |
cinematic, film still, movie scene, dramatic lighting, anamorphic |
| Anime |
anime style, manga, cel shading, Studio Ghibli |
| 3D Render |
3D render, octane render, unreal engine, isometric |
| Oil Painting |
oil painting, impasto, classical art, Renaissance |
| Pixel Art |
pixel art, 16-bit, retro game, 8-bit |
Quality Boosters
masterpiece, highly detailed, sharp focus, professional,
studio quality, award-winning, 8K resolution, HDR
Examples
Photorealistic Landscape
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "A misty fjord in Norway at sunrise, mirror-like water reflecting snow-capped mountains, a small red fishing cabin on the shore, photorealistic, 8K, golden hour lighting"
}
],
"stream": false
}'
Digital Illustration
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "A cozy bookstore interior with a cat sleeping on a stack of old books, warm lamp light, plants hanging from the ceiling, digital illustration, Studio Ghibli style, soft colors"
}
],
"stream": false
}'
Concept Art
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "A floating cyberpunk city above the clouds, neon lights reflecting off chrome towers, flying vehicles streaming between buildings, concept art, matte painting, epic scale, dramatic perspective"
}
],
"stream": false
}'
Product Visualization
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "A sleek wireless earbud case on a marble surface, soft studio lighting, product photography, shallow depth of field, clean minimalist background, commercial quality"
}
],
"stream": false
}'
Common Pitfalls
- Vague prompts produce generic results. Be specific about subject, style, and mood.
- Too many subjects in one prompt cause confusion. Focus on one main subject.
- Text rendering is unreliable in AI-generated images. Avoid asking for specific words.
- Hands and fingers can be distorted. Crop or hide hands if they are not the focus.
- Contradictory styles (e.g., "photorealistic watercolor") confuse the model.
Batch Generation Workflow
# Generate multiple variations by iterating prompts
PROMPTS=(
"A medieval castle on a cliff at sunset, oil painting style"
"A medieval castle on a cliff at sunset, photorealistic"
"A medieval castle on a cliff at sunset, anime style"
)
for PROMPT in "${PROMPTS[@]}"; do
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d "{
\"messages\": [{\"role\": \"user\", \"content\": \"$PROMPT\"}],
\"stream\": false
}"
echo "---"
done
Related Skills
Related Models
Documentation
1---2name: text-to-image3description: Generate images from text descriptions using each::sense AI. Create photorealistic scenes, illustrations, concept art, digital paintings, and any visual from a text prompt. Supports all styles from hyperrealism to anime, abstract to architectural. Use for: concept art, illustrations, marketing visuals, social media images, creative exploration, storyboarding. Triggers: text to image, generate image, create image, ai image, image generation, txt2img, prompt to image, ai art, generate picture, create visual, image from text, ai illustration4---56# Text to Image78Generate images from text descriptions using [each::sense](https://docs.eachlabs.ai/sense/overview) — the intelligent AI agent that automatically selects the best model for your request.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314### Using curl1516```bash17curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \18 -H "Content-Type: application/json" \19 -H "X-API-Key: $EACHLABS_API_KEY" \20 -d '{21 "messages": [22 {23 "role": "user",24 "content": "A lone astronaut standing on a red desert planet, looking up at a sky filled with three massive moons, cinematic lighting, photorealistic, wide shot"25 }26 ],27 "stream": false28 }'29```3031### Using Python (OpenAI SDK)3233```python34from openai import OpenAI3536client = OpenAI(37 api_key="YOUR_EACHLABS_API_KEY",38 base_url="https://eachsense-agent.core.eachlabs.run/v1"39)4041response = client.chat.completions.create(42 model="eachsense/beta",43 messages=[{44 "role": "user",45 "content": "A lone astronaut standing on a red desert planet, looking up at a sky filled with three massive moons, cinematic lighting, photorealistic, wide shot"46 }]47)4849print(response.choices[0].message.content)50```5152### Streaming5354Set `"stream": true` for real-time Server-Sent Events (SSE) responses, or `"stream": false` to receive the complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.5556## Prompt Engineering Guide5758### Prompt Structure5960```61[subject] + [action/pose] + [environment] + [style] + [lighting] + [camera/composition]62```6364### Style Keywords6566| Style | Keywords |67|-------|----------|68| **Photorealistic** | photorealistic, ultra-realistic, DSLR photo, 8K, raw photo |69| **Illustration** | digital illustration, vector art, hand-drawn, watercolor |70| **Cinematic** | cinematic, film still, movie scene, dramatic lighting, anamorphic |71| **Anime** | anime style, manga, cel shading, Studio Ghibli |72| **3D Render** | 3D render, octane render, unreal engine, isometric |73| **Oil Painting** | oil painting, impasto, classical art, Renaissance |74| **Pixel Art** | pixel art, 16-bit, retro game, 8-bit |7576### Quality Boosters7778```79masterpiece, highly detailed, sharp focus, professional,80studio quality, award-winning, 8K resolution, HDR81```8283## Examples8485### Photorealistic Landscape8687```bash88curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \89 -H "Content-Type: application/json" \90 -H "X-API-Key: $EACHLABS_API_KEY" \91 -d '{92 "messages": [93 {94 "role": "user",95 "content": "A misty fjord in Norway at sunrise, mirror-like water reflecting snow-capped mountains, a small red fishing cabin on the shore, photorealistic, 8K, golden hour lighting"96 }97 ],98 "stream": false99 }'100```101102### Digital Illustration103104```bash105curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \106 -H "Content-Type: application/json" \107 -H "X-API-Key: $EACHLABS_API_KEY" \108 -d '{109 "messages": [110 {111 "role": "user",112 "content": "A cozy bookstore interior with a cat sleeping on a stack of old books, warm lamp light, plants hanging from the ceiling, digital illustration, Studio Ghibli style, soft colors"113 }114 ],115 "stream": false116 }'117```118119### Concept Art120121```bash122curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \123 -H "Content-Type: application/json" \124 -H "X-API-Key: $EACHLABS_API_KEY" \125 -d '{126 "messages": [127 {128 "role": "user",129 "content": "A floating cyberpunk city above the clouds, neon lights reflecting off chrome towers, flying vehicles streaming between buildings, concept art, matte painting, epic scale, dramatic perspective"130 }131 ],132 "stream": false133 }'134```135136### Product Visualization137138```bash139curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \140 -H "Content-Type: application/json" \141 -H "X-API-Key: $EACHLABS_API_KEY" \142 -d '{143 "messages": [144 {145 "role": "user",146 "content": "A sleek wireless earbud case on a marble surface, soft studio lighting, product photography, shallow depth of field, clean minimalist background, commercial quality"147 }148 ],149 "stream": false150 }'151```152153## Common Pitfalls154155- **Vague prompts** produce generic results. Be specific about subject, style, and mood.156- **Too many subjects** in one prompt cause confusion. Focus on one main subject.157- **Text rendering** is unreliable in AI-generated images. Avoid asking for specific words.158- **Hands and fingers** can be distorted. Crop or hide hands if they are not the focus.159- **Contradictory styles** (e.g., "photorealistic watercolor") confuse the model.160161## Batch Generation Workflow162163```bash164# Generate multiple variations by iterating prompts165PROMPTS=(166 "A medieval castle on a cliff at sunset, oil painting style"167 "A medieval castle on a cliff at sunset, photorealistic"168 "A medieval castle on a cliff at sunset, anime style"169)170171for PROMPT in "${PROMPTS[@]}"; do172 curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \173 -H "Content-Type: application/json" \174 -H "X-API-Key: $EACHLABS_API_KEY" \175 -d "{176 \"messages\": [{\"role\": \"user\", \"content\": \"$PROMPT\"}],177 \"stream\": false178 }"179 echo "---"180done181```182183## Related Skills184185- [Image to Image](../image-to-image/SKILL.md) — Transform existing images with style transfer186- [AI Image Editor](../ai-image-editor/SKILL.md) — Edit generated images with natural language187- [Image Upscaling](../image-upscaling/SKILL.md) — Enhance resolution of generated images188- [AI Wallpaper Generator](../ai-wallpaper-generator/SKILL.md) — Generate device-ready wallpapers189190## Related Models191192- [flux-2-max](../../../models/flux-2-max/SKILL.md) — Highest quality image generation193- [seedream-v4-5](../../../models/seedream-v4-5/SKILL.md) — Creative and artistic styles194- [nano-banana-pro](../../../models/nano-banana-pro/SKILL.md) — Fast iterations195196## Documentation197198- [each::sense Overview](https://docs.eachlabs.ai/sense/overview)199- [each::labs API](https://docs.eachlabs.ai)