Currently the API responses for recent builds and single build don't return the resource_class. It would be nice if they did as I could then use that response to calculate costs for the build. The response already returns parallelism and build time. The missing piece is resource_class.
While it's possible to pull this out of my own circle config, the values could change over time so having it tied to the API response itself would be handy.