Skip to content

swlkr/replicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replicate

A zero dep ruby client for replicate

Installation

Add this to your Gemfile:

gem 'replicate', '0.1.0', github: 'swlkr/replicate'

Usage

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/..."

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages