Skip to main content
Cohere

Search documentation

Type to search this documentation.

On this pageOverview

[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.

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:

applications (response) value code combinations
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu