Wiro - Face Swap
AI-generatedOverview
This node performs face swapping and face generation using the Wiro AI API. It allows users to input one or more face images and optionally a background image, specify swap positions, prompts, dimensions, and output styles to generate manipulated face images. Common scenarios include creating single or multi-face swaps, generating new face scenes, or applying specific artistic styles to the output image.
Use Case Examples
- Swapping a face in a photo with another face using a URL input.
- Generating a new face scene based on a prompt and an input face image.
- Applying a specific artistic style like 'Cyberpunk' or '90sTV' to a face swap output.
Properties
| Name | Meaning |
|---|---|
| The Face Image With Which The Scene Is Generated Or Swap. URL | The primary face image URL used for generating or swapping faces. Required for all swap and generation operations. |
| Second Users Face Image (Optional) URL | Optional second face image URL used for multi-face swaps or multi-generation swaps. |
| Background Image (Optional) URL | Optional background image URL used in multi swaps, single swaps, or specific left/right swaps. |
| Swap Position (Optional) | Specifies the position (left, right, or none) for specific face swaps. |
| Prompt | Text prompt used for single or multi-generation swaps to guide the face generation. |
| Width | Width dimension for the output image. |
| Height | Height dimension for the output image. |
| Output Style | Artistic style applied to the output image. |
Output
JSON
taskid- The unique identifier for the face swap task.url- The URL of the completed face swap or generated image.status- The status of the task, indicating if it is 'completed' or 'failed'.
Dependencies
- Wiro AI API with API key and secret for authentication
Troubleshooting
- If the API response does not include a valid task ID or socket access token, the node throws an error indicating an invalid response from the Wiro API. Ensure the API credentials are correct and the API service is operational.
- Task status codes '-1', '-2', '-3', and '-4' indicate failure states. If the task fails, verify the input URLs and parameters for correctness and retry.
- Network or authentication errors may occur if the API key or secret is missing or invalid. Confirm that the credentials are properly configured in the node settings.
Links
- Wiro AI API Documentation - Official documentation for the Wiro AI face swap API, including authentication and usage details.