> For the complete documentation index, see [llms.txt](https://docs.api.market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.market/api-product-docs/magicapi/image-colorizer-api.md).

# Image Colorizer API

### About

Our Image colorizer API is a cutting-edge tool designed to provide users with a fast, accurate, and easy-to-use solution for adding color to black and white images. With this API, you can quickly and easily transform your old or historical photos into vibrant, colorful images that bring your memories to life.

Our API utilizes state-of-the-art algorithms to analyze and recognize image features, patterns, and textures, which enables it to add color to black and white images in a way that is both natural and realistic. Our technology is based on deep learning, which means that it continually learns from the data it processes, making it more accurate and efficient with each use.

With our Image colorizer API, you can easily integrate our advanced colorization technology into your existing applications, software, or workflow. Our API is available in a variety of programming languages, making it easy to use and integrate into your development environment.

Whether you're a professional photographer, a digital artist, or simply someone who wants to add color to their old photos, our Image colorizer API is the perfect tool for you. With its ease of use, accuracy, and speed, you can quickly and easily transform your black and white images into vibrant and colorful masterpieces. So why wait? Try our Image colorizer API today and bring your memories to life!

#### Developer Portal:  <https://api.market/store/magicapi/colorizer>

<figure><img src="/files/2nIJ9MzmNFsRnjdqN2jU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yOBmk51W9tixH4cLnnXt" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/qtbiPXaqRJ6TEi9P86bB" alt=""><figcaption></figcaption></figure>

### Curl Requests and Responses <a href="#curl-requests-and-responses" id="curl-requests-and-responses"></a>

**Process the image**

{% tabs %}
{% tab title="Curl" %}

```bash
curl -X 'POST' \
  'https://prod.api.market/api/v1/magicapi/colorizer/colorizer' \
  -H 'accept: application/json' \
  -H 'x-api-market-kay: API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "image": IMAGE_URL
}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

headers = {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY',
    'Content-Type': 'application/json',
}

data = '{\n  "image": IMAGE_URL\n}'

response = requests.post('https://prod.api.market/api/v1/magicapi/colorizer/colorizer', headers=headers, data=data)
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://prod.api.market/api/v1/magicapi/colorizer/colorizer');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-api-market-key: API_KEY',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\n  \"image\": IMAGE_URL\n}");

$response = curl_exec($ch);

curl_close($ch);
```

{% endtab %}

{% tab title="NodeJs" %}

```javascript
import axios from 'axios';

const response = await axios.post(
  'https://prod.api.market/api/v1/magicapi/colorizer/colorizer',
  '{\n  "image": IMAGE_URL\n}',
  {
    headers: {
      'accept': 'application/json',
      'x-api-market-key': 'API_KEY',
      'Content-Type': 'application/json'
    }
  }
);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
fetch('https://prod.api.market/api/v1/magicapi/colorizer/colorizer', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY',
    'Content-Type': 'application/json'
  },
  body: '{\n  "image": IMAGE_URL\n}'
});
```

{% endtab %}
{% endtabs %}

```json
{
  "request_id": REQUEST_ID
}
```

**Get the result**

{% tabs %}
{% tab title="Curl" %}

```bash
curl -X 'GET' \
  'https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID' \
  -H 'accept: application/json' \
  -H 'x-api-market-key: API_KEY'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

headers = {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY',
}

response = requests.get('https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID', headers=headers)
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-api-market-key: API_KEY',
]);

$response = curl_exec($ch);

curl_close($ch);
```

{% endtab %}

{% tab title="NodeJs" %}

```javascript
import axios from 'axios';

const response = await axios.get('https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID', {
  headers: {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY'
  }
});
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
fetch('https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID', {
  headers: {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY'
  }
});
```

{% endtab %}
{% endtabs %}

```json
{
  "status": "succeeded",
  "result": "RESULT_URL"
}
```
