Skip to content
中文

Libraries

Guide →

Base URL and authentication

Create library

POST /media/v1/libraries

Request body

Field Type Required Description
backup boolean no —
models MediaModelsInput no Model call IDs by role; partial updates, null restores defaults
default_tier MediaTier no —
name string yes Name, 1–64 characters; duplicates are allowed
labels object no Labels object; JSON-encode for GET. PATCH replaces the whole object; {} clears it
understanding object no Visual, transcript, and semantic understanding settings

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
终端窗口
curl -X POST "https://api.deepraxis.com/media/v1/libraries" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"Media documentation sample"}'

HTTP 200

{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Media documentation sample",
"labels": {},
"status": "active",
"asset_count": 0,
"bytes": 0,
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"search": {
"image": true
},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"backup": false,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:16:39.297Z",
"deleted_at": null,
"purge_at": null,
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": false
}
}

List libraries

GET /media/v1/libraries

Parameter Location Type Description
cursor query string Previous next_cursor
limit query integer 1–200 items per page, default 50
labels query string Labels object; JSON-encode for GET. PATCH replaces the whole object; {} clears it
status query active / deleting Resource status

Returns: LibraryPage.

Response

HTTP 200

Successful response.

application/json

Name Type Description
data array<object> Libraries in this page, ordered by creation time descending.
data[].hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
data[].progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
data[].search object Search capabilities of this library’s embedding model.
data[].models object Resolved model call IDs used for new uploads and reprocessing.
data[].default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
data[].id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
data[].name string Display name of the library; duplicate names are allowed.
data[].labels object Caller-defined string labels used to organize and filter libraries.
data[].status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
data[].asset_count number Number of assets currently stored in the library.
data[].bytes number Total source-content size of the library’s assets, in bytes.
data[].understanding object Settings controlling understanding tasks for new uploads.
data[].backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
data[].created_at string Time the library was created, in UTC.
data[].updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
data[].deleted_at string | null Time the library entered deleting, or null when active or restored.
data[].purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
next_cursor string | null Opaque token to pass as cursor to listLibraries; null means no further page.
终端窗口
curl -X GET "https://api.deepraxis.com/media/v1/libraries" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

HTTP 200

{
"data": [
{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Media documentation sample",
"status": "active",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:16:39.297Z",
"deleted_at": null,
"purge_at": null,
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": false
}
},
{
"id": "lib_2d14741a467d4dc1895a3bfb735e410d",
"name": "默认素材库",
"status": "active",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:33.543Z",
"updated_at": "2026-11-13T06:16:33.973Z",
"deleted_at": null,
"purge_at": null,
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": true
}
}
],
"next_cursor": null
}

Get library

GET /media/v1/libraries/{library_id}

Parameter Location Type Description
library_id path string Library ID

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
终端窗口
curl -X GET "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

HTTP 200

{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Media documentation sample",
"status": "active",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:16:39.297Z",
"deleted_at": null,
"purge_at": null,
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": true
}
}

Update library

PATCH /media/v1/libraries/{library_id}

Parameter Location Type Description
library_id path string Library ID

Request body

Field Type Required Description
backup boolean no —
hotwords string[] no —
models MediaModelsInput no Model call IDs by role; partial updates, null restores defaults
default_tier MediaTier no —
name string no Name, 1–64 characters; duplicates are allowed
labels object no Labels object; JSON-encode for GET. PATCH replaces the whole object; {} clears it
understanding object no Visual, transcript, and semantic understanding settings

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
终端窗口
curl -X PATCH "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"Agent media"}'

HTTP 200

{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Agent media",
"status": "active",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:16:42.851Z",
"deleted_at": null,
"purge_at": null,
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": true
}
}

Delete library

DELETE /media/v1/libraries/{library_id}

Parameter Location Type Description
library_id path string Library ID

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
终端窗口
curl -X DELETE "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

HTTP 200

{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Agent media",
"status": "deleting",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:17:03.478Z",
"deleted_at": "2026-11-13T06:17:03.478Z",
"purge_at": "2026-11-20T06:17:03.478Z",
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": true
}
}

Restore library

POST /media/v1/libraries/{library_id}/restore

Parameter Location Type Description
library_id path string Library ID

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.
终端窗口
curl -X POST "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}/restore" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{}'

HTTP 200

