# Seedance Asset Registration

> This page explains how to register an image as a Seedance asset and obtain an `asset://` reference URI. For general authentication, error formats, and polling conventions, see "Quickstart & Conventions".

- Base URL: `https://vip.brioi.com`
- Authentication: `Authorization: Bearer YOUR_API_KEY`
- Model: `seedance-asset`, visible to API keys in the `Seedance 2.0 [按秒]` or `auto` token groups (check `GET /v1/models` for actual availability)
- Pricing: Free

## Endpoint Overview

| Operation | Endpoint | Response Fields |
|---|---|---|
| Submit registration | `POST /v1/realperson` | `id`, `status` |
| Poll status | `GET /v1/realperson/{id}` | `status`, `asset_ref` |

## Submit Registration

```bash
curl "https://vip.brioi.com/v1/realperson" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"seedance-asset","url":"https://example.com/reference.png"}'
```

| Parameter | Required | Description |
|---|---|---|
| `model` | Yes | Fixed to `seedance-asset` |
| `url` | Yes | Public direct HTTPS image URL requiring no login, cookies, or custom headers; must remain accessible until registration finishes |

A successful submission only indicates that registration has been accepted—the asset is not ready yet:

```json
{ "id": "task_xxxxxxxxxxxxxxxxxxxxxxxx", "status": "processing" }
```

## Poll Registration Status

```bash
curl "https://vip.brioi.com/v1/realperson/task_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

| Item | Convention |
|---|---|
| Polling interval | Every 5–10 seconds; typically completes within 1 minute |
| `status` | `Processing` (in progress), `Active` (ready), `Failed` (failed); treat any other value as non-terminal |
| `asset_ref` | Returned only when `status` is `Active`, formatted as `asset://asset-...` |

```json
{ "id": "task_xxxxxxxxxxxxxxxxxxxxxxxx", "status": "Active", "asset_ref": "asset://asset-20261031100113-wg2gg" }
```

Stop polling if `status` reaches `Failed` and inspect the error message; submitting the same image again registers a new asset.

## Using the Asset Reference

Pass `asset_ref` verbatim in `image_url.url` when calling [Seedance Volcengine Native Video Generation](https://docs.brioi.com/english/2552266m0.md) (`POST /api/v3/contents/generations/tasks`), for example:

```json
{ "type": "image_url", "image_url": { "url": "asset://asset-20261031100113-wg2gg" }, "role": "reference_image" }
```

- Brioi's unified `/v1/videos` endpoint does not currently accept `asset://` URIs returned here—continue passing direct image URLs to `/v1/videos`.
- Supports only images **without** real human faces (such as virtual characters, products, and scenes); real-person assets require live identity verification, which this endpoint does not provide.
- Currently supports images only; video and audio assets are not supported.

## Error Handling

| HTTP Status | Meaning |
|---:|---|
| 400 | Missing `model` or `url`, or invalid parameter value |
| 401 | Missing or invalid API key |
| 403 | Insufficient balance/quota, or API key lacks permission for this model |
| 503 | Service temporarily unavailable |

