< Back to examples

Real Estate Listing

Convert a description into a textual advertisement

Input

Generate a creative ad for House with panoramic mountain views in Joshua Tree

Sample Response

Come explore this stunning House with panoramic mountain views in Joshua Tree! This 3 bedroom, 2.5 bathroom House features a spacious open floor plan with plenty of natural light. The living room, which is located just off the kitchen, features a beautiful fireplace and large windows that provide sweeping mountain and desert views. The kitchen is well-equipped with stainless steel appliances and a large island with a breakfast bar. The Master bedroom is located downstairs and features a walk-in closet and an en-suite bathroom with a soaking tub and a separate shower. Two additional bedrooms are located upstairs, each with their own bathroom. The House also features a large laundry room and a 2 car garage. This is a must-see!

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Generate a creative ad for House with panoramic mountain views in Joshua Tree',
6  max_tokens=250,
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
temperature 0.9
k 0
frequency_penalty 0
p 1
presence_penalty 0
max_tokens 250