Blue

PATH: canvas/filter/blue
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blue?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/blue?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Blurple

PATH: canvas/filter/blurple
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blurple?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/blurple?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Blurple 2

PATH: canvas/filter/blurple2
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blurple2?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/blurple2?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Brightness

PATH: canvas/filter/brightness
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
  2. brightness - Optional (brightness value from 0-255)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/brightness?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/brightness?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Color / Tint

PATH: canvas/filter/color
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
  2. color - Required (hex color code without the # ie. white is ffffff)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/color?color=ffffff&avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/color?color=ffffff&avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Green

PATH: canvas/filter/green
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/green?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/green?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Greyscale

PATH: canvas/filter/greyscale
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/greyscale?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/greyscale?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Blurple

PATH: canvas/filter/invert
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blurple?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/blurple?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Invert and grayscale

PATH: canvas/filter/invertgreyscale
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/invertgreyscale?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/invertgreyscale?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Red

PATH: canvas/filter/red
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/red?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/red?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Sepia

PATH: canvas/filter/sepia
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/sepia?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/sepia?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)

Threshold

PATH: canvas/filter/threshold
METHOD: get
Required queries:
  1. avatar - Required (use png or jpg)
  2. threshold - Optional (threshold value from 1-255)
Status: 200 | Response type: image/png
Output:
PNG image buffer
Status: 400 | Response type: json
Output:
{
error: "missing x query"
}
Status: 429 | Response type: json
Output:
{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/threshold?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
    console.log('Bad status code')
    console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
    if (err) return console.log('Something went wrong when writing the file')
    console.log('Image has been written')
})
})
from requests import get
from os import getcwd

URL = 'https://some-random-api.ml/canvas/threshold?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)

if resp.status_code == 200:
    open('image.png', 'wb').write(resp.content)
    print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
    jsonresp = resp.json()
    print(resp.status_code)
    print(jsonresp)