HappyHorse API Ruby SDK for RunAPI

The happyhorse ai api Ruby SDK is the language-specific package for HappyHorse on RunAPI. Use this package for text, image, reference-to-video, and edit-video workflows that need JSON request bodies, task status lookup, and consistent RunAPI errors in Ruby.

Install

gem install runapi-happyhorse

Quick start

require "runapi-happyhorse"

client = RunApi::HappyHorse::Client.new
video = client.text_to_video.run(
  model: "happyhorse-text-to-video",
  prompt: "A tiny paper horse gallops through a miniature cardboard city at night.",
  resolution: "1080p",
  aspect_ratio: "16:9",
  duration: 5
)

For image-to-video, call client.image_to_video.run with model: "happyhorse-image-to-video" and exactly one image_urls entry. For reference-to-video, call client.reference_to_video.run with model: "happyhorse-reference-to-video" and 1-9 reference_image entries. For edit-video, call client.edit_video.run with model: "happyhorse-video-edit", one video_url, and optional reference_image entries.

License

Licensed under the Apache License, Version 2.0.