| Title: | Generate 'Seedance' Videos and Images with 'emaki' |
|---|---|
| Description: | Official SDK for 'emaki' <https://emaki.ai>, the Japanese-language AI video generator for 'Seedance' 2.5 and 'Seedance' 2.0. Submit text-to-video, image-to-video and image runs with your 'emaki' API key, wait for the result URL, and check your remaining credits. |
| Authors: | emaki [aut, cre] |
| Maintainer: | emaki <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-10-16 07:47:10 UTC |
| Source: | https://github.com/hanshs474/emaki-r |
Submits one run on emaki (https://emaki.ai), waits for it and returns the result URL.
Failures signal a condition of class emaki_auth, emaki_quota, emaki_plan,
emaki_busy, emaki_rejected, emaki_validation, emaki_failed,
emaki_timeout or emaki_other.
emaki_generate_video(prompt, model = "seedance_2_5", parameters = NULL, api_key = NULL, poll_seconds = 5, timeout_seconds = 900, post = emaki_post) emaki_generate_image(prompt, model = "nano_banana_2_lite", parameters = NULL, api_key = NULL, poll_seconds = 5, timeout_seconds = 900, post = emaki_post)emaki_generate_video(prompt, model = "seedance_2_5", parameters = NULL, api_key = NULL, poll_seconds = 5, timeout_seconds = 900, post = emaki_post) emaki_generate_image(prompt, model = "nano_banana_2_lite", parameters = NULL, api_key = NULL, poll_seconds = 5, timeout_seconds = 900, post = emaki_post)
prompt |
What to generate. For image to video, the motion. |
model |
Model id: "seedance_2_5", "seedance_2", "seedance_2_fast", "seedance_2_mini", "minimax_h3", "veo_3_1"; images "nano_banana_2_lite", "nano_banana_2", "seedream_5_lite", "gpt_image_2". |
parameters |
A named list passed through as-is, e.g. |
api_key |
Key from https://emaki.ai/settings/apikeys; defaults to the EMAKI_API_KEY environment variable. |
poll_seconds |
How often the run is polled. |
timeout_seconds |
Deadline for the whole call. |
post |
The HTTP function; replaceable in tests. |
The URL of the finished file.
## Not run: emaki_generate_video("a paper lantern drifting down a night river", parameters = list(duration = 8, resolution = "720p")) emaki_generate_image("a ramen stall in the rain, neon reflections") ## End(Not run)## Not run: emaki_generate_video("a paper lantern drifting down a night river", parameters = list(duration = 8, resolution = "720p")) emaki_generate_image("a ramen stall in the rain, neon reflections") ## End(Not run)
Lower-level calls for submitting now and collecting later.
emaki_submit(prompt, model = "seedance_2_5", parameters = NULL, api_key = NULL, post = emaki_post) emaki_status(id, api_key = NULL, post = emaki_post) emaki_credits(api_key = NULL, post = emaki_post)emaki_submit(prompt, model = "seedance_2_5", parameters = NULL, api_key = NULL, post = emaki_post) emaki_status(id, api_key = NULL, post = emaki_post) emaki_credits(api_key = NULL, post = emaki_post)
prompt |
What to generate. |
model |
Model id, as in |
parameters |
A named list passed through as-is. |
id |
The id returned by |
api_key |
Key from https://emaki.ai/settings/apikeys; defaults to EMAKI_API_KEY. |
post |
The HTTP function; replaceable in tests. |
emaki_submit: the run id. emaki_status: a list with id, status
("generating", "completed" or "failed"), videoUrl and failureCode.
emaki_credits: remaining credits as an integer (free to call).
## Not run: id <- emaki_submit("a fox trotting through fresh snow") emaki_status(id)$status emaki_credits() ## End(Not run)## Not run: id <- emaki_submit("a fox trotting through fresh snow") emaki_status(id)$status emaki_credits() ## End(Not run)