Using in the GraphQL Web Client
An API playground is available at https://api.flux.ai/graphql - go there in your browser and you’ll be taken into GraphiQL (“graphical”), which is a user interface for making API requests easily.
- Paste in your API key: Make sure the bottom pane is showing “Headers” then replace only the “your-Flux-API-key-goes-here” part with the API key you obtained from the dialog on Flux.
- Leave the “Bearer ” part as is.
- i.e. the whole pane might contain something like the following, but with your own key—this one is fake:
{"Authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJlZGVjYjgxYy01ZWExLTQ1OWQtOTJlMy05MzJlNjVmNGEwNzIiLCJpYXQiOjE3MTY5ODYxMTQsImlzcyI6IkZsdXggQVBJIiwic3ViIjoic2g1cGRJS3Nwa1BMUjJUV2YweEhQNjhiempmMSJ9.rt9kYVGNQ_SLHTiy-sxKTF5WhjJaHDcHnEHMRuGF_PU"}
tip
Header configuration is separate for every tab in the web client. You'll need to copy+paste the pane contents from one tap to another.
tip
Reloading the web client page will reset the header pane. Headers are not stored for security reasons! We recommend storing them in a password manager.