Arumi
v1.0.0Generate 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
content_type * | string | for example image/png, image/jpeg, video/mp4, audio/mpeg |
file_name * | string | the file's name, with its extension |
sha256 * | string | the file's SHA-256 as 64 lower-case hex characters (shasum -a 256) |
size_bytes * | integer | |
height | integer | required for images: height in pixels |
width | integer | required 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.
| Parameter | Type | Description |
|---|---|---|
max_credits * | integer | the most credits the user agreed to spend on this generation; it is refused when the quote is higher |
model * | string | the model id from list_models |
idempotency_key | string | optional, 16-128 characters [A-Za-z0-9._:-]: repeating a call with the same key returns the same generation instead of making another |
parameters | object | the model's settings by key (get_model); any left out take the model's default |
prompt | string | what to make; for speech models the text to read |
references | null | object | uploaded 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.
| Parameter | Type | Description |
|---|---|---|
generation_id * | string |
get_model
One model's prompt limit, the reference files it takes, and its settings with their allowed values and defaults.
| Parameter | Type | Description |
|---|---|---|
model * | string | the model id from list_models |
list_generations
The user's latest generations, newest first, made on the site or through any of their keys.
| Parameter | Type | Description |
|---|---|---|
limit | integer | how 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.
| Parameter | Type | Description |
|---|---|---|
modality | string | only this kind: image, video, audio or text |
quote
What a generation would cost, in credits, without making it. Tell the user before generating.
| Parameter | Type | Description |
|---|---|---|
model * | string | the model id from list_models |
parameters | object | the model's settings by key (get_model); any left out take the model's default |
prompt | string | what to make; for speech models the text to read |
references | null | object | uploaded files the model works from |