Building with AILesson 10 of 80

Module 1 · The call underneath everything

Sending images, PDFs and audio, and what they cost

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 10 of 10 in this chapter

This chapter’s goalSend the same request to a hosted model and to a model running on your own machine, read every field of the response including token counts and stop reason, and predict within a factor of two what a proposed feature will cost per thousand users before you write it.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Budget for the actual input type

Image, PDF and audio handling depends on the chosen model and API. Their input units, preprocessing and prices can differ from plain text. Check the documentation and count or measure representative requests before estimating a feature’s cost.

For images, resolution, resizing, tiling and the number of images can affect usage. Use the selected model’s rules rather than applying one pixel-to-token formula across providers. Compare crops and resolutions against the details the task must preserve. Claude image processing and costs.

A smaller image can lose a date or decimal point that the task needs. Keep an accessible original and evaluate the actual transformed image you send.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Sending images, PDFs and audio, and what they cost’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/images-files-and-audio-in (Accessed: 29 November 2026).