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

# Tổng quan về Generate API

> Các tiện ích AI cho nhiều luồng công việc khác nhau

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "business") {
      displayPlans = ["Launch", "Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Launch", "Business", "Enterprise"];
    }
  }
  return <Note>
Available on {displayPlans.length === 1 ? "the " : ""}
{displayPlans.join(", ").replace(/\b\w/g, l => l.toUpperCase())}{" "}
{displayPlans.length > 1 ? "plans" : "plan"}.

{maxPackRequired && <span onClick={() => window.open('https://www.ayrshare.com/docs/additional/maxpack', '_self')} className="flex items-center mt-2 cursor-pointer">
 <span className="px-1.5 py-0.5 rounded text-sm" style={{
    backgroundColor: '#C264B6',
    color: 'white',
    fontSize: '12px'
  }}>
   Max Pack required
 </span>
</span>}
</Note>;
};

<PlansAvailable plans={["premium"]} maxPackRequired={true} />

Chúng tôi cung cấp một bộ các tiện ích AI giúp bạn tạo các bài đăng trên mạng xã hội.

<CardGroup cols={2}>
  <Card title="Tạo văn bản" icon="code" href="/apis/generate/post-text" horizontal />

  <Card title="Viết lại bài đăng" icon="code" href="/apis/generate/rewrite-post" horizontal />

  <Card title="Phiên âm video" icon="code" href="/apis/generate/transcribe-video" horizontal />

  <Card title="Dịch nội dung bài đăng" icon="code" href="/apis/generate/translate-post" horizontal />

  <Card title="Tạo Alt Text" icon="code" href="/apis/generate/image-alt-text" horizontal />

  <Card title="Phân tích cảm xúc" icon="code" href="/apis/generate/sentiment" horizontal />
</CardGroup>

## Giới hạn Token

Với mỗi lệnh gọi API tới các endpoint AI, một số lượng "token" nhất định sẽ được sử dụng. Các token này được tính dựa trên dữ liệu bạn gửi và nhận. Mỗi tháng, Max Pack của bạn và tài khoản Ayrshare tổng thể được cấp tổng cộng 300.000 token cho gói Business, 100.000 cho gói Premium Plus, và 50.000 cho gói Premium.

Lượng phân bổ này được làm mới vào ngày đầu tiên của mỗi tháng. Để xem một lệnh gọi API cụ thể đã sử dụng bao nhiêu token, cũng như tổng lượng sử dụng của bạn trong tháng, vui lòng kiểm tra phản hồi HTTP.
