[ALT] The Generate Endpoint
In the previous two chapters, we looked at how we can use the Playground to experiment with ideas in text generation. And let’s say we have now found that idea which we want to build on, so what’s next? In this chapter, we will begin our exploration of the Cohere Generate endpoint, one of the endpoints available from the Cohere API. We’ll move from the Playground to code, in this case via the Python SDK, and learn how to use the endpoint.
Codelab
Section titled “Codelab”This article comes with a Google Colaboratory notebook for reference.
Here’s a quick look at how to generate a piece of text via the endpoint. It’s quite straightforward.
We enter a prompt: