Let's make your first API call to access AI functionalities using the service from Qubico!Generate an API key#
What is 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 the Qubico workspace and log in with your GitHub account. 2.
Create an API key: After logging in, navigate to the API key section in the workspace and generate one.
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: