Glide AI Token Math

If I have a Generate Text column with instructions that is 80 tokens and the input ranges from 0 tokens to 1000 tokens.

I have 100 rows where 1/2 have no input and the others have on average 500.

Example 1 - Is the math: 100 * 80 tokens + 50 * 500 = 33,000 tokens

Example 2 - Is it 50 * 80 tokens + 50 * 500 = 29,000 tokens (since the AI didn’t generate anything for the 50 rows without input).

DId I use 3.3 updates (or is it rounded up to 4)?
Did I use 2.9 updates (or is it rounded up to 3)?

Some other answer?

I’d be surprised if updates can be aggregated like this, and not a row-by-row calculation.

What I mean is I think when they say they charge you 1 update per 10k tokens:

  • I think: Any amount of tokens from 1 to 10k cost 1 update.
  • I do not think: Using 1k tokens cost 0.1 updates, for example.

Though, that’s just what I think.

Sometimes GenAI can’t come up with a summary because the notes were minimal. I figure those cost money. The red “Please provide message” is when I am asking GenAI to summarize notes and there are no notes.

Do the instances when Glide AI fails because of no input cost updates?

TIA

I don’t think it would cost updates in these cases, and I think it should also cover cases where you go over the tokens limit for one call.

However, if they charge like what I thought above, it would still be a lot for you already.

The cost seems to be really high (compared to other AI providers) if their was a ‘floor’ for every row where it costs 1 update for 580 tokens when the going published rate is 1 update for 10,000 tokens.

Since a column is by nature an aggregate total of the Generative operations across the set of rows - it seems like it might make sense to apply the published rate across the set of operations.

But I obviously have no CLUE!

Just created a brand new app, I wonder why the count is 2 and not 3, but it’s definitely not pro-rated.

In my example of 100 rows and 50 actually GenAI success - charging 50 updates which are valued by Glides as 500,000 tokens when I have actually only used 33,000 in the worst case seems…excessive.

So my use case is providing an AI summary of notes across a variety of different class objects. Everything can have notes, some objects have scores of notes, others with none. I am trialing out different prompts to get different results. Then using JSON to attach meta-data to the “note” to get even trickier/smarter.

Having a floor of 1 update per 580 tokens vs the 10,000 advertised seems off.

Yeah I think the wording there can be better, but based on how they charge updates for API query, I suspect this is the case and it seems like it is.

Also I’m not sure I understand your 580 number. I think as long as you make a call, you’re guaranteed to have 1 update already, and it scales up every time you pass a 10k threshold.

Thanks - not the ideal outcome.

The “each run uses 1 update per 10K tokens” note seems stuoendously misleading. You used about 50 tokens per “run” or say 150 tokens for 3 ‘runs’. 150 isn’t close to 30,000 tokens.

The definition of ‘run’ is probably the most misleading - column v row.

Thanks again

1 Like