Rewrite given text according to given mode. You can choose to rewrite the text in a different voice, style, or tone.
CURL
curl -H 'content-type: application/json'
-H 'Accept: application/json'
-H 'api-key: your-key'
-X POST https://www.learnitive.com/api/v1/rewritings
--data '{"input": "BMW, is a German multinational manufacturer of luxury vehicles and .. Bavaria was founded in 1916",
"model":"balanced",
"mode":"voice_passive",
"max_tokens":"256",
"temperature":".65"
}'
Example output.
{
"success": true,
"status": "success",
"message": [{
"index": 0,
"text": "In 1916, BMW founded a corporation in Munich, Bavaria to manufacture aircraft engines...",
"id":"b2f5ff95-46b2-4c92-8674-74aaa0c73839"
}]
}
Parameter
- input: string. The topic of the blog post.
- max_tokens: integer. The maximum number of tokens to generate. Default: 256
- mode: The style or tone to be used when rewriting. Allowed values: voice_passive, voice_active, tone_cheerful, tone_decisive, tone_casual, tone_gentle, tone_friendly, tone_respectful, tone_warm, tone_blunt, tone_urgent, tone_excited, tone_professional, tone_encouraging, tone_funny, tone_dramatic, tone_witty, tone_formal,tone_informal,style_creative, style_fluent, style_detailed, style_concise. Defaul: “voice_passive”.
- model: The language model to use, “fast”, “balanced”, “strong” and “expart”. Defaul: “fast”.
- emperature: number. The sampling temperature to be used in text generation. The higher the temperature, the higher the risk of the output to sound “made up”. Default: 0.65