Get API Key

Normal return


{
    "code": 0,
    "data": {
        "imageBase64: "iVBORw0KGgo..." //base64 encoded of the image 
    },
    "msg": null,
    "time": 1590462453264
}

Error

{
  "code": 1001, //
  "data": null
  "msg": 'Insufficient balance',
  "time": 1590462453264
}

Stickers API

Add Sticker to images

ParameterTypeDescription
stickerURLStringURL to sticker image

Sample code

Curl

curl -H 'key: INSERT_YOUR_API_KEY_HERE' \
  -F 'file=@/path/to/file.jpg'     \
  -F 'stickerURL=PATH-TO-IMAGE' \
  -f 'http://localhost:3000/v1/sticker/addSticker' \
  -o out.png

Python

  import requests


  payload = dict(stickerURL=PATH-TO-IMAGE);
  response = requests.post(
'http://localhost:3000/v1/sticker/addSticker',
    files={'file': open('/path/to/file.jpg', 'rb')},
    data = payload,
    headers={'key': 'INSERT_YOUR_API_KEY_HERE'},
  )

Node.js

const requestOptions = {
    method: 'POST',
    headers: {
    'key': 'INSERT_YOUR_API_KEY_HERE',
    'Content-Type': 'application/json'
    },
    body: JSON.stringify({ title: 'Add sticker' ,
    stickerURL:'PATH-TO-IMAGE' 
})
};
fetch('http://localhost:3000/v1/sticker/addSticker', requestOptions)
    .then(response => response.json())
    .then(data =>  {
		console.log(data);
    }); 

Bathroom

  • Body wash

  • Comb

  • GarbageCan

  • HairDryer

  • LaundryDetergent

  • Mirror

  • MouthwashCup

  • Razor

  • Sink

  • Soap

  • ToiletPaper

  • ToiletSuction

  • Toilet

  • Toothbrush

  • Detergent

  • Toothpaste

  • Towel

  • Tub

  • WashingMachine

  • Duck

Business

  • AdhesiveStrip

  • Analyze

  • Bookshelf

  • Briefcase

  • BusinessCard

  • Calculator

  • Clock

  • CorrectionTape

  • Data

  • DeskLamp

  • Folder

  • Indicator

  • Introduce

  • Medal

  • Mouse

  • Notebook

  • Office

  • Order

  • PencilSharpener

  • DataBuried

  • Pen

  • PieChart

  • Planning

  • Printer

  • Project

  • Report

  • Scissors

  • Stapler

  • Statistics

  • Telephone

  • WritingBoard

  • OfficeChair

Food

  • Apple

  • Avocado

  • Banana

  • Dumbbel

  • Figure

  • Grape

  • KiwiFruit

  • Lemon

  • Milk

  • Fish

  • Peach

  • PoachedEggs

  • Running

  • Yogurt

  • Cherry

  • SodaWater

  • Steak

  • Watermelon

  • WeighingScale

  • Boxing

  • Coffee

Emotions

Health

Transport

Sports

Misc

Returning JSON

curl -d "key=<XXX>" -d 'outType=JSON' -d \
...

Returning Download

curl -d "key=<XXX>" -d 'outType=Download' -d \
...

Returning Blob

curl -d "key=<XXX>" -d 'outType=Blob' \
...

Returning Base64

curl -d "key=<XXX>" -d 'outType=Base64' -d \
...

Returning PNG Image

curl -d "key=<XXX>" -d 'outType=Image' -d \
...