curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "audio-to-subtitles",
"input": {
"model": "whisper-subtitles",
"audio_url": "https://example.com/my-audio.mp3",
"format": "srt"
}
}'
const response = await fetch('https://api.artificialstudio.ai/api/run', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
body: JSON.stringify({
tool: 'audio-to-subtitles',
input: {
model: 'whisper-subtitles',
audio_url: 'https://example.com/my-audio.mp3',
format: 'srt'
}
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.artificialstudio.ai/api/run',
headers={
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
json={
'tool': 'audio-to-subtitles',
'input': {
'model': 'whisper-subtitles',
'audio_url': 'https://example.com/my-audio.mp3',
'format': 'srt'
}
}
)
data = response.json()
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "audio-to-subtitles",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Missing or invalid parameters"
}
{
"message": "Invalid or missing API key"
}
{
"message": "You do not have enough credits to perform this action"
}
{
"message": "Too many API requests, please try again later"
}
Text
Whisper Subtitles
Generate subtitles from audio using OpenAI Whisper.
POST
/
api
/
run
curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "audio-to-subtitles",
"input": {
"model": "whisper-subtitles",
"audio_url": "https://example.com/my-audio.mp3",
"format": "srt"
}
}'
const response = await fetch('https://api.artificialstudio.ai/api/run', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
body: JSON.stringify({
tool: 'audio-to-subtitles',
input: {
model: 'whisper-subtitles',
audio_url: 'https://example.com/my-audio.mp3',
format: 'srt'
}
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.artificialstudio.ai/api/run',
headers={
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
json={
'tool': 'audio-to-subtitles',
'input': {
'model': 'whisper-subtitles',
'audio_url': 'https://example.com/my-audio.mp3',
'format': 'srt'
}
}
)
data = response.json()
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "audio-to-subtitles",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Missing or invalid parameters"
}
{
"message": "Invalid or missing API key"
}
{
"message": "You do not have enough credits to perform this action"
}
{
"message": "Too many API requests, please try again later"
}
| Credits | 1 credit per second |
| Tool | audio-to-subtitles |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Your API key |
Content-Type | string | Yes | application/json |
Body
| Parameter | Type | Required | Description |
|---|---|---|---|
tool | string | Yes | audio-to-subtitles |
input.model | string | Yes | whisper-subtitles |
input.audio_url | string | Yes | URL of the audio file |
input.format | string | No | Subtitle format. Options: srt, vtt (default: srt) |
curl -X POST https://api.artificialstudio.ai/api/run \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{
"tool": "audio-to-subtitles",
"input": {
"model": "whisper-subtitles",
"audio_url": "https://example.com/my-audio.mp3",
"format": "srt"
}
}'
const response = await fetch('https://api.artificialstudio.ai/api/run', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
body: JSON.stringify({
tool: 'audio-to-subtitles',
input: {
model: 'whisper-subtitles',
audio_url: 'https://example.com/my-audio.mp3',
format: 'srt'
}
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.artificialstudio.ai/api/run',
headers={
'Content-Type': 'application/json',
'Authorization': 'YOUR_API_KEY'
},
json={
'tool': 'audio-to-subtitles',
'input': {
'model': 'whisper-subtitles',
'audio_url': 'https://example.com/my-audio.mp3',
'format': 'srt'
}
}
)
data = response.json()
{
"id": "507f1f77bcf86cd799439011",
"status": "processing",
"tool": "audio-to-subtitles",
"createdAt": "2024-01-15T10:30:00.000Z"
}
{
"message": "Missing or invalid parameters"
}
{
"message": "Invalid or missing API key"
}
{
"message": "You do not have enough credits to perform this action"
}
{
"message": "Too many API requests, please try again later"
}
⌘I