Skip to main content
The Nebius model provides access to Nebius’s text and image models.

Parameters

ParameterTypeDefaultDescription
idstr"meta-llama/Meta-Llama-3.1-70B-Instruct"The id of the Nebius model to use
namestr"Nebius"The name of the model
providerstr"Nebius"The provider of the model
api_keyOptional[str]NoneThe API key for Nebius (defaults to NEBIUS_API_KEY env var)
base_urlstr"https://api.tokenfactory.nebius.com/v1"The base URL for the Nebius API
retriesint0Number of retries to attempt before raising a ModelProviderError
delay_between_retriesint1Delay between retries, in seconds
exponential_backoffboolFalseIf True, the delay between retries is doubled each time
Nebius extends the OpenAI-compatible interface and supports most parameters from OpenAI.