Developer API

The API is currently in alpha, please get in touch with us at contact@art.app in case things go wrong.
You can enqueue jobs as follows:
	curl -H 'Content-Type: multipart/form-data' -H 'Accept: application/json' \
	-F "photo=@PHOTO" \
	-F "api_key=API_KEY" \
	-F "style_id=STYLE_ID" \
	-F "image_size=IMAGE_SIZE" \
	https://art.app/api.json
      
API_KEY is the key to your account. Here, PHOTO is the filename of the photo you want to filter, for example "input.jpg". STYLE_ID is the id of the style you want to use. It must be already uploaded to our site. Look in your style URL to get the ID. IMAGE_SIZE has to be 600 (in the future will add more). Credits will be deducted as per our pricing once the job is successfully enqueued. No free creations are allowed at this time through the API.
You will get this answer, in case all parameters are correct:
      { "result":"OK", "photo_id":"PID", "filterjob_id":"FID" }
    
Here, PID is the ID of the photo you uploaded, and FID is the filter job ID the site created for your job. You can query the status of your job using FID:
	    curl  https://art.app/api/FID.json?api_key=API_KEY
	  
Which returns:
	    { "result":"OK", "status":"processing", "progress":"20"  }
	  
Here you can see that the job is being processed, with progress 20%. After some seconds we can query again:
      { "result":"OK", "status":"done", "progress":"100" "result":"RESULT_URL" }
    
The result URL points to your filtered image. Success! The API is currently in alpha, please get in touch with us at contact@art.app in case things go wrong.