{"error_code":0,"error_detail":{"status_code":200,"code":"","code_message":"","message":""},"_note":"Response truncated for documentation purposes"}
curl --location 'https://zylalabs.com/api/4432/photo+to+painting+api/5446/photo+to+painting?option=Required' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
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 Photo to Painting 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.
Our Photo to Painting API offers a versatile solution for converting photos into various artistic styles, providing users with a range of creative options. This API supports transformations into nine unique styles, including cartoon, pencil sketch, color pencil sketch, Gothic oil painting, candy-colored oil painting, The Scream oil painting, The Great Wave off Kanagawa oil painting, whimsical oil painting, and lavender oil painting. Perfect for fun activities, social media filters, and enhancing photo editing applications, this tool enables users to effortlessly apply artistic effects to their images. Integrate our Photo to Painting API into your application to offer users an engaging and creative feature for transforming their photos into captivating artworks. Enhance your platform with this powerful tool for artistic image transformation, providing high-quality, visually stunning results that are sure to delight and inspire users.
Our Photo to Painting API offers a versatile solution for converting photos into various artistic styles, providing users with a range of creative options. This API supports transformations into nine unique styles, including cartoon, pencil sketch, color pencil sketch, Gothic oil painting, candy-colored oil painting, The Scream oil painting, The Great Wave off Kanagawa oil painting, whimsical oil painting, and lavender oil painting. Perfect for fun activities, social media filters, and enhancing photo editing applications, this tool enables users to effortlessly apply artistic effects to their images.
Home Decor: Creating custom art pieces from personal photos to decorate homes and add a personal touch to interiors. Gift Giving: Turning cherished photos into paintings as unique and sentimental gifts for friends and family. Art Commissions: Providing clients with personalized artwork based on their favorite photos. Photography Business: Offering clients the option to transform their photos into artistic paintings as part of photography packages. Book and Album Covers: Designing unique book or album covers with a painted aesthetic derived from photographs. Social Media Content: Generating visually appealing and artistic content for social media posts.
Artistic Appeal: Transforms ordinary photos into beautiful, painterly artworks, enhancing their visual and emotional impact. Customization: Offers various painting styles and effects, allowing for personalization according to individual preferences and artistic tastes. Versatility: Suitable for various types of photos, including portraits, landscapes, and still life. High Quality: Produces high-quality, professional-looking paintings that can be printed and displayed. Time Efficiency: Quickly transforms photos into paintings, saving time compared to traditional hand-painted methods. Consistency: Ensures consistent and reliable results across different photos and styles.
The Photo to Painting API returns a JSON response containing a Base64 encoded image of the transformed artwork, along with metadata such as request ID, log ID, and error codes to indicate the success or failure of the request.
Key fields in the response include `request_id`, `log_id`, `error_code`, `error_msg`, and `image`. The `image` field contains the Base64 encoded artwork, while the error fields provide information on any issues encountered during processing.
The endpoint accepts two parameters: `image`, which is the photo file to be transformed, and `option`, which specifies the artistic style (e.g., cartoon, pencil, Gothic). Both parameters are required for a successful request.
The response data is structured in a JSON format. It includes a top-level object with public parameters (like `request_id` and `log_id`) and a `business parameters` section that contains the transformed image in Base64 format.
The API provides information on the transformed image, including its artistic style and any error messages if the transformation fails. It allows users to customize their requests based on the desired artistic effect.
Users can decode the Base64 encoded image from the `image` field to display or save the artwork. The error fields can help diagnose issues, allowing users to adjust their requests accordingly.
Accepted values for the `option` parameter include: `cartoon`, `pencil`, `color_pencil`, `warm`, `wave`, `lavender`, `mononoke`, `scream`, and `gothic`. Each value corresponds to a specific artistic transformation style.
The API employs advanced image processing algorithms to ensure high-quality transformations. Regular updates and quality checks are performed to maintain the accuracy and reliability of the artistic styles offered.
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