素材库
创建库
POST /media/v1/libraries
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| backup | boolean | 否 | — |
| models | MediaModelsInput | 否 | 各角色的模型调用 ID;局部更新,null 恢复默认 |
| default_tier | MediaTier | 否 | — |
| name | string | 是 | 名称,1–64 个字符;允许重名 |
| labels | object | 否 | 标签对象;GET 时传 JSON 字符串;PATCH 整体替换,传 {} 清空 |
| understanding | object | 否 | 视觉、转写与语义理解开关 |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 }}列出库
GET /media/v1/libraries
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| cursor | query | string | 上一页的 next_cursor |
| limit | query | integer | 每页 1–200 条,默认 50 |
| labels | query | string | 标签对象;GET 时传 JSON 字符串;PATCH 整体替换,传 {} 清空 |
| status | query | active / deleting | 资源状态 |
返回: LibraryPage.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 /media/v1/libraries/{library_id}
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 }}更新库
PATCH /media/v1/libraries/{library_id}
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| backup | boolean | 否 | — |
| hotwords | string[] | 否 | — |
| models | MediaModelsInput | 否 | 各角色的模型调用 ID;局部更新,null 恢复默认 |
| default_tier | MediaTier | 否 | — |
| name | string | 否 | 名称,1–64 个字符;允许重名 |
| labels | object | 否 | 标签对象;GET 时传 JSON 字符串;PATCH 整体替换,传 {} 清空 |
| understanding | object | 否 | 视觉、转写与语义理解开关 |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 /media/v1/libraries/{library_id}
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 }}恢复库
POST /media/v1/libraries/{library_id}/restore
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 }}立即清除库
POST /media/v1/libraries/{library_id}/purge
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
返回: PurgedLibrary.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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}签发投递令牌
POST /media/v1/libraries/{library_id}/delivery_tokens
| 参数 | 位置 | 类型 | 说明 |
|---|---|---|---|
| library_id | path | string | 库 ID |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| acl | string | 否 | 限定在当前库路径内的投递通配路径;默认 /{library_id}/* |
| expires_in | integer | 否 | 有效秒数,1–604800,默认 900 |
返回: DeliveryToken.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 /media/v1/libraries/default
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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. |
设置默认库
PUT /media/v1/libraries/default
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| library_id | LibraryId | 是 | 库 ID |
返回: Library.
响应
HTTP 200
Successful response.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| hotwords | string[] | 否 | — |
| progress | UnderstandingProgress | 否 | — |
| search | object | 是 | 检索能力;search.image 为 true 时支持以图搜图 |
| models | MediaModels | 是 | 各角色的模型调用 ID;局部更新,null 恢复默认 |
| default_tier | MediaTier | 是 | — |
| id | LibraryId | 是 | 资源 ID |
| name | string | 是 | 名称,1–64 个字符;允许重名 |
| labels | object | 是 | 标签对象;GET 时传 JSON 字符串;PATCH 整体替换,传 {} 清空 |
| status | LibraryStatus | 是 | 资源状态 |
| asset_count | number | 是 | 素材数量 |
| bytes | number | 是 | 文件字节数 |
| understanding | UnderstandingSettings | 是 | 视觉、转写与语义理解开关 |
| backup | boolean | 是 | — |
| created_at | IsoTimestamp | 是 | 创建时间 |
| updated_at | IsoTimestamp | 是 | 更新时间 |
| deleted_at | IsoTimestamp / null | 是 | 删除时间;未删除为 null |
| purge_at | IsoTimestamp / null | 是 | 恢复截止时间 |
LibraryPage
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| data | Library[] | 是 | 本页结果 |
| next_cursor | string / null | 是 | 下一页游标;没有时为 null 或省略 |
PurgedLibrary
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | LibraryId | 是 | 资源 ID |
| object | "library" | 是 | — |
| purged | true | 是 | — |
DeliveryToken
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| token | string | 是 | 拼入交付 URL 的 cld_token 参数,对值做一次 URL 编码 |
| expires_at | string | 是 | 令牌过期时间,UTC ISO 时间戳 |
Page
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| data | JSON[] | 是 | 本页结果 |
| next_cursor | string / null | 是 | 下一页游标;没有时为 null 或省略 |
UnderstandingSettings
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| visual | boolean | 是 | 视觉理解开关 |
| transcript | boolean | 是 | 转写开关 |
| embedding | boolean | 是 | 语义理解开关 |
模型角色
models 指定各角色使用的模型调用 ID(callModelId)。创建库时省略它会使用下表默认值;更新时只改传入的角色,未传的角色保持不变。某个角色传 null 恢复该角色默认值,models: null 恢复全部默认值。
| 角色 | 用途 | 默认值 |
|---|---|---|
| vision | 图片与视频帧的视觉理解 | qwen3.8-flash |
| embedding | 将内容和检索查询生成向量,用于语义检索 | qwen3-vl-embedding |
| transcription | 音频转写 | fun-asr |
| audio | 音频理解 | qwen3.8-omni-flash |
| correction | 保守转写纠错 | qwen3.8-flash |
| reference_transcription | 参考转写 | qwen3-asr-flash |
写入时查询模型目录,校验传入的模型调用 ID。模型不存在返回 400 INVALID_PARAMS,消息为 Model <id> is not available;目录查询失败返回 502 UPSTREAM_FAILED。vision 必须支持图片输入,否则返回 400 INVALID_PARAMS。未知角色、空白 ID 或不合法的值也返回 400。
库中已有素材时不能更换 embedding,返回 409 LIBRARY_INVALID_STATE,消息为「库中已有素材时不能更换嵌入模型」。同一个向量空间必须由同一个模型生成,才能比较已有素材与查询向量;恢复默认值如果改变了 embedding,也受此限制。
修改 vision 或 transcription 只对新上传或重新处理(reprocess)的素材生效,不会自动重跑已有素材。reprocess 不带 kinds 时只重试失败项;显式指定 kinds 时,会强制重跑所选的已成功、失败或不支持项并替换结果。例如,修改 vision 后传入 { kinds: ["visual"] },修改 transcription 后传入 { kinds: ["transcript"] }。
以下 PATCH 只将 vision 恢复默认,保留其他角色:
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}}'新建库默认使用 qwen3-vl-embedding,支持以图搜图;旧库保留 bge-m3。只读字段 search.image 表示当前库是否支持以图搜图。选择其他模型时,会验证它能否输出 1024 维向量;无法输出则返回 INVALID_PARAMS,探测不可用或缺少调用者身份返回 UPSTREAM_FAILED。