Change Facial Expressions API

Transform facial expressions in images with advanced editing technology, enabling smiles, pouts, frowns, and more with our API.

Our Change Facial Expressions API leverages cutting-edge image processing technology to edit and transform facial expressions in photos effortlessly. Whether you want to add a beaming smile, a playful pout, a stern frown, or a subtle closed-mouth smile, our API provides a seamless and efficient way to modify expressions. Perfect for enhancing social media photos, digital marketing materials, and creative projects, this tool ensures high-quality, realistic results. Enhance your applications with our easy-to-integrate API and bring photos to life with the perfect expression for any context.

Application Scenarios

  • Interactive marketing: Attract users to interact, participate and share in festivals, exhibitions, marketing and other activity scenarios.
  • Personalized emoji package: choose different emoji templates for emoji editing, generating all kinds of cute and quirky emoji to enhance the sense of immersion and improve interaction.
  • Game face painting: Adding expression editing to the game's face painting system, users can choose expression templates to customize the game image, enhancing the game experience and interactivity.
  • Smart photo restoration: Through the closed-eye to open-eye technology, restoring the moment of celebration by restoring the captured closed-eye photos.

Featured Advantages

  • Outstanding algorithm: Based on massive data training and polishing of actual business scenarios, the effect is outstanding.
  • Rich capability: provide rich editable expression types to meet the needs of various business scenarios.
  • Natural and realistic: Based on generative adversarial network, the expression editing effect is realistic and natural.
  • Continuous upgrade: algorithm engineers continuously upgrade the algorithm and service engineers provide reliable support.

Rendering

Original Image

Original Image

Big laugh

Big laugh

Pouting

Pouting

Feel sad

Feel sad

Smile

Smile

Dimple Smile

Dimple Smile

Pear Dimple Smile

Pear Dimple Smile

Big Grin

Big Grin

Standard Grin

Standard Grin

Cool Pose

Cool Pose

Sad

Sad

Forced Smile

Forced Smile

Opening eyes

Opening eyes

API Documentation

Endpoints


Transform facial expressions in images with advanced editing technology, enabling smiles, pouts, frowns, and more with our API.

Request

Image requirements

  • Image format: JPEG JPG PNG
  • Image size: No more than 5 MB.
  • Image resolution: Less than 4096x4096px.

Body

Field Required Type Scope Description
image_target YES file    
service_choice NO integer
  • 0
  • 1
  • 2
  • 3
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 100
Expression type.
  • 0: Big laugh.
  • 1: Pouting.
  • 2: Feel sad.
  • 3: Smile.
  • 10: Dimple Smile.
  • 11: Pear Dimple Smile.
  • 12: Big Grin.
  • 13: Standard Grin.
  • 14: Cool Pose.
  • 15: Sad.
  • 16: Forced Smile.
  • 100: Opening eyes.

Response

Public Parameters

Viewing Public Parameters and Error Codes

Business Parameters

Field Type Description
data object The content of the result data returned.
+image string The result image, returning the Base64 encoding of the image.


                                                                            
POST https://zylalabs.com/api/4458/change+facial+expressions+api/5471/change+facial+expressions
                                                                            
                                                                        

Change Facial Expressions - Endpoint Features

Object Description
service_choice [Optional] Expression type. `0`: Big laugh. `1`: Pouting. `2`: Feel sad. `3`: Smile. `10`: Dimple Smile. `11`: Pear Dimple Smile. `12`: Big Grin. `13`: Standard Grin. `14`: Cool Pose. `15`: Sad. `16`: Forced Smile. `100`: Opening eyes.
Request Body [Required] File Binary
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr\/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr\/wAARCAUAA1UDASIAAhEBAxEB\/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6\/8QAHwEAAwEBAQE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UcV59m\/e2cVt5Uvm\/6r\/Vfuoqg8H6xBo91cappWqabq3hvVJoo7zSftksljFfy\/uorr\/nrp8v\/LL97F\/39iq3488Nz69o0njH+3Jbm8tYYrbWPtdn5d1F\/wBfP\/x3\/VSxUMPanH+NrPVdS8uex1y5ubOWby\/KmvP3sUv\/ADy\/661zcMOq+HLq3n+3RR29\/D5kPm\/8usvm\/wDLL\/nlL+6\/1VdZDearqVrHfQf8fH72O8i8n\/lrFF\/y1\/6ZSxfvf+\/tE9nBqVrZ6VqsH\/LGWSGbzv3v\/bX\/AMhVpS\/dHNV\/fF0f2TeeKf8AhKodUudE8qCKWaW0tPMi\/df62WLyvKli\/e\/8tYv9V\/y1rrPhZ47Flr0n9havqUdxKPLvNJhmi+1S\/wDTX\/VfZbuKX\/v7XlZ1m\/8ABX2ix1axubrS5buWTyYpvL+y3X\/PWL\/nlL\/5Cl\/6a1JNovhy9CT6Tqkd1HJz9llh8uSQf9M\/+mvTzYv+2sX7qn7L2oUqvsT6n8E\/HLQ4ftnhufQ5dNj1T\/Xad\/rNH1mKL91\/qv3X+lf9+pYq5z4v\/sveHPFPhyTXPhVodjq1na3ktzN4e1Czllkjil\/59rmLypZovN\/5Zeb5sXmy\/wCtryrw5420OHTLzwf4rnuYriWb7TZ6jLN5kvmxf89f+msX\/LWX\/lrF\/wA9f3UtekfDf4heKvhvrNvqvnxxafdTeVD\/AKZ\/ot1L\/wA8v+mX\/wAa\/wCetY+ydH+EdvtfbUf3h4VaadoNw9zDqeqX2mXCGWP+z7...
                                                                                                                                                                                                                    
                                                                                                    

