Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
andreasjansson /synth-one-liner:22869a12
This version has been disabled because it consistently fails to complete setup.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run andreasjansson/synth-one-liner using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"andreasjansson/synth-one-liner:22869a120d3f509488d2917210b96db58dbf16cf0dbd77e506dac3e0bdab24bf",
{
input: {
duration: 20
}
}
);
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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run andreasjansson/synth-one-liner using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/synth-one-liner:22869a120d3f509488d2917210b96db58dbf16cf0dbd77e506dac3e0bdab24bf",
input={
"duration": 20
}
)
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=<paste-your-token-here>
Find your API token in your account settings.
Run andreasjansson/synth-one-liner 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": "andreasjansson/synth-one-liner:22869a120d3f509488d2917210b96db58dbf16cf0dbd77e506dac3e0bdab24bf",
"input": {
"duration": 20
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
audio
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
sample_expression
{
"completed_at": "2023-09-18T02:00:56.175101Z",
"created_at": "2023-09-18T02:00:54.251690Z",
"data_removed": false,
"error": null,
"id": "3vs52atbshfdpbdpzg7k2cnk7a",
"input": {
"duration": 20
},
"logs": "Llama.generate: prefix-match hit\nllama_print_timings: load time = 295.05 ms\nllama_print_timings: sample time = 271.52 ms / 29 runs ( 9.36 ms per token, 106.81 tokens per second)\nllama_print_timings: prompt eval time = 0.00 ms / 1 tokens ( 0.00 ms per token, inf tokens per second)\nllama_print_timings: eval time = 499.29 ms / 29 runs ( 17.22 ms per token, 58.08 tokens per second)\nllama_print_timings: total time = 832.57 ms",
"metrics": {
"predict_time": 1.933731,
"total_time": 1.923411
},
"output": {
"audio": "https://replicate.delivery/pbxt/yZtVTecjSB34NSPOPcZXIDW6PAZ61xTsBeO3zydYoxOXFWlRA/out.wav",
"sample_expression": "sample=t*(((t>>9)|(t>>13))&(25&(t>>6)))"
},
"started_at": "2023-09-18T02:00:54.241370Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/3vs52atbshfdpbdpzg7k2cnk7a",
"cancel": "https://api.replicate.com/v1/predictions/3vs52atbshfdpbdpzg7k2cnk7a/cancel"
},
"version": "22869a120d3f509488d2917210b96db58dbf16cf0dbd77e506dac3e0bdab24bf"
}
Llama.generate: prefix-match hit
llama_print_timings: load time = 295.05 ms
llama_print_timings: sample time = 271.52 ms / 29 runs ( 9.36 ms per token, 106.81 tokens per second)
llama_print_timings: prompt eval time = 0.00 ms / 1 tokens ( 0.00 ms per token, inf tokens per second)
llama_print_timings: eval time = 499.29 ms / 29 runs ( 17.22 ms per token, 58.08 tokens per second)
llama_print_timings: total time = 832.57 ms