Short Speech - Speech to Text
Transcribe short-form speech audio with fast processing for brief content.
Endpoint
Authentication
Field | Value |
---|---|
API-KEY | <api-key> |
Content-Type | application/json |
Request Parameters
Parameter | Type | Supported Value | Description | Required |
---|---|---|---|---|
type | string | SPEECH_TO_TEXT | Feature name | ✔️ |
model | string | latest_short | Model name | ✔️ |
promptObject.audioUrl | string | Path to audio file | ✔️ | |
promptObject.language | string | en-US | Language code for transcription | ✔️ |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "SPEECH_TO_TEXT",
"model": "latest_short",
"promptObject": {
"audioUrl": "development/audios/2025_02_20_16_26_08_652_New_Recording.m4a",
"language": "en-US"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'SPEECH_TO_TEXT',
model: 'latest_short',
promptObject: {
audioUrl: 'development/audios/2025_02_20_16_26_08_652_New_Recording.m4a',
language: 'en-US'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "SPEECH_TO_TEXT",
"model": "latest_short",
"promptObject": {
"audioUrl": "development/audios/2025_02_20_16_26_08_652_New_Recording.m4a",
"language": "en-US"
}
}
response = requests.post(url, headers=headers, json=data)
Response
{}