Ideogram Layerize takes an existing flat graphic, removes text, and returns structured text containers you can edit/recompose in html or json format.
https://fal.run/images
/v1/models/fal/fal-ai/ideogram/v3/layerize-text