Try Demo
About API
Photolab.me API is a powerful tool that allows developers to easily integrate a suite of advanced image processing features into their applications. With this API, users can transform their photos into stunning works of art, apply various filters, enhance colors, adjust brightness and contrast, and perform many other image manipulations with just a few lines of code.
Note: It is unofficial api of Photolab.me but we guarantene it works well and fast without any blocks and problems.
Result
Details
1. Apply PhotoLab Effect - Version 1
This endpoint is used to apply a specific PhotoLab effect to an image using a combo ID.
Endpoint : https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/
Request Headers :
Content-Type: application/json
x-magicapi-key: API_TOKEN
Request Body :
Copy {
"image_url": "URL_OF_IMAGE",
"combo_id": "COMBO_ID"
}
Parameters:
image_url
: URL of the image to which the effect will be applied.
combo_id
: ID of the specific PhotoLab effect to apply.
2. Apply PhotoLab Effect - Version 2
Similar to Version 1, this endpoint allows users to apply a specific PhotoLab effect to an image using a combo ID.
Endpoint : https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/
Request Headers :
Content-Type: application/json
x-magicapi-key: API_TOKEN
Request Body :
Copy {
"image_url": "URL_OF_IMAGE",
"combo_id": "COMBO_ID"
}
Parameters:
image_url
: URL of the image to which the effect will be applied.
combo_id
: ID of the specific PhotoLab effect to apply.
3. Get PhotoLab Result
This endpoint retrieves the result of a PhotoLab editing request based on the provided request ID.
Endpoint : https://api.magicapi.dev/api/v1/capix/photolab/result/
Request Headers :
Content-Type: application/json
x-magicapi-key: API_TOKEN
Request Body :
Copy {
"request_id": "REQUEST_ID"
}
Parameters:
request_id
: ID of the PhotoLab editing request for which the result is requested.
Code snippets
V1 with watermark
Curl Python PHP NodeJs Javascript
Copy curl -X 'POST' \
-H 'Content-Type: application/json' \
-H 'x-magicapi-key: API_KEY' \
-d '{
"image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg",
"combo_id": "23131838"
}' \
'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/'
Copy import requests
headers = {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY' ,
}
json_data = {
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838' ,
}
response = requests . post ( 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/' , headers = headers, json = json_data)
Copy <? php
$ch = curl_init () ;
curl_setopt ( $ch , CURLOPT_URL , 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/' ) ;
curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , true ) ;
curl_setopt ( $ch , CURLOPT_CUSTOMREQUEST , 'POST' ) ;
curl_setopt ( $ch , CURLOPT_HTTPHEADER , [
'Content-Type: application/json' ,
'x-magicapi-key: API_KEY' ,
] ) ;
curl_setopt ( $ch , CURLOPT_POSTFIELDS , "{\n \"image_url\": \"https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg\",\n \"combo_id\": \"23131838\"\n}" ) ;
$response = curl_exec ( $ch ) ;
curl_close ( $ch ) ;
Copy import axios from 'axios' ;
const response = await axios .post (
'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/' ,
{
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838'
} ,
{
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
}
}
);
Copy fetch( 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v1/' , {
method : 'POST' ,
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
} ,
body : JSON . stringify({
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838'
})
}) ;
V2 without watermark
Curl Python PHP NodeJs Javascript
Copy curl -X 'POST' \
-H 'Content-Type: application/json' \
-H 'x-magicapi-key: API_KEY' \
-d '{
"image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg",
"combo_id": "23131838"
}' \
'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/'
Copy import requests
headers = {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY' ,
}
json_data = {
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838' ,
}
response = requests . post ( 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/' , headers = headers, json = json_data)
Copy <? php
$ch = curl_init () ;
curl_setopt ( $ch , CURLOPT_URL , 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/' ) ;
curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , true ) ;
curl_setopt ( $ch , CURLOPT_CUSTOMREQUEST , 'POST' ) ;
curl_setopt ( $ch , CURLOPT_HTTPHEADER , [
'Content-Type: application/json' ,
'x-magicapi-key: API_KEY' ,
] ) ;
curl_setopt ( $ch , CURLOPT_POSTFIELDS , "{\n \"image_url\": \"https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg\",\n \"combo_id\": \"23131838\"\n}" ) ;
$response = curl_exec ( $ch ) ;
curl_close ( $ch ) ;
Copy import axios from 'axios' ;
const response = await axios .post (
'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/' ,
{
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838'
} ,
{
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
}
}
);
Copy fetch ( 'https://api.magicapi.dev/api/v1/capix/photolab/photolab/v2/' , {
method : 'POST' ,
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
} ,
body : JSON .stringify ({
'image_url' : 'https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg' ,
'combo_id' : '23131838'
})
});
Result
Curl Python PHP NodeJs Javascript
Copy curl -X 'POST' \
-H 'Content-Type: application/json' \
-H 'x-magicapi-key: API_KEY' \
-d '{
"request_id": REQUEST_ID
}' \
'https://api.magicapi.dev/api/v1/capix/photolab/result/'
Copy import requests
headers = {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY' ,
}
data = '{\n "request_id": REQUEST_ID\n}'
response = requests . post ( 'https://api.magicapi.dev/api/v1/capix/photolab/result/' , headers = headers, data = data)
Copy <? php
$ch = curl_init () ;
curl_setopt ( $ch , CURLOPT_URL , 'https://api.magicapi.dev/api/v1/capix/photolab/result/' ) ;
curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , true ) ;
curl_setopt ( $ch , CURLOPT_CUSTOMREQUEST , 'POST' ) ;
curl_setopt ( $ch , CURLOPT_HTTPHEADER , [
'Content-Type: application/json' ,
'x-magicapi-key: API_KEY' ,
] ) ;
curl_setopt ( $ch , CURLOPT_POSTFIELDS , "{\n \"request_id\": REQUEST_ID\n}" ) ;
$response = curl_exec ( $ch ) ;
curl_close ( $ch ) ;
Copy import axios from 'axios' ;
const response = await axios .post (
'https://api.magicapi.dev/api/v1/capix/photolab/result/' ,
'{\n "request_id": REQUEST_ID\n}' ,
{
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
}
}
);
Copy fetch ( 'https://api.magicapi.dev/api/v1/capix/photolab/result/' , {
method : 'POST' ,
headers : {
'Content-Type' : 'application/json' ,
'x-magicapi-key' : 'API_KEY'
} ,
body : '{\n "request_id": REQUEST_ID\n}'
});
Trending Combos
Combo IDs
When interacting with the PhotoLab API, one of the fundamental steps is identifying and choosing a suitable combo ID. These combo IDs serve as unique identifiers for specific image editing combinations. To locate these IDs, you'll need to navigate to the PhotoLab website at https://photolab.me/ .
Upon reaching the PhotoLab website, you'll encounter a plethora of image filters and editing options available for exploration. Each filter or editing combination is associated with a distinct combo ID. To illustrate, let's consider the example of visiting the page https://photolab.me/d/31153495 .
As you land on this page, you'll notice various filters, effects, and editing tools showcased, each contributing to a unique visual outcome. Among these elements, the combo ID is prominently displayed as 31153495. This alphanumeric code serves as the key to accessing and applying the specific editing combination represented on this page.
Note: However, all combo ids are not supported directly. Photolab is growing fast and it develops AI based filters which means it is not supported in our API service system yet. You can check combo ids first before making your final decision.