Content Translator
Translate content between languages using various AI models through the 1min.AI API. This endpoint supports multiple language models for translating content with specified tone, domain, and writing style 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_TRANSLATOR | Feature name | ✔️ |
| model | text | See available models | Model identifier | ✔️ |
| conversationId | text | CONTENT_TRANSLATOR | Conversation ID | ✔️ |
| promptObject.originalLanguage | string | en | Source language ISO code | ✔️ |
| promptObject.targetLanguage | string | es | Target language ISO code | ✔️ |
| promptObject.tone | string | friendly | Translation tone | ✔️ |
| promptObject.domain | string | Technology & Computing | Content domain | ✔️ |
| promptObject.writingStyle | string | Conversational | Writing style | ✔️ |
| promptObject.prompt | string | Hello, how are you today? I hope you're having a wonderful day! | Content to translate | ✔️ |
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_TRANSLATOR",
"model": "gpt-4o",
"conversationId": "CONTENT_TRANSLATOR",
"promptObject": {
"originalLanguage": "en",
"targetLanguage": "es",
"tone": "friendly",
"domain": "Technology & Computing",
"writingStyle": "Conversational",
"prompt": "Hello, how are you today? I hope you'''re having a wonderful day!"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'CONTENT_TRANSLATOR',
model: 'gpt-4o',
conversationId: 'CONTENT_TRANSLATOR',
promptObject: {
originalLanguage: 'en',
targetLanguage: 'es',
tone: 'friendly',
domain: 'Technology & Computing',
writingStyle: 'Conversational',
prompt: 'Hello, how are you today? I hope you\'re having a wonderful day!'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "CONTENT_TRANSLATOR",
"model": "gpt-4o",
"conversationId": "CONTENT_TRANSLATOR",
"promptObject": {
"originalLanguage": "en",
"targetLanguage": "es",
"tone": "friendly",
"domain": "Technology & Computing",
"writingStyle": "Conversational",
"prompt": "Hello, how are you today? I hope you're having a wonderful day!"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
Try the API directly in your browser:
Loading interactive playground...
Response Format
{}