Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Replace an item's group, name, handle, text and images

PUT
/v1/studio/library/{item_id}
curl --request PUT \
--url http://localhost:8300/v1/studio/library/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "group": "character", "name": "example", "handle": "example", "text": "example", "images": [ { "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "loras": [ { "lora": { "lora_id": "example" }, "strength": 1 } ], "voice": { "design": "example", "clip": { "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "in": 1, "out": 1 }, "consent": true, "language": "example", "style": "example" }, "voice_id": "example", "version": 1 }'

Optimistic concurrency like workflows: version is the one the edit started from; stale = 409 element changed since you opened it (now version <n>) (a look: look changed since you opened it (now version <n>)), nothing changes. A look is checked like POST with kind: look (no from_take; from_take_id stays). clip may be changed (checked like POST; from_take_id follows it; a clip needs consent again). element’s voice_id is checked like POST (a stored one that is gone since may be sent back: it saves null). Checked like POST (the handle may stay its own). On success version + 1, updated_at now. Takes made before keep their resolved graph; their reuse answers this element changed. kind never changes. voice required; stale = 409 voice changed since you opened it (now version <n>)); takes made before keep the voice they ran with (made_with.voices records the version).

item_id
required
string

Library item UUID (malformed = 404)

Media typeapplication/json

Every field (checked like LibraryItemCreate for the item’s kind); an element also needs handle

object
group
required
string
Allowed values: character location prop film camera colour lighting preset cloned designed
name
required
string
<= 200 characters
handle
string | null
<= 200 characters
text
required
string
<= 4000 characters
images
required
Array<object>
<= 10 items
object
take_id
required
string format: uuid
loras

A look only; missing = []

Array<object>
<= 8 items
object
lora
required

A Lora value (a rows item field of ref kind Lora): a LoRA the caller can use, by id; never a path, key or URL. Studio checks it when it creates the run.

object
lora_id
required
string
/^([0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/
strength
required

The strength the look applies it at

number
<= 2
voice

A designed voice only (required then)

object
design

Trimmed; must then be 1-2000 characters; a designed voice only

string
<= 4000 characters
clip

The part of a take to clone (checked as a media param with trim, accepts audio, 3-30 s); not with from_take

object
take_id
required
string format: uuid
in
number
<= 86400
out
number
> 0 <= 86400
consent

Required true with a clip: the owner has the right to use this voice

boolean
language

A BCP 47 tag; null or absent = none

string | null
<= 35 characters
style

Trimmed; must then be at most 500 characters; “” or absent = none

string
<= 1000 characters
voice_id

A character element only; missing or null = none (PUT replaces it)

string | null
<= 130 characters
version
required

The version the edit started from (409 when stale)

integer
>= 1

The item

Media typeapplication/json

A library item: one record shape for elements and looks. one whose take was deleted is left out, so a stored item may show 0 images. fits / reason only when the list was asked with workflow.

object
id
required

Own: a UUID; starter look: <family>/<pack look id>

string
/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[a-z0-9][a-z0-9_-]{0,63}/[a-z0-9][a-z0-9-]{0,63})$/
kind
required

Element (character, location, prop; used with @handle); look (film, camera, colour, lighting; chosen from the visual picker, sent as RunRequest.looks); chosen in the voice picker, sent as a voice param’s VoiceRef). Clients show an unknown kind as is

string
Allowed values: element look voice
group
required
string
Allowed values: character location prop film camera colour lighting preset cloned designed
name
required
string
>= 1 characters <= 80 characters
handle
required

What @ mentions; always set for an element, always null for a look

string | null
/^[a-z](?:[a-z0-9_-]{0,38}[a-z0-9])?$/
text
required

An element: appended where it is mentioned; a look: appended to the prompt when chosen; empty = none

string
<= 2000 characters
images
required

An element 1-4 when saved, a look 0-4; a starter look none (its picture is only thumb_url)

Array<object>
<= 4 items
object
take_id
required
string format: uuid
url
required

Signed, time-limited link; opaque

string
thumb_url
required

The take’s thumbnail (Take.thumb_url)

string
width
required
integer
>= 1
height
required
integer
>= 1
thumb_url
required
One of:

Signed, time-limited link; opaque

string
version
required

1 on create, +1 on every PUT; send it back in LibraryItemUpdate. A starter look or voice: the pack’s version

integer
>= 1
created_at
required

A starter look: the oldest published_at of the live hosts publishing it

string format: date-time
updated_at
required

A starter look: = created_at

string format: date-time
source

Mine: the caller’s own (id a UUID, editable); starter: a look or a voice shipped by a pack and published by a runner (id <family>/<pack id>, read-only, everyone sees it)

string
Allowed values: mine starter
family

A starter look: its pack’s family (where it comes from; whether it fits is fits); own items: null (any family)

string | null
/^[a-z0-9][a-z0-9_-]{0,63}$/
loras

A look’s LoRAs in order; always empty for an element

Array<object>
<= 4 items

One LoRA of a look, appended to the look stack at strength when the look is applied

object
lora
required
One of:

A Lora value (a rows item field of ref kind Lora): a LoRA the caller can use, by id; never a path, key or URL. Studio checks it when it creates the run.

object
lora_id
required
string
/^([0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/
name
required

Own look: the LoRA’s name now (as recorded when it is gone); starter look: the file name without .safetensors

string
>= 1 characters <= 80 characters
strength
required
number
<= 2
needs

Computed, in the order text, images, lora: non-empty text, at least one image, at least one LoRA

Array<string>
<= 3 items unique items
Allowed values: text images lora
from_take_id

A look made with “Save as look”: the take; null for every other item)

string | null format: uuid
fits

Only with GET /library?workflow=: whether the item can be applied to that workflow now

boolean
reason

With fits: why not (this workflow has no LoRA stack, a voice: voice Ryan is for qwen3-tts); null when it fits

string | null
voice

Kind voice only (required then, absent otherwise)

object
source
required

Where a saved voice comes from (= its group): preset (a pack’s speaker, a starter voice), cloned, designed

string
Allowed values: preset cloned designed
family

Preset only: the family whose voice params take it

string
/^[a-z0-9][a-z0-9_-]{0,63}$/
speaker

Preset only: the model’s speaker id (ryan, uncle_fu)

string
/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/
design

Designed only: the voice in words (“male, 17, tenor, nervous”)

string
>= 1 characters <= 2000 characters
language

A BCP 47 tag (en, en-US, zh, pt-BR); absent = none (the node’s own language param decides)

string
/^[a-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$/
style

How it speaks, in words; absent = none

string
>= 1 characters <= 500 characters
clip

Cloned (required) or designed (optional): the part of a take it clones

object
take_id
required
string format: uuid
in
required
number
<= 86400
out
required
number
> 0 <= 86400
consent

With clip (required then): the owner ticked “I have the right to use this voice”

voice_id

An element only (always sent for one, absent otherwise): the voice its @handle speaks in a dialogue script, one of the caller’s voices or a starter voice; null = none (always null for a location or prop, and on read once that voice is deleted or no live host publishes it)

string | null
/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[a-z0-9][a-z0-9_-]{0,63}/[a-z0-9][a-z0-9-]{0,63})$/

Example

{
"kind": "element",
"group": "character",
"images": [
{
"url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12",
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12"
}
],
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12",
"source": "mine",
"needs": [
"text"
],
"voice": {
"source": "preset",
"consent": true
}
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}