{"ConversionCost":1,"Files":[{"FileName":"1024_square.svg","FileExt":"svg","FileSize":195946}],"_note":"Response truncated for documentation purposes"}
curl --location --request POST 'https://zylalabs.com/api/344/jpg+to+svg+api/277/vectorizer?file=https://res.cloudinary.com/dy4s1umzd/image/upload/v1645635497/test_files/1024_square.png' --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 JPG to SVG 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
About the API:
This API uses AI to vectorize any JPG or PNG image that you pass to it to create a new SVG file for your projects. Simple for use.
This API will receive the image URL that you want to vectorize and it will deliver a new URL with the vectorized image.
Quality improvement: Use this API to improve your image's quality. Use vectorized images for your projects as they do not lose any quality when zoomed or cropped.
Same file for multiple purposes: As a vectorized image does not lose any quality, you can use the same SVG for many projects. With the vector format, your client can use the same design file for large projects, including billboards and banners, and small projects like apparel embroidery and business cards.
This API is ideal for marketing agencies and designers!
Besides API call limitations per month, there are no other limitations.
The JPG to SVG API returns a JSON object containing the conversion results. This includes the conversion cost, file details such as file name, file extension, file size, and the SVG data encoded in Base64 format.
The key fields in the response data include "ConversionCost," which indicates the cost of the conversion, and "Files," an array containing details like "FileName," "FileExt," "FileSize," and "FileData" (the Base64-encoded SVG).
The POST Vectorizer endpoint accepts parameters such as the image URL of the JPG or PNG file you wish to convert. Users can customize their requests by providing different image URLs for conversion.
The response data is organized in a JSON format. It contains a top-level object with fields for conversion cost and an array of file objects, each detailing the converted SVG file's properties.
The API provides information about the converted SVG file, including its name, extension, size, and the actual SVG data in Base64 format. This allows users to easily access and utilize the vectorized image.
Users can decode the Base64-encoded SVG data to render the vector image in their applications. The file details can also be used to manage and store the converted files appropriately for various projects.
Typical use cases include enhancing image quality for design projects, creating scalable graphics for marketing materials, and generating vector files for printing on various media, such as apparel or large banners.
The API utilizes AI algorithms to ensure high-quality vectorization of images. Continuous updates and improvements to the AI model help maintain accuracy and quality in the conversion results.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund