Skip to main content
Nebius Token Factory provides an OpenAI-compatible API, making it easy to migrate existing OpenAI integrations with minimal changes.

Switching from OpenAI

Here is a standard OpenAI example:
To switch to Nebius Token Factory:
  1. Set the base_url to the Token Factory endpoint:
    https://api.tokenfactory.nebius.com/v1/
  2. Set your API key using the NEBIUS_API_KEY environment variable. Get your key at: https://tokenfactory.nebius.com/
  3. Specify the model you want to use (for example, moonshotai/Kimi-K2.5).
That’s it - no other changes are required.

Full Example Using Token Factory