👻BotGhost
Welcome to the BotGhost guide!
If you don't understand what requests, endpoints or json is then this is a good guide on how to get started with using the Fluxpoint API.
Sending Requests
It's recommended to download a desktop client for sending/testing API requests before you implement them in your app, you can download the Insomnia rest client here.

Setup Insomnia
Register an account and download the client app for windows. https://insomnia.rest/products/insomnia
Import the request collection for Fluxpoint API (Top Right + icon)
Select Url and enter
https://github.com/xXBuilderBXx/xXBuilderBXx/blob/master/FPAPI.json
Enter your API token to use.
Test out the requests using Send
Using with BotGhost
BotGhost does not support file data but we have added our own method using Discord webhooks to send images so you can use the image url in your bot messages.
Import Commands
We have added 2 command templates to use the API with.
You can add these to your own bot using the Add Command
Gallery Images: https://botghost.com/market/command/lqvmzfsvdzwxgm0rqqa
Image Generation: https://botghost.com/market/command/lqvnloh3rhhrf5e1jq
Setup Webhook
Create a private channel in your own Discord server to send generated images to.
Edit the channel and go to Integrations.
Create a Webhook
Copy the Webhook URL
Setup Command
Use the BotGhost send request action or import a command from the marketplace.
Edit the Request using Request Builder.
Set the request url to
https://api.fluxpoint.dev/gen/custom
Set your API token in the Headers.
Set 2 options in the Request Body for canvas and proxy.
Paste your Webhook url in proxy value.
Paste your image gen json in canvas value.
Test the request to make sure it works, you should see the generated image url in the response and also a message in your Discord channel with the image.
You can now use the image url variable from the response with a send message action.
fp is the name of your request action, response is the response data and file is the
If you are getting an error message saying Failed to parse request json
this means that your json format is invalid.
You can use a json format checker tool to test for issues. https://jsonformatter.curiousconcept.com/
Last updated