Arumi

v1.0.0
io.github.weidotbuild/arumi Checked 2 days ago Published 28 days ago

Generate AI images, video and audio with 55 models, priced in credits before you generate.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

complete_upload

Finish an upload after the PUT; returns the asset_id to pass in a generation's references.

ParameterTypeDescription
upload_id *string

create_upload

Start uploading one of the user's files to use as a reference. PUT the file's bytes to upload_url with exactly the returned headers, then call complete_upload.

ParameterTypeDescription
content_type *stringfor example image/png, image/jpeg, video/mp4, audio/mpeg
file_name *stringthe file's name, with its extension
sha256 *stringthe file's SHA-256 as 64 lower-case hex characters (shasum -a 256)
size_bytes *integer
heightintegerrequired for images: height in pixels
widthintegerrequired for images: width in pixels

generate

Start a generation with the user's credits. It is refused, with nothing charged, when it would cost more than max_credits. Returns at once with a generation_id: call get_generation until it has succeeded or failed.

ParameterTypeDescription
max_credits *integerthe most credits the user agreed to spend on this generation; it is refused when the quote is higher
model *stringthe model id from list_models
idempotency_keystringoptional, 16-128 characters [A-Za-z0-9._:-]: repeating a call with the same key returns the same generation instead of making another
parametersobjectthe model's settings by key (get_model); any left out take the model's default
promptstringwhat to make; for speech models the text to read
referencesnull | objectuploaded files the model works from

get_balance

The user's Arumi credits: available, held by running generations, and owed. 1 credit = 0.01 USD.

get_generation

A generation's status; once it has succeeded, links to its results, and what it charged.

ParameterTypeDescription
generation_id *string

get_model

One model's prompt limit, the reference files it takes, and its settings with their allowed values and defaults.

ParameterTypeDescription
model *stringthe model id from list_models

list_generations

The user's latest generations, newest first, made on the site or through any of their keys.

ParameterTypeDescription
limitintegerhow many, newest first (1–20, default 10)

list_models

The models the user can generate with, by kind (image, video, audio, text). get_model gives one model's inputs and settings.

ParameterTypeDescription
modalitystringonly this kind: image, video, audio or text

quote

What a generation would cost, in credits, without making it. Tell the user before generating.

ParameterTypeDescription
model *stringthe model id from list_models
parametersobjectthe model's settings by key (get_model); any left out take the model's default
promptstringwhat to make; for speech models the text to read
referencesnull | objectuploaded files the model works from