- 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_KEYenvironment variable: - Configure the integration:
- Python
- Node.js
- cURL
-
Create the following
helicone-test.pyscript:In this script, the following settings are specific to the Helicone integration:base_urlcontains the address of the Helicone API Gateway for the Nebius Token Factory provider.default_headerscontains aHelicone-Authheader 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
messagesto specify your questions.
client.images.generate for image generation. See also examples.