Face and Hairstyle Swap for Studio Portrait

Face and Hairstyle Swap for Studio Portrait

prompt

{ "Ultra-realistic studio portrait of a young woman in a three-quarter profile pose, head slightly turned toward the camera. She is wearing a black textured blazer over a dark top with minimal accessories, including a small hoop earring. Background is a solid deep red studio backdrop with a smooth gradient. Lighting is soft, diffused studio lighting with gentle shadows and even skin tones. Replace ONLY the face and hairstyle using the reference image. Keep body, pose, clothing, background, lighting, camera angle, framing, and image quality exactly the same. Ensure the new face matches the original head size, angle, and expression with seamless skin blending and natural hair integration. Photorealistic, cinematic quality, sharp focus on eyes, shallow depth of field.", "negative_prompt": "face distortion, wrong head size, mismatched skin tone, altered pose, changed clothing, different background, lighting mismatch, blurry face, artifacts, unrealistic hair, over-smoothing", "style": "photorealistic", "camera": { "shot": "close-up portrait", "angle": "three-quarter view", "depth_of_field": "shallow" }, "lighting": "soft studio lighting", "background": "solid deep red", "quality": "high resolution", "face_swap": { "enabled": true, "change_only": ["face", "hairstyle"], "preserve": ["pose", "body", "clothing", "background", "lighting", "camera_angle"] } }

Fonctionne avec 21 modèles

  • Flux
  • Flux 2
  • Flux Kontext
  • GPT-4o Image
  • GPT Image
  • GPT Image 2
  • GPT Image 2.5
  • GPT Image 2.6
  • Grok Imagine
  • Ideogram V3
  • Imagen 4
  • Kling
  • +9 Plus

Résultats de ce prompt

FLUX prompt: retro leopard Santa graphic Non précisé flux-2-pro
FLUX prompt: 	distressed Christmas shirt Non précisé flux-2-pro
Hunyuan  prompt: archhitecture/ interior Non précisé hunyuan-3
Hunyuan  prompt: earrings Non précisé hunyuan-3
Hunyuan  prompt: jewerly Non précisé hunyuan-3
Hunyuan  prompt: wedding Non précisé hunyuan-3

Run ce prompt avec le API

le request below sends ce prompt, avec its default values filled in, to le first modèle it runs on. Swap le modèle name pour any other modèle listed above.

Documentation de l’API prompt
/api/v1/nano_banana/text_to_image
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "nano-banana-pro",
  "prompt": "{\n  \"Ultra-realistic studio portrait of a young woman in a three-quarter profile pose, head slightly turned toward the camera. She is wearing a black textured blazer over a dark top with minimal accessories, including a small hoop earring. Background is a solid deep red studio backdrop with a smooth gradient. Lighting is soft, diffused studio lighting with gentle shadows and even skin tones. Replace ONLY the face and hairstyle using the reference image. Keep body, pose, clothing, background, lighting, camera angle, framing, and image quality exactly the same. Ensure the new face matches the original head size, angle, and expression with seamless skin blending and natural hair integration. Photorealistic, cinematic quality, sharp focus on eyes, shallow depth of field.\",\n  \"negative_prompt\": \"face distortion, wrong head size, mismatched skin tone, altered pose, changed clothing, different background, lighting mismatch, blurry face, artifacts, unrealistic hair, over-smoothing\",\n  \"style\": \"photorealistic\",\n  \"camera\": {\n    \"shot\": \"close-up portrait\",\n    \"angle\": \"three-quarter view\",\n    \"depth_of_field\": \"shallow\"\n  },\n  \"lighting\": \"soft studio lighting\",\n  \"background\": \"solid deep red\",\n  \"quality\": \"high resolution\",\n  \"face_swap\": {\n    \"enabled\": true,\n    \"change_only\": [\"face\", \"hairstyle\"],\n    \"preserve\": [\"pose\", \"body\", \"clothing\", \"background\", \"lighting\", \"camera_angle\"]\n  }\n}"
}
JSON

Essayer a prompt