Image Colorizer API
This API colorizes old grayscale images by using Machine Learning models.
Last updated
This API colorizes old grayscale images by using Machine Learning models.
Last updated
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
}'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)<?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);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'
}
}
);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}'
});{
"request_id": REQUEST_ID
}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'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)<?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);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'
}
});fetch('https://prod.api.market/api/v1/magicapi/colorizer/predictions/REQUEST_ID', {
headers: {
'accept': 'application/json',
'x-api-market-key': 'API_KEY'
}
});{
"status": "succeeded",
"result": "RESULT_URL"
}