< Back to examples

Ad Headline

Generate promotional ad copy variants

Input

Write a short ad headline for the 25% off everything holiday sale for my homemade jewelry

Sample Response

Looking for a great deal on some handmade jewelry? Check out our holiday sale! All jewelry is 25% off!


Come one, come all! Our holiday sale is here! All jewelry is 25% off!
Don't miss out on this great deal! All jewelry is 25% off!


Looking for a great deal on some handmade jewelry? Check out our holiday sale! All jewelry is 25% off!


Come one, come all! Our holiday sale is here! All jewelry is 25% off!
Don't miss out on this great deal! All jewelry is 25% off!


Looking for a great deal on some handmade jewelry? Check out our holiday sale! All jewelry is 25% off!


Come one, come all! Our holiday sale is here! All jewelry is 25% off!
Don't miss out on this great deal! All jewelry is 25% off!

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='write a short ad headline for the 25% off everything holiday sale for my homemade jewelry',
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
p 1
presence_penalty 0
max_tokens 200
temperature 0.9
k -7
frequency_penalty 0