Styling
Style transform
Use fine-tuned model to style text.
POST
/
style
/
transform
Copy
HttpResponse<String> response = Unirest.post("https://vaeroapi.com/v1/style/transform")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"full\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Write a blog post about Florence.\"\n }\n ],\n \"model\": \"ftm-custom-name-0b5ace7e-ffb2-43cf-8a4d-0af17bc2b1d1\",\n \"full_mode_options\": {\n \"base_model\": \"claude-3-7-sonnet-latest\",\n \"base_temperature\": 0\n },\n \"stream\": false,\n \"humanize\": 4,\n \"temperature\": 0,\n \"include_quality\": false,\n \"include_rouge\": false,\n \"include_compare_original\": false,\n \"include_distance\": false,\n \"skip_headings\": false\n}")
.asString();
Copy
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "ftm-custom-name-0b5ace7e-ffb2-43cf-8a4d-0af17bc2b1d1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The lazy dog was vaulted by a brown fox with the zoomies."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
},
"quality_analytics": {
"sentence_length_stats": {
"personalized_mean": 30.0625,
"personalized_median": 30,
"personalized_std_dev": 11.171776660406348,
"unpersonalized_mean": 22.96,
"unpersonalized_median": 22,
"unpersonalized_std_dev": 5.895625496925666,
"ground_truth_mean": 33.471471471471475,
"ground_truth_median": 31,
"ground_truth_std_dev": 18.186882625578622
},
"lexical_diversity": {
"mattr": {
"unpersonalized": 0.6798949579831932,
"personalized": 0.7728198433420366,
"ground_truth": 0.7097187431813222
},
"mtld": {
"unpersonalized": 70.3392094017094,
"personalized": 122.59154535274357,
"ground_truth": 85.00872715620727
},
"hdd": {
"unpersonalized": 0.7704132322467299,
"personalized": 0.84289309374695,
"ground_truth": 0.8476210196780126
}
},
"readability": {
"flesch_reading_ease": {
"unpersonalized": 31.21,
"personalized": 32.46,
"ground_truth": 37.07
},
"flesch_kincaid_grade": {
"unpersonalized": 14.6,
"personalized": 16.2,
"ground_truth": 16.5
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
A chat completion object.
The response is of type object
.
Copy
HttpResponse<String> response = Unirest.post("https://vaeroapi.com/v1/style/transform")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"full\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Write a blog post about Florence.\"\n }\n ],\n \"model\": \"ftm-custom-name-0b5ace7e-ffb2-43cf-8a4d-0af17bc2b1d1\",\n \"full_mode_options\": {\n \"base_model\": \"claude-3-7-sonnet-latest\",\n \"base_temperature\": 0\n },\n \"stream\": false,\n \"humanize\": 4,\n \"temperature\": 0,\n \"include_quality\": false,\n \"include_rouge\": false,\n \"include_compare_original\": false,\n \"include_distance\": false,\n \"skip_headings\": false\n}")
.asString();
Copy
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "ftm-custom-name-0b5ace7e-ffb2-43cf-8a4d-0af17bc2b1d1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The lazy dog was vaulted by a brown fox with the zoomies."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
},
"quality_analytics": {
"sentence_length_stats": {
"personalized_mean": 30.0625,
"personalized_median": 30,
"personalized_std_dev": 11.171776660406348,
"unpersonalized_mean": 22.96,
"unpersonalized_median": 22,
"unpersonalized_std_dev": 5.895625496925666,
"ground_truth_mean": 33.471471471471475,
"ground_truth_median": 31,
"ground_truth_std_dev": 18.186882625578622
},
"lexical_diversity": {
"mattr": {
"unpersonalized": 0.6798949579831932,
"personalized": 0.7728198433420366,
"ground_truth": 0.7097187431813222
},
"mtld": {
"unpersonalized": 70.3392094017094,
"personalized": 122.59154535274357,
"ground_truth": 85.00872715620727
},
"hdd": {
"unpersonalized": 0.7704132322467299,
"personalized": 0.84289309374695,
"ground_truth": 0.8476210196780126
}
},
"readability": {
"flesch_reading_ease": {
"unpersonalized": 31.21,
"personalized": 32.46,
"ground_truth": 37.07
},
"flesch_kincaid_grade": {
"unpersonalized": 14.6,
"personalized": 16.2,
"ground_truth": 16.5
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.