typefile
{
"audio": "https://replicate.delivery/pbxt/MvvLnD9djueaX3u8fCEm2bptKjp6j1DXIRB1MFncD9ZGxCvF/replicate-prediction-r6ns1e52whrga0cphha96k3axm.wav",
"audio_repetition_penalty": 1,
"audio_repetition_window_size": 64,
"audio_temperature": 0.8,
"audio_top_k": 10,
"output_type": "both",
"return_json": true,
"text_repetition_penalty": 1,
"text_repetition_window_size": 16,
"text_temperature": 0,
"text_top_k": 5
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_UKh**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zsxkib/kimi-audio-7b-instruct using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zsxkib/kimi-audio-7b-instruct:7500b32387695e89da3d09271850319ba027969f0c714dfc226361609ff29f2b",
{
input: {
audio: "https://replicate.delivery/pbxt/MvvLnD9djueaX3u8fCEm2bptKjp6j1DXIRB1MFncD9ZGxCvF/replicate-prediction-r6ns1e52whrga0cphha96k3axm.wav",
audio_repetition_penalty: 1,
audio_repetition_window_size: 64,
audio_temperature: 0.8,
audio_top_k: 10,
output_type: "both",
return_json: true,
text_repetition_penalty: 1,
text_repetition_window_size: 16,
text_temperature: 0,
text_top_k: 5
}
}
);
console.log(output);
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_UKh**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/kimi-audio-7b-instruct using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/kimi-audio-7b-instruct:7500b32387695e89da3d09271850319ba027969f0c714dfc226361609ff29f2b",
input={
"audio": "https://replicate.delivery/pbxt/MvvLnD9djueaX3u8fCEm2bptKjp6j1DXIRB1MFncD9ZGxCvF/replicate-prediction-r6ns1e52whrga0cphha96k3axm.wav",
"audio_repetition_penalty": 1,
"audio_repetition_window_size": 64,
"audio_temperature": 0.8,
"audio_top_k": 10,
"output_type": "both",
"return_json": True,
"text_repetition_penalty": 1,
"text_repetition_window_size": 16,
"text_temperature": 0,
"text_top_k": 5
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_UKh**********************************
This is your API token. Keep it to yourself.
Run zsxkib/kimi-audio-7b-instruct 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 $'{
"version": "zsxkib/kimi-audio-7b-instruct:7500b32387695e89da3d09271850319ba027969f0c714dfc226361609ff29f2b",
"input": {
"audio": "https://replicate.delivery/pbxt/MvvLnD9djueaX3u8fCEm2bptKjp6j1DXIRB1MFncD9ZGxCvF/replicate-prediction-r6ns1e52whrga0cphha96k3axm.wav",
"audio_repetition_penalty": 1,
"audio_repetition_window_size": 64,
"audio_temperature": 0.8,
"audio_top_k": 10,
"output_type": "both",
"return_json": true,
"text_repetition_penalty": 1,
"text_repetition_window_size": 16,
"text_temperature": 0,
"text_top_k": 5
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Object output with 2 properties
I'm just an AI, I don't have feelings or experiences, so I don't have good or bad days. But I'm always here to help you with your questions and tasks!
{
"id": "zjseryqh7hrma0cphhabp2cgm8",
"model": "zsxkib/kimi-audio-7b-instruct",
"version": "7500b32387695e89da3d09271850319ba027969f0c714dfc226361609ff29f2b",
"input": {
"audio": "https://replicate.delivery/pbxt/MvvLnD9djueaX3u8fCEm2bptKjp6j1DXIRB1MFncD9ZGxCvF/replicate-prediction-r6ns1e52whrga0cphha96k3axm.wav",
"audio_repetition_penalty": 1,
"audio_repetition_window_size": 64,
"audio_temperature": 0.8,
"audio_top_k": 10,
"output_type": "both",
"return_json": true,
"text_repetition_penalty": 1,
"text_repetition_window_size": 16,
"text_temperature": 0,
"text_top_k": 5
},
"logs": "Generating tokens: 0%| | 0/1463 [00:00<?, ?it/s]\nGenerating tokens: 0%| | 4/1463 [00:00<00:45, 32.39it/s]\nGenerating tokens: 1%| | 8/1463 [00:00<00:43, 33.64it/s]\nGenerating tokens: 1%| | 12/1463 [00:00<00:42, 34.09it/s]\nGenerating tokens: 1%| | 16/1463 [00:00<00:42, 34.31it/s]\nGenerating tokens: 1%|▏ | 20/1463 [00:00<00:41, 34.45it/s]\nGenerating tokens: 2%|▏ | 24/1463 [00:00<00:41, 34.53it/s]\nGenerating tokens: 2%|▏ | 28/1463 [00:00<00:41, 34.59it/s]\nGenerating tokens: 2%|▏ | 32/1463 [00:00<00:41, 34.62it/s]\nGenerating tokens: 2%|▏ | 36/1463 [00:01<00:41, 34.63it/s]\nGenerating tokens: 3%|▎ | 40/1463 [00:01<00:41, 34.63it/s]\nGenerating tokens: 3%|▎ | 44/1463 [00:01<00:40, 34.62it/s]\nGenerating tokens: 3%|▎ | 48/1463 [00:01<00:40, 34.61it/s]\nGenerating tokens: 4%|▎ | 52/1463 [00:01<00:40, 34.62it/s]\nGenerating tokens: 4%|▍ | 56/1463 [00:01<00:40, 34.61it/s]\nGenerating tokens: 4%|▍ | 60/1463 [00:01<00:40, 34.63it/s]\nGenerating tokens: 4%|▍ | 64/1463 [00:01<00:40, 34.61it/s]\nGenerating tokens: 5%|▍ | 68/1463 [00:01<00:40, 34.58it/s]\nGenerating tokens: 5%|▍ | 72/1463 [00:02<00:40, 34.56it/s]\nGenerating tokens: 5%|▌ | 76/1463 [00:02<00:40, 34.57it/s]\nGenerating tokens: 5%|▌ | 80/1463 [00:02<00:40, 34.55it/s]\nGenerating tokens: 6%|▌ | 84/1463 [00:02<00:39, 34.55it/s]\nGenerating tokens: 6%|▌ | 88/1463 [00:02<00:39, 34.56it/s]\nGenerating tokens: 6%|▋ | 92/1463 [00:02<00:39, 34.58it/s]\nGenerating tokens: 7%|▋ | 96/1463 [00:02<00:39, 34.57it/s]\nGenerating tokens: 7%|▋ | 100/1463 [00:02<00:39, 34.54it/s]\nGenerating tokens: 7%|▋ | 104/1463 [00:03<00:39, 34.54it/s]\nGenerating tokens: 7%|▋ | 108/1463 [00:03<00:39, 34.53it/s]\nGenerating tokens: 8%|▊ | 112/1463 [00:03<00:39, 34.51it/s]\nGenerating tokens: 8%|▊ | 116/1463 [00:03<00:39, 34.52it/s]\nGenerating tokens: 8%|▊ | 120/1463 [00:03<00:38, 34.53it/s]\nGenerating tokens: 8%|▊ | 124/1463 [00:03<00:38, 34.54it/s]\nGenerating tokens: 9%|▊ | 128/1463 [00:03<00:38, 34.55it/s]\nGenerating tokens: 9%|▉ | 132/1463 [00:03<00:38, 34.54it/s]\nGenerating tokens: 9%|▉ | 132/1463 [00:03<00:38, 34.25it/s]\nWritten output to /tmp/output/output.wav\n>>> output text: I'm just an AI, I don't have feelings or experiences, so I don't have good or bad days. But I'm always here to help you with your questions and tasks!\nWritten output to /tmp/output/output.txt",
"output": {
"json_str": "I'm just an AI, I don't have feelings or experiences, so I don't have good or bad days. But I'm always here to help you with your questions and tasks!",
"media_path": "https://replicate.delivery/xezq/y6NyEvrmX47HCN7y4HtEAvxNwdcHI7Pk2vwv3l28O0Bg8EKF/output.wav"
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-01T14:51:39.196Z",
"started_at": "2025-05-01T14:51:39.201892Z",
"completed_at": "2025-05-01T14:51:44.698871Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/zjseryqh7hrma0cphhabp2cgm8/cancel",
"get": "https://api.replicate.com/v1/predictions/zjseryqh7hrma0cphhabp2cgm8",
"web": "https://replicate.com/p/zjseryqh7hrma0cphhabp2cgm8"
},
"metrics": {
"predict_time": 5.496979472,
"total_time": 5.502871
}
}