# Using different models

Unlike the built-in AI APIs, AIBrow has support for multiple models. It ships with a default model, but you can request that your page use a different model. When a model is downloaded, it becomes available to all sites on the machine, meaning it only needs to be downloaded once.

Specifying a model can be useful if a specific model provides better responses to the types of prompts you're using.

{% hint style="success" %}
Look at the current list of [supported models](/api-reference/models.md), or [request more](https://github.com/axonzeta/aibrow/issues)!
{% endhint %}

## Use a different model

All the top-level AiBrow APIs support requesting a model through the create call.

```javascript
import AI from '@aibrow/web'

// All the top-level APIs support the model field, such as
//   * AI.AIBrow.LanguageModel({ ... })
//   * window.aibrow.LanguageModel({ ... })
//   * AI.AIBrow.Summarizer.create({ ... })
//   * window.aibrow.Summarizer.create({ ... })
//   * AI.AIBrow.Writer.create({ ... })
//   * window.aibrow.Writer.create({ ... })
const session = await AI.AIBrow.LanguageModel.create({
  model: "phi-3-5-mini-instruct-q4-k-m"
})

const stream = await session.promptStreaming("write a long poem");
for await (const chunk of stream) {
  console.log(chunk)
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aibrow.ai/examples/using-different-models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
