Fundamentals of GenAI

A model charges $1 per million input tokens and $5 per million output tokens. A revised prompt adds 1,000 input tokens but saves 300 output tokens per request without reducing quality; how does the token charge change?

Show the answer

Correct answerA. It decreases by $0.0005 per request.

AWhy this is right: The $0.0015 output saving exceeds the $0.001 added input charge by $0.0005.

BWhy not this: This counts the added input charge but ignores the savings from fewer output tokens.

CWhy not this: This treats the net increase of 700 tokens as though input and output tokens had the same price.

DWhy not this: This counts the output savings but ignores the charge for the additional input tokens.

The added input costs $0.001, while the avoided output saves $0.0015, giving a net saving of $0.0005. Counting the net increase of 700 tokens ignores the different input and output rates.