Image to Become
become-image
Adapt any picture of a face into another image
Model Information
Input
Configure model parameters
Output
View generated results
Result
Preview, share or download your results with a single click.

Prerequisites
- Create an API Key from the Eachlabs Console
- Install the required dependencies for your chosen language (e.g., requests for Python)
API Integration Steps
1. Create a Prediction
Send a POST request to create a new prediction. This will return a prediction ID that you'll use to check the result. The request should include your model inputs and API key.
import requestsimport timeAPI_KEY = "YOUR_API_KEY" # Replace with your API keyHEADERS = {"X-API-Key": API_KEY,"Content-Type": "application/json"}def create_prediction():response = requests.post("https://api.eachlabs.ai/v1/prediction/",headers=HEADERS,json={"model": "become-image","version": "0.0.1","input": {"seed": null,"image": "your_file.image/jpeg","prompt": "a person","image_to_become": "your_file.image/jpeg","negative_prompt": "your negative prompt here","prompt_strength": "2","number_of_images": "2","denoising_strength": "1","instant_id_strength": "1","image_to_become_noise": "0.3","control_depth_strength": "0.8","disable_safety_checker": "true","image_to_become_strength": "0.75"}})prediction = response.json()if prediction["status"] != "success":raise Exception(f"Prediction failed: {prediction}")return prediction["predictionID"]
2. Get Prediction Result
Poll the prediction endpoint with the prediction ID until the result is ready. The API uses long-polling, so you'll need to repeatedly check until you receive a success status.
def get_prediction(prediction_id):while True:result = requests.get(f"https://api.eachlabs.ai/v1/prediction/{prediction_id}",headers=HEADERS).json()if result["status"] == "success":return resultelif result["status"] == "error":raise Exception(f"Prediction failed: {result}")time.sleep(1) # Wait before polling again
3. Complete Example
Here's a complete example that puts it all together, including error handling and result processing. This shows how to create a prediction and wait for the result in a production environment.
try:# Create predictionprediction_id = create_prediction()print(f"Prediction created: {prediction_id}")# Get resultresult = get_prediction(prediction_id)print(f"Output URL: {result['output']}")print(f"Processing time: {result['metrics']['predict_time']}s")except Exception as e:print(f"Error: {e}")
Additional Information
- The API uses a two-step process: create prediction and poll for results
- Response time: ~17 seconds
- Rate limit: 60 requests/minute
- Concurrent requests: 10 maximum
- Use long-polling to check prediction status until completion
Overview
The Image to Become model is designed to transform a given facial image into another specified image, guided by user-defined prompts and parameters. This model enables users to creatively reimagine portraits by applying various styles and transformations
Technical Specifications
Model Architecture: Uses a deep learning framework specialized in image transformation and facial adaptation.
Processing Mechanism: Combines diffusion-based techniques with control mechanisms for fine-grained image adjustments.
Training Data: Trained on a diverse dataset of human faces, ensuring adaptability across various styles and transformations.
Output Quality: Generates high-resolution images with controlled noise reduction and prompt-based modifications.
Control Features: Allows precise tuning of transformation intensity through multiple strength parameters.
Safety Measures: Includes an optional safety checker to filter out inappropriate or unintended results.
Key Considerations
Image Quality: High-resolution images yield better transformation results.
Prompt Clarity: Clear and specific prompts guide the Image to Become more effectively.
Parameter Tuning: Experiment with different parameter settings to achieve desired outcomes.
Safety Checker: Disabling the safety checker may result in inappropriate content; proceed with caution.
Tips & Tricks
Denoising Strength (0-1):
- Lower values retain more details from the original image.
- Higher values apply more significant transformations.
Prompt Strength (0-3):
- Increase to enhance the influence of the textual prompt on the transformation.
Control Depth Strength (0-1):
- Adjust to control the depth effect in the transformed image.
Instant ID Strength (0-1):
- Modify to balance the prominence of the subject's identity in the output.
Image to Become Strength (0-1):
- Set higher values to closely match the target image's features.
Image to Become Noise (0-1):
- Increase to introduce artistic noise effects into the transformation.
Capabilities
Image to Become transforms facial images into various artistic styles based on user prompts.
Image to Become generates multiple variations of transformed images.
Incorporate user-defined parameters to fine-tune the transformation process.
What can I use for?
Creating stylized portraits for artistic projects.
Generating unique avatars for social media profiles.
Exploring creative transformations of facial images for design purposes.
Things to be aware of
Experiment with Prompts for Image to Become: Use diverse and imaginative prompts to explore various transformation styles.
Adjust Parameters: Fine-tune parameters like denoising strength and prompt strength to achieve desired effects.
Combine with Other Models: Integrate outputs with other models or editing tools to enhance creativity.
Safety Checker: Use the safety checker to ensure appropriate content generation.
Limitations
Input Dependency: The quality of the output is highly dependent on the input image and prompt clarity.
Overfitting: Extreme parameter values may lead to overfitting, resulting in less natural images.
Safety: Disabling the safety checker can lead to the generation of inappropriate content.
Output Format: PNG