Skip to main content
The Meta model provides access to Meta’s language models.

Parameters

ParameterTypeDefaultDescription
idstr"meta-llama/Meta-Llama-3.1-405B-Instruct"The id of the Meta model to use
namestr"MetaLlama"The name of the model
providerstr"Meta"The provider of the model
api_keyOptional[str]NoneThe API key for Meta (defaults to META_API_KEY env var)
base_urlstr"https://api.llama-api.com"The base URL for the Meta 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
Meta extends the OpenAI-compatible interface and supports most parameters from OpenAI.