About the API:
This API will generate ID profile pictures from any image URL you pass to it. Be able to create the ID picture of the size you want.
Pass the image URL that you want to resize and the size of the ID image. Receive a link to download your JPEG with your resized image.
This API is ideal for those who want to create an application that will provide users with cropping image functionalities. If you know beforehand the size of different IDs, you can take a user picture and resize it the way they want.
Besides the number of API calls per month, there is a limitation of 2 requests per second on free plans.
Pass the image URL and select any of these values:
Key | Type | Default Value | Value Range | Mandatory | Description |
---|---|---|---|---|---|
image | string | N/A | N/A | Yes | This API accepts either a publicly accessible image URL or a base64 encoded image string. e.g Accepted format: PNG, JPG/JPEG, BMP Max size: 2000x2000 |
id_size | string | 3x4 | 3.5x4.5 (for the size of 35mm x 45mm)4x5 (for the size of 40mm x 50mm)2x2 (for the size of 2in x 2in)5x7 (for the size of 5in x 7in)3x4 (for the size of 30mmx 40mm) |
No | Set the ID photo frame aspect ratio |
bg_color | string | gray | gray skyblue white |
No | Set the background color to be used. |
touchup_val | number | 0 | 0-1 | No | Set the intensity level of the touch-up effect. 0=Off, 0.1=Weak, 1=Strong If a value outside the accepted range is specified then the nearest allowed value will be applied |
makeup_val | number | 0 | 0-1 | No | Set the intensity level of the makeup effect (recommended for female photos). 0=Off, 0.1=Weak, 1=Strong If a value outside the accepted range is specified then the nearest allowed value will be applied |
tidyup_val | number | 0 | 0-1 | No | Set the intensity level of the face slim effect. 0=Off, 0.1=Weak, 1=Strong If a value outside the accepted range is specified then the nearest allowed value will be applied |
Object | Description |
---|---|
Request Body |
[Required] Json |
{"job_id":"f49d6065-07d5-4e4c-9249-523257df318a","output_url":"https://vpai-demo-portal-shanghai.oss-accelerate.aliyuncs.com/selfie-id%2Ftidyup-043302.9821_20221028043302.jpg?OSSAccessKeyId=LTAI5tGgUWzx5gZopTcAvNtp&Expires=1666902843&Signature=Fc%2Bc9uLPpsu%2BMlEiVx1VTDUYAzk%3D","parameters":{"bg_color":"gray","id_size":"3.5x4.5","makeup_val":0,"tidyup_val":0.5,"touchup_val":0.5},"url_expiry":"2022/10/28 04:34:03"}
curl --location --request POST 'https://zylalabs.com/api/658/generate+id+pictures+from+image+url+api/428/id+picture+generator' --header 'Authorization: Bearer YOUR_API_KEY'
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 Generate ID Pictures from Image URL API REST API, simply include your bearer token in the Authorization header.
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.
Prices are listed in USD. 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 with paying by card, just contact us at [email protected]
Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further
Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.
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.
Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.
Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.
You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]
Service Level:
100%
Response Time:
1,275ms
Service Level:
100%
Response Time:
1,999ms
Service Level:
99%
Response Time:
1,627ms
Service Level:
98%
Response Time:
1,294ms
Service Level:
100%
Response Time:
1,656ms
Service Level:
100%
Response Time:
699ms
Service Level:
67%
Response Time:
4,757ms
Service Level:
83%
Response Time:
412ms
Service Level:
100%
Response Time:
7,448ms
Service Level:
100%
Response Time:
860ms