< Back to examples

Blog Post Intro Paragraph

Generate an intro paragraph for a blog post

Input

Generate an intro paragraph of a blog post geared towards athletes who are looking to learn how to rock climb. The post should be enthusiastic and speak to people who are inactive and nervous.

Sample Response

If you're an athlete who's looking to learn how to rock climb, then you've come to the right place! This blog post will give you all the information you need to know about how to get started in the sport. Rock climbing is a great way to stay active and challenge yourself in a new way. It's also a great way to make new friends and explore new places. So, what are you waiting for? Get out there and start climbing!

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Generate an intro paragraph of a blog post geared towards athletes who are looking to learn how to rock climb. The post should be enthusiastic and speak to people who are inactive and nervous.',
6  max_tokens=200,
7  temperature=0.9,
8  k=0,
9  p=1,
10  frequency_penalty=0,
11  presence_penalty=0,
12  stop_sequences=[],
13  return_likelihoods='NONE')
14print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizecommand
frequency_penalty 0
p 1
presence_penalty 0
max_tokens 200
temperature 0.9
k 0