- { “task”: “portrait_restoration”, “language”: “zh-CN”, “prompt”: { “subject”: { “type”: “human_portrait”, “identity_fidelity”: “match_uploaded_face_100_percent”, “no_facial_modification”: true, “expression”: “natural”, “eye_detail”: “sharp_clear”, “skin_texture”: “ultra_realistic”, “hair_detail”: “natural_individual_strands”, “fabric_detail”: “rich_high_frequency_detail” }, “lighting”: { “exposure”: “bright_clear”, “style”: “soft_studio_light”, “brightness_balance”: “even”, “specular_highlights”: “natural_on_face_and_eyes”, “shadow_transition”: “smooth_gradual” }, “image_quality”: { “resolution”: “8k”, “clarity”: “high”, “noise”: “clean_low”, “artifacts”: “none”, “over_smoothing”: “none” }, “optics”: { “camera_style”: “full_frame_dslr”, “lens”: “85mm”, “aperture”: “f/1.8”, “depth_of_field”: “soft_shallow”, “bokeh”: “smooth_natural” }, “background”: { “style”: “clean_elegant”, “distraction_free”: true, “tone”: “neutral” }, “color_grading”: { “style”: “cinematic”, “saturation”: “rich_but_natural”, “white_balance”: “accurate”, “skin_tone”: “natural_true_to_subject” }, “style_constraints”: { “no_cartoon”: true, “no_beauty_filter”: true, “no_plastic_skin”: true, “no_face_reshaping”: true, “no_ai_face_swap”: true } }, “negative_prompt”: [ “cartoon”, “anime”, “cgi”, “painterly”, “plastic skin”, “over-smoothing”, “over-sharpening halos”, “heavy skin retouching”, “face reshaping”, “identity drift”, “face swap”, “beauty filter”, “uncanny”, “washed out”, “color cast”, “blown highlights”, “crushed shadows”, “banding”, “jpeg artifacts”, “extra fingers”, “deformed eyes”, “asymmetrical face”, “warped features” ], “parameters”: { “fidelity_priority”: “identity”, “detail_priority”: “eyes_skin_hair_fabric”, “realism_strength”: 0.95, “sharpening”: “micro_contrast_only”, “skin_retention”: “keep_pores_and_microtexture”, “recommended_denoise”: “low_to_medium” } }
复制代码- { "task_type": "img2img_upscale", "model_settings": { "model_id": "stable-diffusion-xl-base-1.0", "upscaler": "4x-UltraSharp", "face_restoration_model": "CodeFormer" }, "input": { "image_base64": "YOUR_BASE64_IMAGE_STRING_HERE", "prompt": "masterpiece, best quality, highres, photorealistic, restored old photo, sharp focus, extremely detailed, detailed skin texture, remove scratches, remove noise, denoise, color correction, clear eyes, 8k uhd, soft lighting", "negative_prompt": "blur, blurry, low quality, worst quality, lowres, noise, grain, scratches, dust, spots, sepia, monochrome, distorted face, bad anatomy, ugly, overexposed, underexposed, artifacts, glitch, watercolor, painting, cartoon", "parameters": { "steps": 30, "guidance_scale": 7.5, "denoising_strength": 0.35, "seed": -1, "width": 1024, "height": 1024 } } }
复制代码
|