> For the complete documentation index, see [llms.txt](https://docs.avis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avis.net/vi/huong-dan/get-started/avis-choose-model.md).

# Cách tìm và chọn mô hình

Avis cung cấp hơn 300 mô hình cho văn bản, hình ảnh, video, âm thanh và embedding, tất cả chỉ cần một API key. Hướng dẫn này giúp bạn duyệt danh mục, so sánh các mô hình và lấy đúng model ID để dùng trong code.

***

## Duyệt mô hình trên website

**Bước 1:** Truy cập danh mục mô hình tại <https://www.avis.net/profile/models>.

**Bước 2:** Lọc theo nhu cầu: văn bản, hình ảnh, video, âm thanh hoặc embedding.

**Bước 3:** Sao chép **model ID**. Đó là giá trị bạn truyền vào tham số `model` trong request.

***

## Liệt kê mô hình bằng API

```bash
# All active models
curl https://api.avis.net/api/v1/ai/models \
  -H "x-api-key: $AVIS_API_KEY"

# Only models that output video
curl "https://api.avis.net/api/v1/ai/models?outputModalities=video" \
  -H "x-api-key: $AVIS_API_KEY"

# One model, with its full capabilities
curl https://api.avis.net/api/v1/ai/models/wan-2-6 \
  -H "x-api-key: $AVIS_API_KEY"
```

Truyền giá trị `modelId` trong response vào tham số `model` của request tạo nội dung. Danh sách này chỉ bao gồm các mô hình đang hoạt động.

Tài liệu đầy đủ: [Danh sách mô hình](/vi/tai-lieu-api/endpoints/model-list.md).

***

## Cách lựa chọn

| Nếu bạn cần...                         | Hãy xem...                                                                                                                                      |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Chi phí thấp nhất                      | Giá trên trang mô hình, hoặc chạy [ước tính](https://github.com/coin98/documentation/tree/docs_avis_vi/guide/get-started/avis-estimate-cost.md) |
| Độ dài hoặc độ phân giải video cụ thể  | `capabilities.video.params` của mô hình đó, vì mỗi mô hình cho phép các giá trị khác nhau                                                       |
| Công cụ, đầu ra JSON hoặc suy luận     | `capabilities.text.supportedParameters`                                                                                                         |
| Đầu vào hình ảnh hoặc tệp              | `inputModalities`                                                                                                                               |
| Sử dụng đầu ra cho mục đích thương mại | Điều khoản giấy phép của nhà cung cấp mô hình                                                                                                   |

**Lưu ý:** Đừng cho rằng giới hạn của một mô hình cũng áp dụng cho mô hình khác. Ví dụ, `wan-2-6` chấp nhận mọi thời lượng từ 2 đến 15 giây, trong khi `hailuo-2-3` chỉ chấp nhận đúng 6 hoặc 10 giây. Gửi giá trị không được mô hình hỗ trợ sẽ trả về lỗi `400`.

***

## Sử dụng thương mại

Mỗi mô hình có điều khoản riêng do nhà cung cấp quy định. Trước khi dùng nội dung tạo ra cho mục đích thương mại, hãy kiểm tra giấy phép của mô hình đó. Đầu ra cũng có thể chứa watermark AI hoặc metadata.

***

## Câu hỏi thường gặp

### Tôi có thể gọi mô hình Claude qua endpoint OpenAI không?

Có. Mọi giao diện API (OpenAI, Anthropic, Gemini) đều chấp nhận mọi mô hình trong danh mục Avis.

### Tại sao tôi nhận được lỗi "unsupported model"?

Model ID bị sai hoặc mô hình không còn hoạt động. Hãy tra cứu lại bằng `GET /api/v1/ai/models`.

### Mô hình mới có được bổ sung thường xuyên không?

Có. Xem [Nhật ký thay đổi](/vi/huong-dan/change-log.md) để biết các nhà cung cấp và mô hình mới.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avis.net/vi/huong-dan/get-started/avis-choose-model.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
