So stoked about the new Images bindings API! Got some questions though: In this example, doesn't the

So stoked about the new Images bindings API! Got some questions though:
In this example, doesn't the env.IMAGES.info(stream) call consume the ReadableStream and then env.IMAGES.input(stream) try to reuse the stream that is already consumed? Is there some magic going on there?
Can I call env.IMAGES.info(stream) on a stream just to verify info and then pipe the same already-consumed (?) stream to R2 without any transformations? Or do I need to tee the stream?
Also how are these transformations priced? Is .info(stream) free? Do I assume that each call to <some transformations>.output() triggers one "unique transformation" quota usage? E.g. 5k free .output() calls per month then $0.5 per 1k thereafter?
Screenshot_2025-02-25_at_8.53.43_AM.png
Was this page helpful?