The project is in a healthy, maintained state
The happyhorse ai api Ruby SDK is the language-specific package for HappyHorse on RunAPI. Use this package for text, image, and edit-video workflows that need JSON request bodies, task status lookup, and consistent RunAPI errors in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.2.5
 Project Readme

RunAPI

HappyHorse API SDKs for JavaScript, Ruby, and Go on RunAPI.

npm RubyGems Go Reference License


The happyhorse ai api SDK packages JavaScript, Ruby, and Go clients for HappyHorse on RunAPI. Use this happyhorse ai api SDK for text, image, and edit-video workflows that need typed installs, JSON request bodies, task polling, and consistent RunAPI errors across services.

HappyHorse belongs to the Alibaba catalog on RunAPI. The public model page is https://runapi.ai/models/happyhorse. The public happyhorse-sdk repository groups the JavaScript, Ruby, and Go packages for this model.

Install

npm install @runapi.ai/happyhorse
gem install runapi-happyhorse
go get github.com/runapi-ai/happyhorse-sdk/go@latest

JavaScript Quick Start

import { HappyHorseClient } from '@runapi.ai/happyhorse';

const client = new HappyHorseClient();

const task = await client.textToVideo.create({
  model: 'happyhorse-character',
  prompt: 'Character1 walks through a paper city and waves at character2.',
  reference_image_urls: [
    'https://cdn.runapi.ai/public/samples/reference-1.jpg',
    'https://cdn.runapi.ai/public/samples/reference-2.jpg',
  ],
  output_resolution: '1080p',
  aspect_ratio: '16:9',
  duration_seconds: 5,
});

const status = await client.textToVideo.get(task.id);

Image-to-Video

const imageTask = await client.imageToVideo.create({
  model: 'happyhorse-image-to-video',
  first_frame_image_url: 'https://cdn.runapi.ai/public/samples/image-to-video.jpg',
  prompt: 'Bring the still frame to life with a gentle cinematic camera move.',
  output_resolution: '1080p',
  duration_seconds: 5,
});

const imageStatus = await client.imageToVideo.get(imageTask.id);

Edit Video

const editTask = await client.editVideo.create({
  model: 'happyhorse-edit-video',
  prompt: 'Make the horse-headed character wear the striped sweater from the reference image.',
  source_video_url: 'https://cdn.runapi.ai/public/samples/video.mp4',
  reference_image_urls: [
    'https://cdn.runapi.ai/public/samples/reference-1.jpg',
  ],
  output_resolution: '1080p',
  audio_setting: 'auto',
});

const editStatus = await client.editVideo.get(editTask.id);

Public Links

License

Licensed under the Apache License, Version 2.0.