Sign up now for $10 free budget - Get an extra $40 when you get in touch

Default Model

Learn about the default model

It is possible to set a default model that the AI Router will use when it is unsure of the most appropriate model. Any model from the list of Available Models can be used. In case you do not want to set a default model, you can set the model to auto, to have the AI Router decide on a default model.

Using OpenAI:

...

client.chat.completions.create(
        model='auto',
        messages=[{"role": "user", "content": input}]
    )

Using langchain:

llm = ChatOpenAI(
        model='auto',
        base_url='https://api.airouter.io',
    )