isn't that what Simon Willison's `llm` does?

edit: [link](https://github.com/simonw/llm)