> ## 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.

# Generate API 概觀

> 適用於各種工作流程的 AI 工具

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} />

我們提供一組協助建立社群媒體貼文的 AI 工具。

<CardGroup cols={2}>
  <Card title="生成文字" icon="code" href="/apis/generate/post-text" horizontal />

  <Card title="改寫貼文" icon="code" href="/apis/generate/rewrite-post" horizontal />

  <Card title="轉錄影片" icon="code" href="/apis/generate/transcribe-video" horizontal />

  <Card title="翻譯貼文文字" icon="code" href="/apis/generate/translate-post" horizontal />

  <Card title="生成 Alt 文字" icon="code" href="/apis/generate/image-alt-text" horizontal />

  <Card title="情緒分析" icon="code" href="/apis/generate/sentiment" horizontal />
</CardGroup>

## Token 限制

每次呼叫 AI 端點時，都會使用一定數量的「token」。這些 token 是根據你送出與接收的資料量計算的。每個月你的 Max Pack 與整體 Ayrshare 帳號會獲得配額：Business Plan 為 300,000 token、Premium Plus Plan 為 100,000 token、Premium Plan 為 50,000 token。

配額會在每月的第一天重置。若要查看單一 API 呼叫使用了多少 token，以及當月的總用量，請查看 HTTP 回應。
