Different slugs on different output formats

Is it possible to specify a different slug for a content on different output formats?

E.g. when the content is rendered as HTML to have a specific slug, and when rendered as JSON to have a different slug.

No, it is not. You can globally change the path and base name for a given output format, but you cannot specify different slugs in front matter.