Change Facial Expressions - CODE SNIPPETS


    curl --location 'https://zylalabs.com/api/4458/change+facial+expressions+api/5471/change+facial+expressions' \
    --header 'Content-Type: application/json' \ 
    --form 'image=@"FILE_PATH"'


API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Change Facial Expressions API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Change Facial Expressions API FAQs

Our Change Facial Expressions API leverages cutting-edge image processing technology to edit and transform facial expressions in photos effortlessly. Whether you want to add a beaming smile, a playful pout, a stern frown, or a subtle closed-mouth smile, our API provides a seamless and efficient way to modify expressions. Perfect for enhancing social media photos, digital marketing materials, and creative projects, this tool ensures high-quality, realistic results. Enhance your applications with our easy-to-integrate API and bring photos to life with the perfect expression for any context.

Interactive marketing: Attract users to interact, participate and share in festivals, exhibitions, marketing and other activity scenarios. Personalized emoji package: choose different emoji templates for emoji editing, generating all kinds of cute and quirky emoji to enhance the sense of immersion and improve interaction. Game face painting: Adding expression editing to the game's face painting system, users can choose expression templates to customize the game image, enhancing the game experience and interactivity. Smart photo restoration: Through the closed-eye to open-eye technology, restoring the moment of celebration by restoring the captured closed-eye photos.

Outstanding algorithm: Based on massive data training and polishing of actual business scenarios, the effect is outstanding. Rich capability: provide rich editable expression types to meet the needs of various business scenarios. Natural and realistic: Based on generative adversarial network, the expression editing effect is realistic and natural. Continuous upgrade: algorithm engineers continuously upgrade the algorithm and service engineers provide reliable support.

We have designed a dedicated experience page for developer users. You can visit the experience page to try out the product for free: https://www.ailabtools.com/portrait-expression-editing-example

Yes, we do have more detailed [API documentation](https://www.ailabtools.com/doc/ai-portrait/effects/emotion-editor/api-marketplace) available. You can access it on our website or by contacting our support team for assistance.

The API returns an object containing the transformed image data in Base64 encoding. The response includes fields such as `request_id`, `log_id`, `error_code`, and `data`, where `data` holds the `image` field with the edited image.

Key fields in the response include `error_code` (indicating success or failure), `error_msg` (providing error details), and `data.image` (the Base64 encoded string of the modified image).

Users can customize requests by specifying the `service_choice` parameter, which allows them to select from various expression types, such as smiles or frowns, using integer values from 0 to 100.

The response data is structured as a JSON object. It includes public parameters like `request_id` and `error_code`, followed by a `data` object that contains the `image` field with the edited image in Base64 format.

The API provides information on the transformed facial expressions in images, including the original image's modifications and the specific expression type applied, as indicated by the `service_choice` parameter.

Typical use cases include enhancing social media images, creating personalized emojis, customizing game avatars, and restoring photos where subjects have their eyes closed, allowing for more engaging visual content.

Users can decode the Base64 encoded image from the `data.image` field to display or save the modified image. This allows for seamless integration into applications, websites, or digital marketing materials.

The API utilizes advanced algorithms based on generative adversarial networks, ensuring that the edited expressions appear natural and realistic. Continuous upgrades and testing help maintain high-quality output.

General FAQs

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the β€˜X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs


You might also like