Let's make your first API call to access AI functionalities using the service from Qubico!Generate an API key#
What is an API key?
An API key is a secure credential that allows your code to interact with our API.
Never share your API key with anyone, as it can be exploited without your knowledge.
1.
Create an account: Go to Qubico and log in with your GitHub account. 2.
After logging in, click on your profile in the top-right corner of the navigation bar.
In the dropdown menu, select Dashboard.
In the Dashboard, navigate to the API key section and generate your key.
Set Base URL#
This is the URL to be used for all of our API calls:Make your first API call#
Let's take Flux API as an example.1.
Set URL endpoint:
With our Unified API Schema, users can interact with all models and services through just two endpoints: create task and get task.
Here, we want to create a Flux text-to-image task, so the endpoint should be: 2.
Set the header:
In most cases, you will need an API key for authorization. Remember to replace the YOUR_API_KEY with your actual key. The headers look like this: