Package 'emaki'

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

Help Index


Generate a Seedance video or an image on emaki

Description

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.

Usage

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)

Arguments

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. list(duration = 8, resolution = "720p", aspect_ratio = "9:16", image = "https://...").

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.

Value

The URL of the finished file.

Examples

## 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)

Submit a run, look it up, read your credits

Description

Lower-level calls for submitting now and collecting later.

Usage

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)

Arguments

prompt

What to generate.

model

Model id, as in emaki_generate_video.

parameters

A named list passed through as-is.

id

The id returned by emaki_submit.

api_key

Key from https://emaki.ai/settings/apikeys; defaults to EMAKI_API_KEY.

post

The HTTP function; replaceable in tests.

Value

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).

Examples

## Not run: 
id <- emaki_submit("a fox trotting through fresh snow")
emaki_status(id)$status
emaki_credits()

## End(Not run)