Resend had no documented way to embed an image inline in the email HTML via Content-ID (cid), which is useful for small markup and for not fetching images from external servers at open time. Users referenced the react-email discussion on cid support but resend's own API did not expose it. The feature request asked for an inline-content-id style attachment property.
How to embed images inline via cid in Resend emails
CID embedding is supported in resend 4.8.0 and later via the inlineContentId attachment property. Reference the attachment in your HTML with an image tag whose source is the cid: scheme plus your content id. In the send call, pass from, to, subject, the html with the image tag, and an attachments array holding the file content with filename and inlineContentId set. The maintainer confirmed this was added in PR #554 and released in 4.8.0.
Source: https://github.com/resend/resend-node/issues/319