< Back to examples

Instagram Caption

Generate a caption with a call to action

Input

Write a formal instagram caption without hashtags for working professionals advertising beginner hip hop, ballet, and gymnastics classes at my dance studio

Sample Response

Looking for a fun way to get your little one moving? Look no further than my dance studio! We offer beginner hip hop, ballet, and gymnastics classes that are sure to please. Our professional instructors are dedicated to providing a positive learning experience for your child. So come on in and check us out!

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Write a formal instagram caption without hashtags for working professionals advertising beginner hip hop, ballet, and gymnastics classes at my dance studio',
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
max_tokens 200
temperature 0.9
k 0
frequency_penalty 0
p 1
presence_penalty 0