When creating a product you can specify a template_prefix to display the product on a custom template page.
https://shopify.dev/docs/api/admin-rest/2023-07/resources/product
How do I actually create that template? It looks like the assets API could be used to create one, however that is being deprecated. Theme app extensions look like they might be able to do this, however I couldn’t figure out how to make this work.