API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • About API
  • Result
  • Details
  • Code snippets
  • Trending Combos
  • Combo IDs
  1. API Product Docs
  2. Capix AI

Photolab.me

PreviousMakeUpNextAI Picture Colorizer

Last updated 12 months ago

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/

  • Method: POST

  • Request Headers:

    • Content-Type: application/json

    • x-magicapi-key: API_TOKEN

  • Request Body:

    {
      "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/

  • Method: POST

  • Request Headers:

    • Content-Type: application/json

    • x-magicapi-key: API_TOKEN

  • Request Body:

    {
      "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/

  • Method: POST

  • Request Headers:

    • Content-Type: application/json

    • x-magicapi-key: API_TOKEN

  • Request Body:

    {
      "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 -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/'
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)
<?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);
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'
    }
  }
);
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 -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/'
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)
<?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);
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'
    }
  }
);
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 -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/'
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)
<?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);
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'
    }
  }
);
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

Original
Result
Combo id

37890916

38097826

38105326

37978636

37983184

Combo IDs

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.

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 .

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/37890916
https://photolab.me/d/38097826
https://photolab.me/d/38105326
https://photolab.me/d/38062877
https://photolab.me/d/37978636
https://photolab.me/d/37983184
https://photolab.me/
https://photolab.me/d/31153495
Try Demo