ashllm.comGo to chat

Spend caps, and what happens at the edge

A cap is checked before the model runs, and a key that is running low answers shorter instead of failing.

Hold, clamp, settle

  1. The prompt's cost is worked out and held against what the key has left.
  2. The output it can still afford is worked out, and max_tokens is lowered to fit.
  3. When the answer is done the hold is let go and the real cost is charged.

A request fails only when what is left cannot pay for even a short answer, and then it is a 402.

A key that reaches its cap

It stops, and your other keys carry on.

Hanging up

Output is counted as it streams. If the client disconnects, the charge is for what was generated up to that point.