引導式測驗 · 中等 等級

令牌計數和 LLM API 定價測驗

測試您估算 LLM API 成本的技能:輸入與輸出令牌率、呼叫前計算令牌以及聊天歷史記錄等隱藏成本。

問題 1 的 8

英文文本和標記的通用經驗法則是什麼?

預覽每個問題8 問題

當您參加測驗時,就會出現答案和解釋。

  1. 英文文本和標記的通用經驗法則是什麼?
    • One token equals one full sentence
    • One token is about four characters, or three-quarters of a word
    • One token equals exactly one word
    • One token is about 100 characters
  2. 為什麼輸出代幣的價格通常會高於輸入代幣?
    • Output tokens are longer words
    • Providers pay authors for output text
    • Output is generated one token at a time, while input can be processed in parallel
    • Output tokens are stored permanently
  3. 假設價格為每百萬個輸入代幣 3 美元,每百萬個輸出代幣 15 美元,那麼一次包含 6,000 個輸入和 800 個輸出代幣的呼叫成本是多少?
    • $0.03
    • $0.30
    • $0.018
    • $3.00
  4. 為什麼聊天機器人的成本經常隨著對話的進行而增加?
    • Providers raise prices mid-conversation
    • Output tokens become more expensive
    • Models slow down over time
    • The whole conversation history is resent as input on every turn
  5. 推理模型的內部思維代幣通常如何計費?
    • They are free
    • As output tokens, even when not shown in full
    • As input tokens
    • As a flat monthly fee
  6. Which tool does Anthropic provide for counting tokens before a request?
    • The tiktoken library
    • A countTokens method on Gemini
    • A token-counting endpoint that accepts messages, system prompt and tools
    • A browser extension
  7. What do batch API endpoints typically offer?
    • Around half price in exchange for asynchronous, slower results
    • Free output tokens
    • Faster responses at double the price
    • Unlimited context windows
  8. Why is the lowest per-token price not a reliable guide to total API cost?
    • Tool definitions count as input
    • Actual usage fields should be logged
    • Non-English text can use more tokens
    • The model with the lowest per-token price is always cheapest per task