Skip to content

Rewrite

Premium · 5 credits

Rewrite text to match a target style while preserving the original meaning.

FieldTypeRequiredDescription
textstringYesText to rewrite
targetstringYesformal, casual, concise, expanded, simplified, technical, friendly, persuasive
FieldTypeDescription
rewrittenstringRewritten text
target_appliedstringTarget style applied
original_tonestringDetected tone of the original
Terminal window
curl -X POST https://morso.dev/api/rewrite \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Hey, just wanted to check if you got the thing I sent over yesterday?", "target": "formal"}'
{
"rewritten": "I am writing to confirm whether you have received the document I forwarded yesterday.",
"target_applied": "formal",
"original_tone": "casual"
}
Terminal window
curl -X POST https://morso.dev/api/rewrite \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "In the event that you find yourself in a situation where you need to make a determination about the best course of action to take going forward, please do not hesitate to reach out.", "target": "concise"}'
{
"rewritten": "If you need help deciding next steps, reach out.",
"target_applied": "concise",
"original_tone": "formal"
}
Terminal window
curl -X POST https://morso.dev/api/rewrite \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "The implementation leverages a microservices architecture with event-driven communication patterns.", "target": "simplified"}'
{
"rewritten": "The system is built from small, independent services that communicate by sending events to each other.",
"target_applied": "simplified",
"original_tone": "technical"
}