AI Photo Colorize API

API ID 4431

Intelligently colorize black-and-white images, bringing them to life with our AI Photo Colorize API.

100% uptime

API Documentation

Endpoints

Request

Intelligently colorize black-and-white images, bringing them to life with our AI Photo Colorize API.

Request

Image requirements

  • Image format: PNG, JPG, JPEG, BMP
  • Image size: No more than 8 MB.
  • Image resolution: Larger than 10x10px, smaller than 5000x5000px.
  • Image aspect ratio: Aspect ratio within 4:1.

Body

Field Required Type
image YES file

 

Endpoint ID: 5445
POST https://zylalabs.com/api/4431/ai+photo+colorize+api/5445/ai+photo+colorize
INPUT PARAMETERS

AI Photo Colorize — Endpoint Features

Object Description
Request Body Required File Binary

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
"error_code":0,"error_detail":{"status_code":200,"code":"","code_message":"","message":""},"image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH\/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH\/wAARCAH0AfQDASIAAhEBAxEB\/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6\/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL\/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhc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X0Uvo+eEeHwsOD\/DXh\/wDtHDKF+IM6wcc6z2pVio81WWbZosViqTlJOXs8PUo0Kcm\/Z0oR9115bW2dhLJG80uBi4uFF5wOAAVbnHoRxjr0FPMrrkKgIPUgjvxzlvfqMDHf0rveWkZyLqCUgc\/Z5oxwCM9WzgtjvkHg4IBrutH+Gvxd8RxiXwx8Ifij4htxj\/SdF8A+I9bAHynj+xtFOeAeASAQOg5Hy061ODUq2IhBt\/8AL2vGLb8k230XXdrfc\/ZcdnvD+Rw5cXmmR5TRhaNq+MwWChFK1o2qShayV1rbXXz44szD54s9AOQenY4PTp0PXPOekBtLRxlrRDnPUoR692\/QEnI616zL8B\/j7aRb7n9n74928QyDc3Xwg8bnB+XOMaGOQcgYJ6Hphs+Y6\/o+o+FpxZ+KtI8Q+F7wkBbfxHomoaESfQnWnGf7vzZ6eua3o1actKNelN3WkK0Jdnold216aL5Hk4b
AI Photo Colorize — CODE SNIPPETS

    curl --location 'https://zylalabs.com/api/4431/ai+photo+colorize+api/5445/ai+photo+colorize' \
    --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 AI Photo Colorize 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.

No long-term commitment. Upgrade, downgrade, or cancel anytime.

🚀 Enterprise Plan

Starts at
$ 10,000/Year


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

Overview

Our AI Photo Colorize API leverages advanced AI algorithms to intelligently identify and add color to black-and-white images, transforming them into vibrant and lifelike visuals. This API analyzes the content of grayscale photos, accurately predicting and applying the appropriate colors to produce natural and realistic enhancements. Ideal for photographers, historians, and digital artists, this tool revitalizes old photos, enhances visual storytelling, and adds a modern touch to classic images. Integrate our AI Photo Colorize API into your application to provide users with the ability to effortlessly breathe new life into their monochrome photos, ensuring high-quality colorization that preserves the essence and detail of the original image. Enhance your projects with this powerful tool for intelligent and automated image colorization.

Application Scenarios

  • Image Fun Processing: When carrying out activities with themes such as nostalgia, you can access the service and develop an activity applet or webpage, etc. Participants can simply upload a black and white photo and immediately receive a color photo.

 

 

AI Photo Colorize API FAQs

Our AI Photo Colorize API leverages advanced AI algorithms to intelligently identify and add color to black-and-white images, transforming them into vibrant and lifelike visuals. This API analyzes the content of grayscale photos, accurately predicting and applying the appropriate colors to produce natural and realistic enhancements. Ideal for photographers, historians, and digital artists, this tool revitalizes old photos, enhances visual storytelling, and adds a modern touch to classic images.

Historical Photo Restoration: Adding color to black and white historical photos to bring them to life and make them more engaging. Family Archives: Colorizing old family photos to preserve memories and enhance their visual appeal. Media and Publishing: Enhancing the visual impact of black and white images in articles, books, and documentaries by adding color. Film and TV Production: Colorizing archival footage for use in modern productions, making them more visually appealing and relevant. Marketing and Advertising: Utilizing colorized historical images in marketing campaigns to attract attention and create a unique visual impact.

Enhanced Visual Appeal: Transforms black and white photos into vibrant, color images, making them more engaging and visually appealing. Historical Accuracy: Uses advanced AI algorithms to accurately predict and apply historically appropriate colors to black and white images. Time Efficiency: Automates the colorization process, significantly reducing the time required compared to manual methods. User-Friendly: Easy-to-use tools and interfaces make colorizing photos accessible to both professionals and amateurs. Versatility: Applicable to a wide range of fields, including historical restoration, media production, education, art, marketing, and virtual reality.

The AI Photo Colorize endpoint returns a JSON object containing the colorized image in Base64 format, along with metadata such as request ID, log ID, error codes, and messages to indicate the processing status.

Key fields in the response include `request_id`, `log_id`, `error_code`, `error_msg`, and `image`. The `image` field contains the Base64 encoded colorized image, while the error fields provide information on any issues encountered during processing.

The response data is structured as a JSON object with nested fields. It includes public parameters for tracking requests and business parameters for the colorized image, allowing users to easily access and utilize the output.

The primary parameter for the AI Photo Colorize endpoint is `image`, which is required and must be a file in supported formats (PNG, JPG, JPEG, BMP) under 8 MB. Users can customize their requests by ensuring the image meets the specified requirements.

Users can decode the Base64 encoded image from the `image` field to display the colorized photo in their applications. Additionally, they can check the `error_code` and `error_msg` fields to handle any errors that may arise during processing.

The AI Photo Colorize endpoint provides information about the colorized image, including its Base64 representation, and metadata regarding the request's processing status, such as error codes and messages for troubleshooting.

Data accuracy is maintained through advanced AI algorithms that analyze the content of grayscale images to predict and apply appropriate colors. Continuous model training and updates ensure improved accuracy over time.

Typical use cases include restoring historical photographs, enhancing family archives, improving visual content for media and publishing, and creating engaging marketing materials by colorizing black-and-white images.

General FAQs

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.

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.

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.

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 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.

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.
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]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs