Photomaker - Image Generation
Generate photos while preserving identity from input images. Upload 1-4 reference photos and use the 'img' trigger word in your prompt to generate new images that preserve the person's identity with various style presets.
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": "photomaker",
"version": "0.0.1",
"input": {
"prompt": "A photo of a man img wearing a business suit in a modern office",
"input_image": "https://example.com/face-photo.jpg",
"style_name": "Photographic (Default)",
"num_steps": 20,
"guidance_scale": 5
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| disable_safety_checker |
boolean |
false |
Disable safety checker |
| guidance_scale |
number |
5 |
Guidance scale. 1 corresponds to no classifier free guidance |
| input_image |
string |
- |
Input image (e.g., a photo of your face) |
| input_image2 |
string |
- |
Additional input image (optional) |
| input_image3 |
string |
- |
Additional input image (optional) |
| input_image4 |
string |
- |
Additional input image (optional) |
| negative_prompt |
string |
nsfw, lowres, bad anatomy, bad hands, text... |
Negative prompt (should NOT contain the trigger word) |
| num_outputs |
integer |
1 |
Number of output images |
| num_steps |
integer |
20 |
Number of sample steps |
| prompt |
string |
A photo of a person img |
Prompt. Use 'img' as the trigger word |
| seed |
integer |
- |
Seed. Leave blank for random |
| style_name |
string |
Photographic (Default) |
Style preset. enum: (No style), Cinematic, Disney Charactor, Digital Art, Photographic (Default), Fantasy art, Neonpunk, Enhance, Comic book, Lowpoly, Line art |
| style_strength_ratio |
number |
20 |
Style strength (%) |
Examples
Cinematic portrait with multiple references:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "photomaker",
"version": "0.0.1",
"input": {
"prompt": "A cinematic photo of a woman img standing on a cliff overlooking the ocean at sunset",
"input_image": "https://example.com/face-front.jpg",
"input_image2": "https://example.com/face-side.jpg",
"style_name": "Cinematic",
"style_strength_ratio": 30,
"num_outputs": 2,
"guidance_scale": 5,
"seed": 42
}
}'
Fantasy art style:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "photomaker",
"version": "0.0.1",
"input": {
"prompt": "A fantasy art portrait of a person img as a medieval knight in enchanted armor",
"input_image": "https://example.com/selfie.jpg",
"style_name": "Fantasy art",
"style_strength_ratio": 25,
"num_steps": 25,
"guidance_scale": 6
}
}'
Related Models
Documentation
1---2name: photomaker3description: Photomaker - Image Generation | Identity-Preserving Photo Generation. Generate photos while preserving identity from input images with style presets. Triggers: photomaker, identity photo, photo generation, face preserve, photomaker image4---56# Photomaker - Image Generation78Generate photos while preserving identity from input images. Upload 1-4 reference photos and use the 'img' trigger word in your prompt to generate new images that preserve the person's identity with various style presets.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314```bash15curl -X POST https://api.eachlabs.ai/v1/prediction \16 -H "Content-Type: application/json" \17 -H "X-API-Key: $EACHLABS_API_KEY" \18 -d '{19 "model": "photomaker",20 "version": "0.0.1",21 "input": {22 "prompt": "A photo of a man img wearing a business suit in a modern office",23 "input_image": "https://example.com/face-photo.jpg",24 "style_name": "Photographic (Default)",25 "num_steps": 20,26 "guidance_scale": 527 }28 }'29```3031## Parameters3233| Parameter | Type | Default | Description |34|-----------|------|---------|-------------|35| disable_safety_checker | boolean | false | Disable safety checker |36| guidance_scale | number | 5 | Guidance scale. 1 corresponds to no classifier free guidance |37| input_image | string | - | Input image (e.g., a photo of your face) |38| input_image2 | string | - | Additional input image (optional) |39| input_image3 | string | - | Additional input image (optional) |40| input_image4 | string | - | Additional input image (optional) |41| negative_prompt | string | nsfw, lowres, bad anatomy, bad hands, text... | Negative prompt (should NOT contain the trigger word) |42| num_outputs | integer | 1 | Number of output images |43| num_steps | integer | 20 | Number of sample steps |44| prompt | string | A photo of a person img | Prompt. Use 'img' as the trigger word |45| seed | integer | - | Seed. Leave blank for random |46| style_name | string | Photographic (Default) | Style preset. enum: (No style), Cinematic, Disney Charactor, Digital Art, Photographic (Default), Fantasy art, Neonpunk, Enhance, Comic book, Lowpoly, Line art |47| style_strength_ratio | number | 20 | Style strength (%) |4849## Examples5051**Cinematic portrait with multiple references:**52```bash53curl -X POST https://api.eachlabs.ai/v1/prediction \54 -H "Content-Type: application/json" \55 -H "X-API-Key: $EACHLABS_API_KEY" \56 -d '{57 "model": "photomaker",58 "version": "0.0.1",59 "input": {60 "prompt": "A cinematic photo of a woman img standing on a cliff overlooking the ocean at sunset",61 "input_image": "https://example.com/face-front.jpg",62 "input_image2": "https://example.com/face-side.jpg",63 "style_name": "Cinematic",64 "style_strength_ratio": 30,65 "num_outputs": 2,66 "guidance_scale": 5,67 "seed": 4268 }69 }'70```7172**Fantasy art style:**73```bash74curl -X POST https://api.eachlabs.ai/v1/prediction \75 -H "Content-Type: application/json" \76 -H "X-API-Key: $EACHLABS_API_KEY" \77 -d '{78 "model": "photomaker",79 "version": "0.0.1",80 "input": {81 "prompt": "A fantasy art portrait of a person img as a medieval knight in enchanted armor",82 "input_image": "https://example.com/selfie.jpg",83 "style_name": "Fantasy art",84 "style_strength_ratio": 25,85 "num_steps": 25,86 "guidance_scale": 687 }88 }'89```9091## Related Models9293- [photomaker-style](../photomaker-style/) - Photomaker with style focus94- [instant-id](../instant-id/) - Instant ID avatar generation95- [flux-trained](../flux-trained/) - Flux face-guided generation9697## Documentation9899- [each::labs Docs](https://docs.eachlabs.ai)100- [API Reference](https://docs.eachlabs.ai/api/overview)