High-quality image generation with optional character consistency using FLUX.1-dev and PuLID.
1{
2 "inputs": "A professional portrait of a business person",
3 "parameters": {
4 "mode": "generate",
5 "width": 1344,
6 "height": 768,
7 "num_inference_steps": 28,
8 "guidance_scale": 3.5
9 }
10}
1{
2 "inputs": "",
3 "parameters": {
4 "mode": "register",
5 "face_image": "data:image/png;base64,...",
6 "character_name": "Hero_A"
7 }
8}
1{
2 "success": true,
3 "character_id": "uuid-xxx",
4 "character_name": "Hero_A",
5 "embedding_cached": true
6}
1{
2 "inputs": "Hero_A sitting in a coffee shop, morning light",
3 "parameters": {
4 "mode": "generate_with_ids",
5 "character_ids": ["uuid-xxx"],
6 "id_weight": 0.8,
7 "width": 1344,
8 "height": 768
9 }
10}
1{
2 "inputs": "",
3 "parameters": {
4 "mode": "check_cache",
5 "character_ids": ["uuid-xxx", "uuid-yyy"]
6 }
7}
1{
2 "inputs": "",
3 "parameters": {
4 "mode": "clear_cache",
5 "character_ids": ["uuid-xxx"]
6 }
7}