Anil-matcha/HappyWan-API
概要
HappyWan 1.0 API (Happy-Wan 1.0 API), Uncensored HappyWan API & Spicy Happy-Wan API: Python client + Wan 3 / HappyHorse 1.1 / Wan 3.0 Spicy reference-to-video examples via MuAPI
デザイン・メディアできること
- Availability on MuAPI - Live - Live
- Text-to-video - wan3.0-text-to-video - happy-horse-1.1-text-to-video
- Image-to-video - wan3.0-image-to-video - happy-horse-1.1-image-to-video
- Reference-to-video - wan3.0-reference-to-video - happy-horse-1.1-reference-to-video (1–9 images)
計測したスター増加
- 24時間
- 0
- 7日間
- +2
- 15日間
- +9
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルHappyWan 1.0 API (Happy-Wan 1.0 API) — Python Client for Wan 3 and HappyHorse 1.1 Text, Image and Reference to Video
HappyWan 1.0 API (also written Happy-Wan 1.0 API, HappyWan API or Happy Wan 1.0 API) is available now on MuAPI: dedicated HappyWan text-, image- and reference-to-video endpoints with up to 50 references and clips up to 45 seconds, alongside the Wan 3.0 and HappyHorse 1.1 model families they build on. This repository is a working Python client, a Node example and copy-paste cURL requests for all of them. MuAPI is asynchronous: every job returns a
request_id, and you poll for the finished video.
Related Projects
- HappyWan 1.0 API (Happy-Wan 1.0 API) on MuAPI — HappyWan text, image and reference to video (up to 50 references, 45-second clips), plus Wan 3 and HappyHorse 1.1.
- Wan 3 API — live Wan 3.0 text, image and reference video models.
- HappyHorse 1.1 API — live text, image, reference and video-edit endpoints with 720p and 1080p tiers.
- HappyWan ComfyUI nodes, HappyWan n8n node and HappyWan MCP server — the same HappyWan API workflow in ComfyUI, n8n and MCP clients.
- HappyWan Spicy API — high-intensity Wan 3.0 Spicy tier.
- MuAPI API reference
- MuAPI API keys
What is the HappyWan API?
HappyWan combines the Wan family (Alibaba) with HappyHorse: its quality sits between Seedance 2.0 and 2.5 at a fair price. On MuAPI you use it through live endpoints:
| Capability | Endpoint |
|---|---|
| HappyWan text-to-video (up to 45 s) | happywan-text-to-video |
| HappyWan image-to-video (up to 45 s) | happywan-image-to-video |
| HappyWan reference-to-video (up to 50 references, up to 45 s) | happywan-reference-to-video |
| Wan 3.0 text-to-video | wan3.0-text-to-video |
| Wan 3.0 image-to-video | wan3.0-image-to-video |
| Wan 3.0 reference-to-video | wan3.0-reference-to-video |
| HappyHorse 1.1 text-to-video | happy-horse-1.1-text-to-video |
| HappyHorse 1.1 image-to-video | happy-horse-1.1-image-to-video |
| HappyHorse 1.1 reference-to-video (1–9 images) | happy-horse-1.1-reference-to-video |
| Availability on MuAPI | Live |
HappyWan Spicy & Uncensored HappyWan API (Happy-Wan Spicy)
Looking for an uncensored HappyWan API or HappyWan Spicy API? On MuAPI, "Spicy" is the high-intensity tier: bolder contrast, stronger motion and more dramatic scenes. The Spicy tier for the HappyWan workflow is Wan 3.0 Spicy, live now with text, image and reference inputs (HappyHorse 1.1 has no Spicy tier):
| Endpoint | Input |
|---|---|
wan3.0-spicy-text-to-video |
Text prompt |
wan3.0-spicy-image-to-video |
Start image + prompt |
wan3.0-spicy-reference-to-video |
Reference images / videos / audio + prompt |
Use the same submit-and-poll flow as the standard endpoints; only the model route changes. Details: Wan Spicy API on MuAPI.
Content policy: Spicy is a separate model tier, not a moderation bypass and not an anything-goes endpoint. Output must comply with MuAPI's terms and applicable law. Do not generate content involving minors, non-consensual imagery or other prohibited material.
Keywords: HappyWan API, Happy-Wan API, HappyWan Spicy, uncensored HappyWan, uncensored Happy-Wan API, spicy AI video API, uncensored AI video generator API.
Wan 3.0 vs HappyHorse 1.1 (what you can use today)
| Wan 3.0 | HappyHorse 1.1 | |
|---|---|---|
| Availability on MuAPI | Live | Live |
| Text-to-video | wan3.0-text-to-video |
happy-horse-1.1-text-to-video |
| Image-to-video | wan3.0-image-to-video |
happy-horse-1.1-image-to-video |
| Reference-to-video | wan3.0-reference-to-video |
happy-horse-1.1-reference-to-video (1–9 images) |
| Video editing | — | happy-horse-1.1-video-edit |
| Resolution | Up to 1080p | 720p or 1080p |
| Pricing | Pay per second, see Wan 3 API | $0.14/sec (720p), $0.18/sec (1080p); edits billed on input duration |
Current pricing and limits live on the model pages above; check them before budgeting.
HappyWan text, image and reference to video
from happywan_api import HappyWanAPI
api = HappyWanAPI()
job = api.happywan_reference_to_video(
prompt="The same character walks through a neon market at night",
images_list=["https://example.com/character.jpg"], # up to 50 references
duration=30, # up to 45 seconds
resolution="720p",
)
print(api.wait_for_completion(job["request_id"]))
curl -X POST "https://api.muapi.ai/api/v1/happywan-reference-to-video" \
-H "x-api-key: ${MUAPI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The same character walks through a neon market at night",
"images_list": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"duration": 30,
"resolution": "720p"
}'
Features
- HappyWan text-, image- and reference-to-video (up to 50 references, up to 45-second clips).
- Wan 3.0 text-, image- and reference-to-video (reference images, videos and audio).
- HappyHorse 1.1 text-, image- and reference-to-video, plus natural-language video editing.
- A reusable Python client with task polling and error handling.
- A dependency-free Node 18+ polling example.
- Equivalent cURL requests for direct REST use.
Installation
git clone https://github.com/Anil-matcha/HappyWan-API.git
cd HappyWan-API
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export MUAPI_API_KEY="your_muapi_api_key"
The examples need Python 3.9+ and requests. You can also copy .env.example to .env and load it with your preferred environment-variable tool. Get a key at muapi.ai/access-keys.
Wan 3.0 text-to-video
python -m examples.text_to_video
from happywan_api import HappyWanAPI
api = HappyWanAPI() # Reads MUAPI_API_KEY from the environment
job = api.wan_text_to_video(
"A cinematic aerial shot of mist moving through a mountain valley at sunrise.",
resolution="720p",
duration=5,
)
print(api.wait_for_completion(job["request_id"]))
Wan 3.0 image-to-video
Wan 3.0 takes image_url and an optional last_image (end frame). HappyHorse 1.1 image-to-video takes a one-item images_list instead.
job = api.wan_image_to_video(
"https://example.com/photo.jpg",
prompt="The camera slowly pushes in as leaves drift past",
resolution="720p",
)
Wan 3.0 reference-to-video
Up to 10 images, 5 videos (MP4/MOV, 1-15 s) and 5 audio clips.
job = api.wan_reference_to_video(
"The two people from the reference images meet on the rainy street shown in the reference video.",
images_list=["https://example.com/a.jpg", "https://example.com/b.jpg"],
videos_list=["https://example.com/street.mp4"],
duration=8,
)
HappyHorse 1.1 text-to-video
job = api.happy_horse_text_to_video(
"A cinematic tracking shot through a neon market at night",
resolution="1080p",
)
HappyHorse 1.1 reference-to-video
Takes a prompt plus 1–9 public reference image URLs to keep a character or style consistent.
export MUAPI_REFERENCE_IMAGE_URL="https://example.com/character.jpg"
python -m examples.reference_to_video
job = api.reference_to_video(
prompt="The character walks through a neon market at night",
images_list=["https://example.com/character.jpg"],
duration=5,
resolution="1080p",
)
HappyHorse 1.1 image-to-video
export MUAPI_INPUT_IMAGE_URL="https://example.com/source.jpg"
python -m examples.image_to_video
HappyHorse 1.1 video edit
Describe the change in plain language. audio_setting: "origin" keeps the original audio.
export MUAPI_INPUT_VIDEO_URL="https://example.com/source.mp4"
python -m examples.video_edit
Node.js
MUAPI_API_KEY="your_muapi_api_key" node examples/poll.js
cURL
Wan 3.0 text-to-video:
curl -X POST "https://api.muapi.ai/api/v1/wan3.0-text-to-video" \
-H "x-api-key: ${MUAPI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A cinematic aerial shot of mist moving through a mountain valley at sunrise.",
"resolution": "720p",
"duration": 5
}'
HappyHorse 1.1 reference-to-video:
curl -X POST "https://api.muapi.ai/api/v1/happy-horse-1.1-reference-to-video" \
-H "x-api-key: ${MUAPI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The character walks through a neon market at night",
"images_list": ["https://example.com/character.jpg"],
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "1080p"
}'
HappyHorse 1.1 video edit:
curl -X POST "https://api.muapi.ai/api/v1/happy-horse-1.1-video-edit" \
-H "x-api-key: ${MUAPI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://example.com/source.mp4",
"prompt": "Change the background to a snowy mountain scene",
"audio_setting": "origin",
"resolution": "1080p"
}'
Every call returns a request_id. Poll until the status is completed or failed:
curl "https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result" \
-H "x-api-key: ${MUAPI_API_KEY}"
API reference
Base URL: https://api.muapi.ai/api/v1
| Workflow | Method and route | Required fields |
|---|---|---|
| HappyWan text-to-video | POST /happywan-text-to-video |
prompt |
| HappyWan image-to-video | POST /happywan-image-to-video |
images_list |
| HappyWan reference-to-video | POST /happywan-reference-to-video |
prompt, images_list (up to 50) |
| Wan 3.0 text-to-video | POST /wan3.0-text-to-video |
prompt |
| HappyHorse 1.1 text-to-video | POST /happy-horse-1.1-text-to-video |
prompt |
| HappyHorse 1.1 image-to-video | POST /happy-horse-1.1-image-to-video |
images_list |
| HappyHorse 1.1 reference-to-video | POST /happy-horse-1.1-reference-to-video |
prompt, images_list |
| HappyHorse 1.1 video edit | POST /happy-horse-1.1-video-edit |
video_url, prompt |
| Poll for result | GET /predictions/{request_id}/result |
Path parameter request_id |
All requests use the x-api-key header. Submit endpoints accept JSON and return a request ID for polling.
Request parameters used in this repository
| Field | Used by | Notes |
|---|---|---|
prompt |
All generation and edit routes | Text description of the video or edit |
images_list |
HappyHorse image- and reference-to-video | Public image URLs; reference-to-video takes 1–9 |
video_url |
HappyHorse video edit | Public MP4 or MOV URL |
resolution |
All routes | Wan 3.0 up to 1080p; HappyHorse 1.1 720p or 1080p |
duration |
Text, image and reference-to-video | Seconds; the examples use 5 |
aspect_ratio |
HappyHorse generation routes | The examples use 16:9 |
audio_setting |
HappyHorse video edit | origin keeps the source audio |
Per-model accepted values can change. Check the Wan 3 API and HappyHorse 1.1 API pages for the current schema before you hard-code limits.
Asynchronous workflow
- Submit a generation or edit request with your API key.
- Save the returned
request_id. - Poll
/api/v1/predictions/{request_id}/result, or use the Python client'swait_for_completionhelper. - On
completed, read the generated video URL from the response. Onfailed, inspect the returned error details.
For production workloads, poll from a background worker or use MuAPI webhooks where available instead of holding a web request open.
Errors and practical notes
requests.raise_for_status()raises an HTTP error for rejected submissions or polling requests.- A successful submit only means the task was accepted; keep polling until a terminal status.
- Source image and video URLs must be publicly reachable by MuAPI. Upload local files first via the file upload endpoint.
- Video jobs can take minutes; the client's default timeout is 900 seconds.
- Keep
MUAPI_API_KEYin an environment variable or secret store; never commit it.
FAQ
Is the HappyWan API available? Yes. On MuAPI it is available now through the live Wan 3.0 and HappyHorse 1.1 models, in text-to-video, image-to-video and reference-to-video modes.
Is it HappyWan or Happy-Wan? Both spellings (HappyWan, Happy-Wan, Happy Wan) refer to this workflow.
Which modes can I use? Text, image and reference to video on both families; HappyHorse 1.1 also has video edit.
Is this an official HappyWan SDK? It is a MuAPI client for the HappyWan 1.0 API (Happy-Wan 1.0 API) workflow, using the live Wan 3.0 and HappyHorse 1.1 models.
License
MIT. See LICENSE.
Keywords: HappyWan 1.0 API, Happy-Wan 1.0 API, Happy Wan 1.0 API, HappyWan 1.0, Happy-Wan 1.0, HappyWan API, Happy-Wan API.
関連プロジェクトを探す
読み込み中…