Seed Asset Create
seed-asset-create
Seed Asset Create uploads an image, video, or audio file into an asset group for later Seed model calls.
API Notes
Section titled “API Notes”seed-asset-create requires a GroupId created by seed-asset-create-group. Omitting GroupId returns MissingParameter.GroupId.
ProjectName must match an existing project. Omit it to use the default project.
Endpoints
Section titled “Endpoints”POST /v1/queue/seed-asset-create # Create taskGET /v1/queue/seed-asset-create/requests/{request_id}/status # Check statusGET /v1/queue/seed-asset-create/requests/{request_id}/response # Get resultPUT /v1/queue/seed-asset-create/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”curl --location 'https://odirouter.ai/model/v1/queue/seed-asset-create' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --data '{ "Name": "my_asset", "URL": "https://example.com/sample.jpg", "AssetType": "Image", "GroupId": "group-20260404125811-gpvqr", "ProjectName": "default"}'Asset name.
Maximum length: 64 characters.
URL of the media file to upload.
Media type of the asset.
Options: Image, Video, Audio.
Asset group ID the asset belongs to. Obtain this value from seed-asset-create-group.
Project name. Omit this parameter to use the default project.
Default: default
Response parameters
Section titled “Response parameters”{ "request_id": "task_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/seed-asset-create/requests/task_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/seed-asset-create/requests/task_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/seed-asset-create/requests/task_01hxyz.../cancel", "queue_position": 0}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL to fetch the final result. |
status_url | string | URL to query task status. |
cancel_url | string | URL to cancel the task. |
queue_position | int | Current queue position. |
The final response content contains a JSON string. Parse it to obtain Result.Id, the created asset ID.