Rewriter
Rewrite text content using various AI models through the 1min.AI API. This endpoint supports multiple language models for rewriting content with specified tone and word count parameters.
Available Models
Loading available models...
Request Parameters
All models share the same request structure:
| Field Name | Type | Supported Value | Description | Required |
|---|---|---|---|---|
| type | text | REWRITER | Feature name | ✔️ |
| model | text | See available models | Model identifier | ✔️ |
| conversationId | text | REWRITER | Conversation ID | ✔️ |
| promptObject.tone | string | informative | Tone of rewrite | ✔️ |
| promptObject.numberOfWord | number | 10 | Number of words | ✔️ |
| promptObject.prompt | string | orange | Text to rewrite | ✔️ |
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Code Example
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "REWRITER",
"model": "gpt-4o",
"conversationId": "REWRITER",
"promptObject": {
"tone": "informative",
"numberOfWord": 10,
"prompt": "The cat is orange"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'REWRITER',
model: 'gpt-4o',
conversationId: 'REWRITER',
promptObject: {
tone: 'informative',
numberOfWord: 10,
prompt: 'The cat is orange'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "REWRITER",
"model": "gpt-4o",
"conversationId": "REWRITER",
"promptObject": {
"tone": "informative",
"numberOfWord": 10,
"prompt": "The cat is orange"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
Try the API directly in your browser:
Loading interactive playground...
Response Format
{}