Switching from OpenAI
Here is a standard OpenAI example:-
Set the
base_urlto the Token Factory endpoint:
https://api.tokenfactory.eu-west1.nebius.com/v1/ -
Set your API key using the
NEBIUS_API_KEYenvironment variable. Get your key at: https://tokenfactory.nebius.com/ -
Specify the model you want to use (for example,
moonshotai/Kimi-K2.5).