This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Programmatically remove text & watermarks from input images using the PixLab TXT-REMOVE API endpoint. | |
# | |
# Refer to the official documentation at: https://pixlab.io/endpoints/text-watermark-remove-api for the API reference | |
# guide and more code samples. | |
# Use POST to upload the image directly from your local folder. If your image is publicly available | |
# then make a simple GET request with a link to your image. | |
$url = 'https://api.pixlab.io/txtremove'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
// | |
// Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
// guide and more code samples. | |
// Use POST to upload the image directly from your local folder. If your image is publicly available | |
// then make a simple GET request with a link to your image. | |
const apiKey = 'PIXLAB_API_KEY'; // PixLab API Key - Get yours from https://console.pixlab.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'json' | |
require 'base64' | |
require 'uri' | |
# Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
# | |
# Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
# guide and more code samples. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
# | |
# Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
# guide and more code samples. | |
# Use POST to upload the image directly from your local folder. If your image is publicly available | |
# then make a simple GET request with a link to your image. | |
$url = 'https://api.pixlab.io/bgremove'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
// | |
// Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
// guide and more code samples. | |
// Use POST to upload the image directly from your local folder. If your image is publicly available | |
// then make a simple GET request with a link to your image. | |
const apiKey = 'PIXLAB_API_KEY'; // PixLab API Key - Get yours from https://console.pixlab.io/ | |
const apiUrl = 'https://api.pixlab.io/bgremove'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import base64 | |
import os | |
# Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
# | |
# Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
# guide and more code samples. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert PDF Document to image format using the PixLab PDFTOIMG SDK-Free REST API Endpoint | |
fetch('https://api.pixlab.io/pdftoimg?src=https://www.getharvest.com/downloads/Invoice_Template.pdf&export=jpeg&key=PIXLAB_API_KEY') | |
.then(response => response.json()) | |
.then(reply => { | |
if (reply.status !== 200) { | |
console.log(reply.error); | |
} else { | |
console.log("Link to the image output (Converted PDF page): " + reply.link); | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Programmatically Generate PDF document from markdown or HTML input | |
# Replace with your actual PixLab API key | |
$api_key = "YOUR_PIXLAB_API_KEY"; // Get yours from https://console.pixlab.io/ | |
# Markdown formatted invoice | |
$markdown_text = <<<EOD | |
# Invoice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import base64 | |
import os | |
# Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint. | |
# | |
# Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference | |
# guide and more code samples. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
# Get natural language responses to image-related queries | |
# Target Image: Change to any link or switch to POST if you want to upload your image directly, refer to the REST API code samples for more info. | |
img = 'https://s-media-cache-ak0.pinimg.com/originals/35/d0/f6/35d0f6ee0e40306c41cfd714c625f78e.jpg' |
NewerOlder