Fluxpoint API

  • Info

  • Image generation is for donators-only /donate

    You can use GET or POST requests and any http lib to generate images and get image bytes as a response back.

    If the API is not a success response you can parse the json body to get basic info on what happened.


  • Get Test Image

  • You can use our test image gen endpoint to get a basic response and also test how to get/download the image data bytes using whatever lib you use.

    /gen/test
    Get the test image.

    Image

    [Image Bytes Response]
    

  • Get Custom Image

  • Use the information and examples below on how to generate your own image which can be used as a template for stuff like, welcome messages, profiles, memes or other funny stuff.

    /gen/custom
    Get the created image gen image.

    [Image Bytes Response]
    

    Example Request
    Here is an example on what you should send in your request.

    {
    	"Base": {
    		"type": "bitmap",
    		"width": 2000,
    		"height": 2000,
    		"color": "#7289da"
    	},
    	"Images": [
    		{
    			"type": "url",
    			"url": "https://img.fluxpoint.dev/thm/1422436083957760.jpg",
    			"width": 1000,
    			"height": 1000
    		},
    		{
    			 "type": "bitmap",
    			"round": 160,
    			"x": 20,
    			"y": 240,
    			"width": 1220,
    			"height": 360,
    			"color": "0,0,0,80"
    		}
    		],
    	"Texts": [
    		{
    			"text": "Hello",
    			"size": 120,
    			"x": 600,
    			"y": 1060
    		}
    	]
    }
    

  • Image Types

  • Add these types into the Images list to generate them.

    Square

    {
       "type": "bitmap",
       "x": 10,
       "y": 20,
       "width": 100,
       "height": 100,
       "color": "#aaaaaa",
       
       // Optional
       "round": 60
    }
    

    Image Url

    {
       "type": "url",
       "url": "https://gallery.com/image.png",
       "x": 10,
       "y": 20,
       
       // Optional resize the image/round corners
       "width": 100,
       "height": 100,
       "round": 60
    }
    

    Circle

    {
       "type": "circle",
       "x": 10,
       "y": 20,
       "radius": 100,
       "color": "red"
    }
    

    Triangle

    {
       "type": "triangle",
       "x": 10,
       "y": 20,
       "color": "red",
       "cut": "topleft" // TopLeft/TopRight/BottomLeft/BottomRight
    }
    

  • Text Format

  • Add these into the Texts list to generate them.

    {
       "text": "Some text to show",
       "size": 16,
       "color": "black",
       "x": 10,
       "y": 20,
       
       // Optional
       "font": "Sans Serif",
       "bold": false,
       "unicode": false, // Enable Discord unicode support
       "outline": 1,
       "outlinecolor": "yellow"
    }
    

    Multi-line text

    {
       "texts": [ "User 1", "User 2" ],
       "size": 16,
       "color": "black",
       "x": 10,
       "y": 20,
    }
    

    An error has occurred. This application may no longer respond until reloaded. Reload 🗙