Two key ways
1. You use their services which makes them money (e.g. you're returned good flight info and book through chatgpt, they get commission)
2. You sell access to end users. The requests can be authenticated so you can give your paying users access to your stuff through an advanced natural language engine for the implementation cost of roughly adding a file explaining your APIs.