- Create a Nebius API key for authentication.
-
Save the API key to an environment variable:
- Create a Helicone account.
- Log in to Helicone.
- Go to Settings → API Keys and generate a Helicone API key.
-
Save the API key into a
HELICONE_API_KEY
environment variable: - Configure the integration:
-
Create the following
helicone-test.py
script:In this script, the following settings are specific to the Helicone integration:base_url
contains the address of the Helicone API Gateway for the Nebius AI Studio provider.default_headers
contains aHelicone-Auth
header with the Helicone API key.
-
Run the script:
The output is the following:
- To work with a different model, change
model
. You can copy the model ID from the model card or look it up in this list. - Modify
messages
to specify your questions.
client.images.generate
for image generation. See also examples.