Custom Image

Custom Image Generation
POST
https://api.fluxpoint.dev/gen/custom
Generate a custom image with json body format.
Headers
Name
Type
Description
This will send you raw image data (bytes)
Request json body
{
"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
}
]
}
Base
The base can be either a Square (bitmap) or Image url.
Elements (Images)
"Images": [
{
"url": "https://img.fluxpoint.dev/thm/1422436083957760.jpg",
"width": 540,
"height": 540,
"cache": true
}
]
Starting 2024 do not use Discord attachments as permanent image urls due to restrictions. You will need to store images on your own server or via another service like Imgur.
Global Options
Set default options for the image gen.
{
"global": {
"textSize": 16
}
}
Text
Add these into the Texts list to generate them.
text: "Hello"
or texts: [ "Hello", "User" ]
- Set the text (Required)
"Texts": [
{
"text": "No api?",
"size": 45,
"x": 40,
"y": 20,
"width": 460,
"bold": true,
"align": "m",
"outlinecolor": "black",
"outlinewidth": 8,
"line": 1,
"weight": 500
}
]
Last updated