I'm impressed with ChatGPT too but the above example has been possible with many popular REST clients for years (Postman, Insomnia etc.) You can paste that curl cmd into Insomnia and ask for the relevant code in many different languages.