Operating, Monitoring, and Securing ML and AI Solutions

A workload completes 100,000 tasks monthly, with each FM invocation using 2,000 input and 500 output tokens; model A costs $1/$4 per million input/output tokens, while model B costs $2/$3. Both meet quality and latency requirements, but half of model A's tasks require one additional identical invocation, whereas model B requires no retries; which model has the lowest monthly inference cost?

Show the answer

Correct answerA. Model B at $550

AWhy this is right: Each invocation costs $0.004 for input plus $0.0015 for output, totaling $550 for 100,000 tasks.

BWhy not this: This applies model B's input-token rate to output tokens instead of its stated output-token rate.

CWhy not this: This correctly calculates model A's spending, but $600 exceeds model B's $550.

DWhy not this: This includes only the initial invocations and omits the additional 50,000 billable invocations.

Model B costs $0.0055 per task, or $550 monthly. Model A costs $0.004 per invocation, but 150,000 invocations cost $600; its $400 estimate ignores retries.