Seed Asset Create Group
seed-asset-create-group
Seed Asset Create Group creates an asset group used to organize uploaded media assets.
API Notes
Заголовок раздела «API Notes»Call seed-asset-create-group before seed-asset-create. The returned GroupId is required when uploading an asset.
GroupType currently supports only AIGC.
ProjectName must match an existing project. Omit it to use the default project.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/seed-asset-create-group # Создать задачуGET /v1/queue/seed-asset-create-group/requests/{request_id}/status # Проверить статусGET /v1/queue/seed-asset-create-group/requests/{request_id}/response # Получить результатPUT /v1/queue/seed-asset-create-group/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location 'https://odirouter.ai/model/v1/queue/seed-asset-create-group' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --data '{ "Name": "my_asset_group", "GroupType": "AIGC", "ProjectName": "default"}'Name string required
Заголовок раздела «Name string required»Custom asset group name.
Maximum length: 64 characters.
GroupType string required
Заголовок раздела «GroupType string required»The type of the asset group.
Value: AIGC
ProjectName string
Заголовок раздела «ProjectName string»Project name. If the project does not exist, the API returns NotFound.ProjectName.
Default: default
Параметры ответа
Заголовок раздела «Параметры ответа»{ "request_id": "task_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/seed-asset-create-group/requests/task_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/seed-asset-create-group/requests/task_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/seed-asset-create-group/requests/task_01hxyz.../cancel", "queue_position": 0}| Поле | Тип | Описание |
|---|---|---|
request_id | string | Идентификатор задачи для последующей проверки статуса, получения результата и отмены. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |
The final response content contains a JSON string. Parse it to obtain Result.Id, the created asset group ID.