Content Shortener
Shorten text content to reach target word count using various AI models through the 1min.AI API. This endpoint supports multiple language models for shortening 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 | CONTENT_SHORTENER | Feature name | ✔️ |
| model | text | See available models | Model identifier | ✔️ |
| conversationId | text | CONTENT_SHORTENER | Conversation ID | ✔️ |
| promptObject.tone | string | informative | Tone of shortened content | ✔️ |
| promptObject.numberOfWord | number | 20 | Target word count | ✔️ |
| promptObject.prompt | string | Artificial Intelligence (AI) is a rapidly evolving field... | Text to shorten | ✔️ |
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": "CONTENT_SHORTENER",
"model": "gpt-4o",
"conversationId": "CONTENT_SHORTENER",
"promptObject": {
"tone": "informative",
"numberOfWord": 20,
"prompt": "Artificial Intelligence (AI) is a rapidly evolving field that encompasses machine learning, natural language processing, computer vision, and robotics. AI systems are designed to perform tasks that typically require human intelligence, such as problem-solving, decision-making, and pattern recognition."
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'CONTENT_SHORTENER',
model: 'gpt-4o',
conversationId: 'CONTENT_SHORTENER',
promptObject: {
tone: 'informative',
numberOfWord: 20,
prompt: 'Artificial Intelligence (AI) is a rapidly evolving field that encompasses machine learning, natural language processing, computer vision, and robotics. AI systems are designed to perform tasks that typically require human intelligence, such as problem-solving, decision-making, and pattern recognition.'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "CONTENT_SHORTENER",
"model": "gpt-4o",
"conversationId": "CONTENT_SHORTENER",
"promptObject": {
"tone": "informative",
"numberOfWord": 20,
"prompt": "Artificial Intelligence (AI) is a rapidly evolving field that encompasses machine learning, natural language processing, computer vision, and robotics. AI systems are designed to perform tasks that typically require human intelligence, such as problem-solving, decision-making, and pattern recognition."
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
Try the API directly in your browser:
Loading interactive playground...
Response Format
{}