Integrate Metric37's text transformation into your applications
curl https://api.metric37.com/v1/humanize \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Your AI-generated text here",
"tone": "conversational",
"formality": "balanced"
}'All API requests require authentication. Include your API key in the X-API-Key header:
X-API-Key: YOUR_API_KEYKeep your API key secure
Never expose your API key in client-side code or public repositories.
/v1/humanizeTransform AI-generated text into natural, human-sounding prose.
{
"text": "string (required) - The text to humanize",
"tone": "string (optional) - conversational | professional | friendly | casual | formal",
"formality": "string (optional) - very-casual | casual | balanced | formal | very-formal",
"creativity": "string (optional) - conservative | moderate | creative | very-creative"
}{
"success": true,
"data": {
"original_text": "Your original text",
"humanized_text": "The transformed, human-sounding text",
"word_count": 42,
"processing_time_ms": 1234
},
"usage": {
"words_used": 42,
"words_remaining": 4958
}
}const response = await fetch('https://api.metric37.com/v1/humanize', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
text: 'The implementation requires utilization of advanced processes.',
tone: 'conversational',
formality: 'balanced',
creativity: 'moderate'
})
});
const data = await response.json();
console.log(data.data.humanized_text);
// Output: "To implement this, we'll use advanced processes."/v1/usageCheck your current API usage and remaining quota.
{
"success": true,
"data": {
"plan": "Pro",
"words_limit": 50000,
"words_used": 12450,
"words_remaining": 37550,
"reset_date": "2026-03-01T00:00:00Z"
}
}Rate limit headers: Each response includes X-RateLimit-Limit and X-RateLimit-Remaining headers.
Bad Request
Invalid request parameters
Unauthorized
Missing or invalid API key
Payment Required
Insufficient credits or quota exceeded
Too Many Requests
Rate limit exceeded
Internal Server Error
Server error, please retry
{
"success": false,
"error": {
"code": "invalid_request",
"message": "Text parameter is required",
"details": {
"field": "text",
"issue": "missing_required_field"
}
}
}