Fun With OpenAI and Laravel, Ep 01 - Hello, AI

In this initial lesson, we’ll get our first taste of OpenAI by using Laravel’s HTTP client to make a POST request to the OpenAI Completions API. We explore how to send a request to compose a poem, handle the JSON response, and display the AI-generated poem as part of a web page. Watch The Full Series now on Laracasts: Watch thousands of videos, track your progress, and participate in a massive Laravel community at . Laracasts: Laracasts Twitter: Jeffrey Way Twitter:
Back to Top