A zero dep ruby client for replicate
Add this to your Gemfile:
gem 'replicate', '0.1.0', github: 'swlkr/replicate'require 'replicate'
Replicate.configure do |config|
config.api_token = "your_api_token"
end
client = Replicate.client
prediction = client.predict(
model: "bytedance/seedance-2.0-fast",
prompt: "A cozy cabin in a snowy forest...",
resolution: "720p"
).wait
puts prediction.output # "https://replicate.delivery/..."