ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Token-based pricing

You pay for the tokens you send in and the tokens the model writes out.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Input tokens
Model
Output tokens
Cost
  1. 1Your prompt is counted as input tokens.
  2. 2The answer is counted as output tokens.
  3. 3The bill adds both.
Both the prompt and the answer are counted and billed.
  • Longer prompt

    Effect on cost
    Higher
    Effect on speed
    Slower start
  • Longer answer

    Effect on cost
    Higher, and output costs more
    Effect on speed
    Slower finish
  • Larger model

    Effect on cost
    Higher per token
    Effect on speed
    Usually slower
  • More requests

    Effect on cost
    Higher in total
    Effect on speed
    No change per call
What pushes cost and speed up.

1 / 2

  • Longer prompt

    Effect on cost
    Higher
    Effect on speed
    Slower start
  • Longer answer

    Effect on cost
    Higher, and output costs more
    Effect on speed
    Slower finish
  • Larger model

    Effect on cost
    Higher per token
    Effect on speed
    Usually slower

2 / 2

  • More requests

    Effect on cost
    Higher in total
    Effect on speed
    No change per call
What pushes cost and speed up.

ဘာလဲ

With token-based pricing, the price of a model call depends on how many tokens it handles. Input tokens are your prompt, including any documents or history you add. Output tokens are the answer. Providers set a price per 1,000 or per million tokens, and output tokens usually cost more than input tokens. There is no charge for idle time.

This shapes cost. A longer prompt costs more. A longer answer costs more. A larger, more capable model has a higher price per token than a small one. More requests mean more tokens in total. To cut cost, send only the context that is needed, ask for short answers, and use the smallest model that does the job.

ဘာလဲ

Tokens also shape speed. More input takes longer to read and more output takes longer to write, because the model writes one token at a time. Larger models are usually slower. The way you buy capacity, on demand or provisioned, is covered in the cost tradeoffs lesson.

မှတ်ထားရန်

  • Pay per input token and per output token.
  • Output tokens usually cost more than input tokens.
  • Longer prompts, longer answers and bigger models all cost more.
  • More output also means a longer wait.
  • Cut cost with shorter prompts, capped answers and a smaller model that is good enough.

စာမေးပွဲမှာ

  • “Billed by the amount of text processed” points to token-based pricing.
  • “Reduce cost without changing the model” points to shorter prompts or shorter answers.
  • “Which has the larger effect on price, a small or a large model?” points to the large model, per token.