{
"id": "lib_200f2b495e5f456194e746d66a3a8999",
"name": "Agent media",
"status": "active",
"asset_count": 0,
"bytes": 0,
"created_at": "2026-11-13T06:16:38.800Z",
"updated_at": "2026-11-13T06:17:04.174Z",
"deleted_at": null,
"purge_at": null,
"backup": false,
"search": {
"image": true
},
"models": {
"audio": "qwen3.8-omni-flash",
"vision": "qwen3.8-flash",
"embedding": "qwen3-vl-embedding",
"transcription": "fun-asr",
"correction": "qwen3.8-flash",
"reference_transcription": "qwen3-asr-flash",
"speech": "doubao-tts-2.0"
},
"labels": {},
"understanding": {
"visual": true,
"transcript": true,
"embedding": true
},
"progress": {
"counts": {
"pending": 0,
"processing": 0,
"ready": 0,
"partial": 0,
"failed": 0
},
"completed_last_hour": 0,
"completion_rate_per_hour": 0,
"estimated_completion_at": null,
"migration_complete": true
}
}

Purge library

POST /media/v1/libraries/{library_id}/purge

Parameter Location Type Description
library_id path string Library ID

Returns: PurgedLibrary.

Response

HTTP 200

Successful response.

application/json

Name Type Description
id string Identifier of the library that was permanently purged.
object string Resource discriminator identifying a library receipt.
purged boolean True when permanent library cleanup has completed.
终端窗口
curl -X POST "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}/purge" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{}'

HTTP 200

{
"id": "lib_d3881a2f54a34cd79121b9d659e8378c",
"object": "library",
"purged": true
}

Create delivery token

POST /media/v1/libraries/{library_id}/delivery_tokens

Parameter Location Type Description
library_id path string Library ID

Request body

