> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart Model API: Xây dựng với các model CometAPI

> Chọn một quickstart Model API của CometAPI cho các quy trình text, image và video với curl, Python, Node.js và các liên kết đến tài liệu API reference.

Sử dụng các quickstart này khi bạn đã biết họ model hoặc tác vụ mà bạn muốn xây dựng. Mỗi trang hiển thị một request tối giản, ví dụ bằng Python, ví dụ bằng Node.js, luồng request, các tham số phổ biến và các liên kết quay lại API reference.

Để thiết lập tài khoản, lấy API key và thực hiện lệnh gọi tổng quát đầu tiên, hãy bắt đầu với [Tạo API key](/vi/overview/quick-start). Để xem hướng dẫn nền tảng có thể tái sử dụng, hãy dùng [Hướng dẫn Core API](/vi/guides/use-cometapi-with-openai-sdk).

## API text

<CardGroup cols={3}>
  <Card title="API tương thích OpenAI" icon="message" href="/quickstarts/text/openai-compatible-api">
    Sử dụng route Chat Completions tương thích OpenAI API với một model ID của CometAPI.
  </Card>

  <Card title="Claude API" icon="message" href="/quickstarts/text/claude-api">
    Gửi các request Anthropic-compatible Messages tới các model Claude thông qua CometAPI.
  </Card>

  <Card title="Gemini API" icon="sparkles" href="/quickstarts/text/gemini-api">
    Bắt đầu với `generateContent` gốc của Gemini, hoặc dùng Chat Completions tương thích OpenAI cho các ứng dụng SDK hiện có.
  </Card>
</CardGroup>

## API image

<CardGroup cols={3}>
  <Card title="GPT Image API" icon="image" href="/quickstarts/image/gpt-image-api">
    Tạo một image, giải mã `b64_json` và lưu kết quả.
  </Card>

  <Card title="Gemini image API" icon="sparkles" href="/quickstarts/image/gemini-image-api">
    Tạo image với các model image của Gemini, bao gồm các họ model Nano Banana.
  </Card>

  <Card title="Flux API" icon="paintbrush" href="/quickstarts/image/flux-api">
    Tạo một tác vụ image Flux, thăm dò để lấy kết quả và tải xuống trước khi URL hết hạn.
  </Card>
</CardGroup>

## API video

<CardGroup cols={3}>
  <Card title="Veo 3 API" icon="video" href="/quickstarts/video/veo-3-api">
    Tạo một tác vụ video Veo bằng dữ liệu biểu mẫu multipart và thăm dò cho đến khi hoàn tất.
  </Card>

  <Card title="Sora 2 API" icon="film" href="/quickstarts/video/sora-2-api">
    Tạo video Sora, thăm dò trạng thái và tải xuống nội dung đã hoàn tất.
  </Card>

  <Card title="Kling API" icon="clapperboard" href="/quickstarts/video/kling-api">
    Gửi một tác vụ Kling text-to-video và theo dõi tác vụ đó thông qua polling hoặc callback.
  </Card>
</CardGroup>

## Hướng dẫn hỗ trợ

<CardGroup cols={2}>
  <Card title="Models" icon="list" href="/overview/models">
    Tìm các model ID khả dụng và định tuyến từng model đến đúng trang API.
  </Card>

  <Card title="Sử dụng OpenAI SDKs" icon="code" href="/guides/use-cometapi-with-openai-sdk">
    Cấu hình các SDK client tương thích OpenAI với base URL của CometAPI.
  </Card>

  <Card title="Ước tính chi phí" icon="tag" href="/guides/how-to-estimate-cost-before-calling-a-model">
    Lập kế hoạch giới hạn ngân sách trước các request token, image hoặc video.
  </Card>

  <Card title="Sử dụng webhook và polling" icon="rotate-cw" href="/guides/webhook-and-polling-for-video-generation">
    Theo dõi quá trình tạo video bất đồng bộ bằng task ID, polling và callback.
  </Card>
</CardGroup>
