Music Tools | Image API

Image API

A little self-hosted API and web GUI for initially designed for creating cover-art image though an API via an HMTL template rendered to an image, but can also be used for any other banner type creation. It’s available and mostly works but it’s still being finished so expect a few bugs.

It runs on Docker and can be accessed through the API, sending any information you wish to pass to it and add to the template for rendering to the cover-image.

Image Generator

You can find more information on installation, usage and customisation here at Github,

Any questions, feel free to get in touch.

Installation

Note: This is still a working progress but mostly there.

An API / web gui for docker that uses html as a template to render down to an image.

Can be used for Music Cover art generation / banners etc.

  1. Setup your environment variables in the .env file, and install using the docker-compose.yml, this creates two containers, the API and a web GUI.
  2. create an html template in the gui or upload one via the API (i think that works).

3 in the template add any api variables you wish to send to you template using – {{my_api_var}}.

then in the API you can send this variable –

https://api.myserver.com/api/make_image?{=&album_id=My Great Album&}

or as JSON –

API auth

Header – X-API-Key: <api key in the .env file>

  1. click download image button (if using the GUI) or the API should return the following JSON –

endpoints available /docs

PETE
STEEGE
MUSIC