Run hexiaochun/video2mp3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"hexiaochun/video2mp3:af143509b7803857e584a9f43f254bc7f1865e96398bbf3cf99f8dfbeebdb959",
input={
"video": "https://coze-tmp-file.oss-cn-shenzhen.aliyuncs.com/2024-06-06/test.mp4"
}
)
# To access the file URL:print(output.url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output.read())
This model is not yet booted but ready for API calls. Your first API call will boot the model and may take longer, but after that subsequent responses will be fast.
This model runs on CPU hardware which costs $0.0001 per second