typefile
{
"audio_file": "https://replicate.delivery/pbxt/K5zuJ6HCdsffhegX0JZwDl10qm7fYAh5txe0FZc7XFccpdtm/kingnobelbig.mp4",
"language": "en",
"temperature": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_7hS**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run openai/gpt-4o-transcribe using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
audio_file: "https://replicate.delivery/pbxt/K5zuJ6HCdsffhegX0JZwDl10qm7fYAh5txe0FZc7XFccpdtm/kingnobelbig.mp4",
language: "en",
temperature: 0
};
for await (const event of replicate.stream("openai/gpt-4o-transcribe", { input })) {
process.stdout.write(event.toString());
};
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_7hS**********************************
This is your API token. Keep it to yourself.
import replicate
Run openai/gpt-4o-transcribe using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
# The openai/gpt-4o-transcribe model can stream output as it's running.
for event in replicate.stream(
"openai/gpt-4o-transcribe",
input={
"audio_file": "https://replicate.delivery/pbxt/K5zuJ6HCdsffhegX0JZwDl10qm7fYAh5txe0FZc7XFccpdtm/kingnobelbig.mp4",
"language": "en",
"temperature": 0
},
):
print(str(event), end="")
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_7hS**********************************
This is your API token. Keep it to yourself.
Run openai/gpt-4o-transcribe using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"audio_file": "https://replicate.delivery/pbxt/K5zuJ6HCdsffhegX0JZwDl10qm7fYAh5txe0FZc7XFccpdtm/kingnobelbig.mp4",
"language": "en",
"temperature": 0
}
}' \
https://api.replicate.com/v1/models/openai/gpt-4o-transcribe/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
I refuse to accept the idea that man is mere flotsam and jetsam in the river of life, unable to influence the unfolding events which surround him. I refuse to accept the view that mankind is so tragically bound to the starless midnight of racism and war that the bright daybreak of peace and brotherhood can never become a reality. I refuse to accept the cynical notion that nation after nation must spiral down a militaristic stairway into the hell of nuclear annihilation.
{
"id": "eb25ct45wxrmc0cpxshtdf4jgw",
"model": "openai/gpt-4o-transcribe",
"version": "hidden",
"input": {
"audio_file": "https://replicate.delivery/pbxt/K5zuJ6HCdsffhegX0JZwDl10qm7fYAh5txe0FZc7XFccpdtm/kingnobelbig.mp4",
"language": "en",
"temperature": 0
},
"logs": "Input audio duration: 49.157 seconds\nInput token count: 819\nOutput token count: 97\nTotal token count: 916\nTTFT: 3.95s",
"output": [
"I",
" refuse",
" to",
" accept",
" the",
" idea",
" that",
" man",
" is",
" mere",
" fl",
"ots",
"am",
" and",
" jets",
"am",
" in",
" the",
" river",
" of",
" life",
",",
" unable",
" to",
" influence",
" the",
" unfolding",
" events",
" which",
" surround",
" him",
".",
" I",
" refuse",
" to",
" accept",
" the",
" view",
" that",
" mankind",
" is",
" so",
" trag",
"ically",
" bound",
" to",
" the",
" star",
"less",
" midnight",
" of",
" racism",
" and",
" war",
" that",
" the",
" bright",
" day",
"break",
" of",
" peace",
" and",
" brother",
"hood",
" can",
" never",
" become",
" a",
" reality",
".",
" I",
" refuse",
" to",
" accept",
" the",
" cynical",
" notion",
" that",
" nation",
" after",
" nation",
" must",
" spiral",
" down",
" a",
" militar",
"istic",
" stair",
"way",
" into",
" the",
" hell",
" of",
" nuclear",
" annih",
"ilation",
"."
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-20T15:50:21.927Z",
"started_at": "2025-05-20T15:50:21.932045Z",
"completed_at": "2025-05-20T15:50:26.710202Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/eb25ct45wxrmc0cpxshtdf4jgw/cancel",
"get": "https://api.replicate.com/v1/predictions/eb25ct45wxrmc0cpxshtdf4jgw",
"stream": "https://stream-b.svc.ric1.c.replicate.net/v1/streams/k4itpmb3jyrzag4wsbu6he3hujuvlru3jg5zweespvlikbaal4jq",
"web": "https://replicate.com/p/eb25ct45wxrmc0cpxshtdf4jgw"
},
"metrics": {
"input_token_count": 819,
"output_token_count": 97,
"predict_time": 4.778156903,
"time_to_first_token": 0.313115119,
"tokens_per_second": 21.699802417079873,
"total_time": 4.783202
}
}