Image Upscaling
Enhance image resolution with AI-powered upscaling 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": [
{"type": "text", "text": "Upscale this image to 4x resolution. Enhance sharpness and detail while keeping the original look natural. Remove any compression artifacts."},
{"type": "image_url", "image_url": {"url": "https://example.com/low-res-photo.jpg"}}
]
}
],
"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": "Upscale this image to 4x resolution. Enhance sharpness and detail while keeping the original look natural. Remove any compression artifacts."
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
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.
Upscaling Scenarios
| Scenario |
Prompt Focus |
Expected Improvement |
| Photo Enlargement |
Preserve natural skin texture, avoid over-sharpening |
Print-ready from web-size |
| Artwork Upscaling |
Maintain brush strokes, color fidelity |
Gallery print from digital |
| Screenshot Enhancement |
Clean edges, readable text, sharp UI elements |
Presentation-ready captures |
| Legacy Photo Recovery |
Reduce grain, restore detail, fix color |
Modern quality from old scans |
| Thumbnail Expansion |
Reconstruct facial features, add detail |
Usable image from tiny source |
Examples
Photo for Print
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": [
{"type": "text", "text": "Upscale this photograph for large-format printing. Increase resolution while preserving natural skin textures, fine hair detail, and fabric weave. Do not over-sharpen or add artificial detail."},
{"type": "image_url", "image_url": {"url": "https://example.com/portrait-web.jpg"}}
]
}
],
"stream": false
}'
Digital Art Upscaling
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": [
{"type": "text", "text": "Upscale this digital illustration to high resolution. Preserve the clean line art, flat color areas, and intentional brush strokes. Keep the artistic style intact without adding photorealistic detail."},
{"type": "image_url", "image_url": {"url": "https://example.com/illustration-small.png"}}
]
}
],
"stream": false
}'
Old Photo Restoration + Upscale
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": [
{"type": "text", "text": "Upscale and restore this old scanned photograph. Remove film grain and scanning artifacts. Enhance facial details and sharpness. Correct faded colors to look natural. Output at 4x the original resolution."},
{"type": "image_url", "image_url": {"url": "https://example.com/old-family-photo-scan.jpg"}}
]
}
],
"stream": false
}'
Prompt Tips
- Specify the goal: "for printing," "for web," or "for a presentation" helps the model optimize
- Mention artifact handling: "Remove JPEG compression artifacts" for heavily compressed sources
- Preserve style intent: For artwork, say "Keep the artistic style" to prevent unwanted photorealism
- Control sharpening: "Do not over-sharpen" prevents artificial haloing effects
- Face priority: "Focus on facial detail" when portraits are the main subject
Resolution Guide
| Source Size |
2x Upscale |
4x Upscale |
Best For |
| 256x256 |
512x512 |
1024x1024 |
Thumbnails, icons |
| 512x512 |
1024x1024 |
2048x2048 |
Social media |
| 1024x1024 |
2048x2048 |
4096x4096 |
Web, presentations |
| 1920x1080 |
3840x2160 |
7680x4320 |
4K/8K display |
Related Skills
Related Models
Documentation
1---2name: image-upscaling-23description: Enhance image resolution with AI upscaling using each::sense AI. Upscale low-resolution images to high resolution while preserving detail, sharpness, and natural texture. Supports 2x and 4x scaling for photos, artwork, screenshots, and legacy media. Use for: photo enlargement, print preparation, low-res recovery, thumbnail upscaling, legacy photo restoration, digital art upscaling. Triggers: image upscaling, upscale image, enhance resolution, super resolution, enlarge image, increase resolution, ai upscale, image enhancer, 4k upscale, photo upscale, high resolution, sharpen image4---56# Image Upscaling78Enhance image resolution with AI-powered upscaling 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": [25 {"type": "text", "text": "Upscale this image to 4x resolution. Enhance sharpness and detail while keeping the original look natural. Remove any compression artifacts."},26 {"type": "image_url", "image_url": {"url": "https://example.com/low-res-photo.jpg"}}27 ]28 }29 ],30 "stream": false31 }'32```3334### Using Python (OpenAI SDK)3536```python37from openai import OpenAI3839client = OpenAI(40 api_key="YOUR_EACHLABS_API_KEY",41 base_url="https://eachsense-agent.core.eachlabs.run/v1"42)4344response = client.chat.completions.create(45 model="eachsense/beta",46 messages=[{47 "role": "user",48 "content": "Upscale this image to 4x resolution. Enhance sharpness and detail while keeping the original look natural. Remove any compression artifacts."49 }],50 # Images are included in the message content array above51)5253print(response.choices[0].message.content)54```5556> Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.5758### Streaming5960Set `"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.6162## Upscaling Scenarios6364| Scenario | Prompt Focus | Expected Improvement |65|----------|-------------|---------------------|66| **Photo Enlargement** | Preserve natural skin texture, avoid over-sharpening | Print-ready from web-size |67| **Artwork Upscaling** | Maintain brush strokes, color fidelity | Gallery print from digital |68| **Screenshot Enhancement** | Clean edges, readable text, sharp UI elements | Presentation-ready captures |69| **Legacy Photo Recovery** | Reduce grain, restore detail, fix color | Modern quality from old scans |70| **Thumbnail Expansion** | Reconstruct facial features, add detail | Usable image from tiny source |7172## Examples7374### Photo for Print7576```bash77curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \78 -H "Content-Type: application/json" \79 -H "X-API-Key: $EACHLABS_API_KEY" \80 -d '{81 "messages": [82 {83 "role": "user",84 "content": [85 {"type": "text", "text": "Upscale this photograph for large-format printing. Increase resolution while preserving natural skin textures, fine hair detail, and fabric weave. Do not over-sharpen or add artificial detail."},86 {"type": "image_url", "image_url": {"url": "https://example.com/portrait-web.jpg"}}87 ]88 }89 ],90 "stream": false91 }'92```9394### Digital Art Upscaling9596```bash97curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \98 -H "Content-Type: application/json" \99 -H "X-API-Key: $EACHLABS_API_KEY" \100 -d '{101 "messages": [102 {103 "role": "user",104 "content": [105 {"type": "text", "text": "Upscale this digital illustration to high resolution. Preserve the clean line art, flat color areas, and intentional brush strokes. Keep the artistic style intact without adding photorealistic detail."},106 {"type": "image_url", "image_url": {"url": "https://example.com/illustration-small.png"}}107 ]108 }109 ],110 "stream": false111 }'112```113114### Old Photo Restoration + Upscale115116```bash117curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \118 -H "Content-Type: application/json" \119 -H "X-API-Key: $EACHLABS_API_KEY" \120 -d '{121 "messages": [122 {123 "role": "user",124 "content": [125 {"type": "text", "text": "Upscale and restore this old scanned photograph. Remove film grain and scanning artifacts. Enhance facial details and sharpness. Correct faded colors to look natural. Output at 4x the original resolution."},126 {"type": "image_url", "image_url": {"url": "https://example.com/old-family-photo-scan.jpg"}}127 ]128 }129 ],130 "stream": false131 }'132```133134## Prompt Tips135136- **Specify the goal**: "for printing," "for web," or "for a presentation" helps the model optimize137- **Mention artifact handling**: "Remove JPEG compression artifacts" for heavily compressed sources138- **Preserve style intent**: For artwork, say "Keep the artistic style" to prevent unwanted photorealism139- **Control sharpening**: "Do not over-sharpen" prevents artificial haloing effects140- **Face priority**: "Focus on facial detail" when portraits are the main subject141142## Resolution Guide143144| Source Size | 2x Upscale | 4x Upscale | Best For |145|-------------|-----------|-----------|----------|146| 256x256 | 512x512 | 1024x1024 | Thumbnails, icons |147| 512x512 | 1024x1024 | 2048x2048 | Social media |148| 1024x1024 | 2048x2048 | 4096x4096 | Web, presentations |149| 1920x1080 | 3840x2160 | 7680x4320 | 4K/8K display |150151## Related Skills152153- [AI Photo Enhancer](../ai-photo-enhancer/SKILL.md) — Improve quality beyond resolution154- [AI Image Editor](../ai-image-editor/SKILL.md) — Edit images with natural language155- [Text to Image](../text-to-image/SKILL.md) — Generate new high-resolution images156157## Related Models158159- [flux-2-max](../../../models/flux-2-max/SKILL.md) — Highest quality image generation160- [flux-kontext-pro](../../../models/flux-kontext-pro/SKILL.md) — Best for reference-based tasks161162## Documentation163164- [each::sense Overview](https://docs.eachlabs.ai/sense/overview)165- [each::labs API](https://docs.eachlabs.ai)