< Back to examples

Blog Title Alternatives Generator

Suggest three alternative titles with a better marketing copy

Input

Suggest three alternative titles with a better marketing copy for the following blog.

The tone of the alternative titles is: Inspirational
Blog Title: Learning to Play Chess
Alternative Blog Titles:

Sample Response

1. "How I Learned to Play Chess and You Can, Too!"
2. "Chess: A Game of Strategy and Intrigue"
3. "The Beginner's Guide to Chess"

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Suggest three alternative titles with a better marketing copy for the following blog.\n\nThe tone of the alternative titles is: Inspirational\n\nBlog Title: Learning to Play Chess\n\nAlternative Blog Titles:',
6  max_tokens=50,
7  temperature=0.9,
8  k=0,
9  p=0.76,
10  frequency_penalty=0,
11  presence_penalty=0,
12  stop_sequences=[],
13  return_likelihoods='NONE',
14  language='en')
15print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizecommand
k 0
frequency_penalty 0
p 0.76
presence_penalty 0
max_tokens 50
temperature 0.9