Field Type Required Description
acl string no Delivery path glob restricted to this library; defaults to /{library_id}/*
expires_in integer no Lifetime in seconds, 1–604800, default 900

Returns: DeliveryToken.

Response

HTTP 200

Successful response.

application/json

Name Type Description
token string Bearer token for delivery URLs. Append as the cld_token query parameter; URL-encode the value once.
expires_at string UTC timestamp when this token expires and delivery access ends.
终端窗口
curl -X POST "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}/delivery_tokens" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"expires_in":3600}'

HTTP 200

{
"token": "st=1794550630~exp=1794554230~acl=%2Flib_ab7c545e85994e108974c89aa2078cf8%2F*~hmac=f0691923e7abe482987342e3f4a79dfc59cf3e5109eb5cb921b2c756cca476eb",
"expires_at": "2026-11-13T07:17:10.000Z"
}

Get default library

GET /media/v1/libraries/default

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.

Set default library

PUT /media/v1/libraries/default

Request body

Field Type Required Description
library_id LibraryId yes Library ID

Returns: Library.

Response

HTTP 200

Successful response.

application/json

Name Type Description
hotwords array<string> Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
progress object Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
progress.counts object Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
progress.completed_last_hour number Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
progress.completion_rate_per_hour number Observed completion rate in assets per hour, equal to completed_last_hour.
progress.estimated_completion_at string | null Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
progress.migration_complete boolean True after historical assets have been counted and their pending understanding instances dispatched.
search object Search capabilities of this library’s embedding model.
search.image boolean Whether this library’s embedding model supports image-based visual search.
models object Resolved model call IDs used for new uploads and reprocessing.
models.vision string Model call ID for visual descriptions; the model must support image input.
models.embedding string Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
models.transcription string Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
models.correction string Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
models.reference_transcription string Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
models.audio string Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
models.speech string Model call ID for speech synthesis (speech.create); defaults to doubao-tts-2.0. The model must offer openai.audio.speech.
default_tier string The tier this library falls back to when a generation or edit request names neither tier nor model: the request then chooses by this tier exactly as if the caller had named it. One of economy, balanced or quality; a library that never set one reads balanced. It applies once the platform turns the media-tier-defaults switch on; until then a request that names neither keeps the library’s own default model.
id string Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
name string Display name of the library; duplicate names are allowed.
labels object Caller-defined string labels used to organize and filter libraries.
status string Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
asset_count number Number of assets currently stored in the library.
bytes number Total source-content size of the library’s assets, in bytes.
understanding object Settings controlling understanding tasks for new uploads.
understanding.visual boolean Enable captions, tags and OCR for images and video frames.
understanding.transcript boolean Enable speech transcription for audio and video soundtracks.
understanding.embedding boolean Enable generation of vectors for semantic search.
backup boolean Whether this library keeps the bytes an upload overwrites. When true, an upload that overwrites an existing public_id keeps the previous bytes as a version of the same asset (its id, delivery URL and lineage do not change) and they count in the library’s bytes; read them with GET …/assets/{asset_id}?versions=true and bring one back with the restore endpoint. At most 20 versions are kept per asset, the oldest released first. Off by default; turning it off stops keeping new versions and keeps those already kept.
created_at string Time the library was created, in UTC.
updated_at string Time library settings, lifecycle or usage were last updated, in UTC.
deleted_at string | null Time the library entered deleting, or null when active or restored.
purge_at string | null Scheduled purge time while the library is deleting; null for an active or restored library.

Library

Field Type Required Description
hotwords string[] no —
progress UnderstandingProgress no —
search object yes Search capabilities; search.image enables visual search
models MediaModels yes Model call IDs by role; partial updates, null restores defaults
default_tier MediaTier yes —
id LibraryId yes Resource ID
name string yes Name, 1–64 characters; duplicates are allowed
labels object yes Labels object; JSON-encode for GET. PATCH replaces the whole object; {} clears it
status LibraryStatus yes Resource status
asset_count number yes Asset count
bytes number yes File size in bytes
understanding UnderstandingSettings yes Visual, transcript, and semantic understanding settings
backup boolean yes —
created_at IsoTimestamp yes Creation time
updated_at IsoTimestamp yes Update time
deleted_at IsoTimestamp / null yes Deletion time; null when not deleted
purge_at IsoTimestamp / null yes Recovery deadline

LibraryPage

Field Type Required Description
data Library[] yes Results in this page
next_cursor string / null yes Next-page cursor; null or absent at the end

PurgedLibrary

Field Type Required Description
id LibraryId yes Resource ID
object "library" yes —
purged true yes —

DeliveryToken

Field Type Required Description
token string yes Append as the cld_token query parameter, URL-encoding the value once
expires_at string yes Token expiration time as a UTC ISO timestamp

Page

Field Type Required Description
data JSON[] yes Results in this page
next_cursor string / null yes Next-page cursor; null or absent at the end

UnderstandingSettings

Field Type Required Description
visual boolean yes Enable visual understanding
transcript boolean yes Enable transcription
embedding boolean yes Enable semantic understanding

Model roles

models selects a model call ID (callModelId) for each role. Creating a library without it uses the defaults below. Updates change only the supplied roles; omitted roles remain unchanged. Set a role to null to restore its default, or set models: null to restore all defaults.

Role Purpose Default
vision Visual understanding of images and video frames qwen3.8-flash
embedding Embed content and search queries for semantic retrieval qwen3-vl-embedding
transcription Audio transcription fun-asr
audio Audio understanding qwen3.8-omni-flash
correction Conservative transcript correction qwen3.8-flash
reference_transcription Reference transcription qwen3-asr-flash

Writes check supplied model call IDs against the model catalog. A missing model returns 400 INVALID_PARAMS with Model <id> is not available; a catalog lookup failure returns 502 UPSTREAM_FAILED. The vision model must support image input, or the request returns 400 INVALID_PARAMS. Unknown roles, blank IDs, and invalid values also return 400.

Once a library contains assets, changing embedding returns 409 LIBRARY_INVALID_STATE with “库中已有素材时不能更换嵌入模型”. A single vector space must use the same model so that existing asset vectors and query vectors remain comparable. Restoring defaults is subject to the same lock if it changes embedding.

Changes to vision or transcription apply only to newly uploaded or reprocessed assets; existing assets are not automatically processed again. Without kinds, reprocess retries only failed kinds. Explicit kinds force reruns of selected ready, failed, or unsupported kinds and replace their results. For example, pass { kinds: ["visual"] } after changing vision, or { kinds: ["transcript"] } after changing transcription.

This PATCH restores only vision to its default and preserves the other roles:

终端窗口
curl -X PATCH "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}" \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"models":{"vision":null}}'

New libraries default to qwen3-vl-embedding with visual search; legacy libraries retain bge-m3. Read-only search.image indicates image-search capability. Other models are checked for 1024-dimensional output; incompatible dimensions return INVALID_PARAMS, while unavailable probes or missing caller identity return UPSTREAM_FAILED.