Handling multiple resource variants in a REST API can be a tricky design challenge, with many considerations and trade-offs to take into account. In this post, we’ll look at an AI image generation API as an example, but the concepts we’re going to discuss are broadly applicable to any API with multiple resource variants.