YingTu Logo
Checking Google sign-in…
Back to Seedance workspace
REST API reference

Virtual-human asset API

Create a private AIGC virtual-human asset. The returned asset:// URI can be used for video generation after the asset becomes Active.

Endpoint

Base URL

https://yingtu.ai
POST /api/seedance-assets/virtual-humans
GET /api/seedance-assets/virtual-humans/{id}

Authentication

The caller does not sign in to YingTu or Google. Authenticate with a LaoZhang API key using Authorization: Bearer <LAOZHANG_API_KEY>.

HeaderRequiredDescription
AuthorizationYesLaoZhang API key using Bearer authentication.
Content-TypePOST onlyCreate operations use application/json.

Request

FieldRequiredDescription
nameNoOptional asset name, up to 64 characters.
image_urlYesRequired public HTTPS image URL. The official CreateAsset API accepts URLs only.

Create request

cURL
curl --request POST \
  --url https://yingtu.ai/api/seedance-assets/virtual-humans \
  --header "Authorization: Bearer $LAOZHANG_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "image_url": "https://cdn.example.com/avatar.webp",
    "name": "brand-avatar"
  }'
HTTP request
POST /api/seedance-assets/virtual-humans
Content-Type: application/json
Authorization: Bearer $LAOZHANG_API_KEY

{
  "image_url": "https://cdn.example.com/avatar.webp",
  "name": "brand-avatar"
}

Response example

HTTP/1.1 202 Accepted
Content-Type: application/json

{
	  "request_id": "req_01JZEXAMPLE",
	  "id": "ast_eyJvcGFxdWUiOiJleGFtcGxlIn0",
	  "object": "seedance.asset",
	  "kind": "virtual_human",
	  "name": "brand-avatar",
	  "status": "Processing",
	  "uri": "asset://asset-20260729-example"
	}

Code examples

JavaScript · Node.js
const response = await fetch("https://yingtu.ai/api/seedance-assets/virtual-humans", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LAOZHANG_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    image_url: "https://cdn.example.com/avatar.webp",
    name: "brand-avatar",
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
Python · requests
import os
import requests

response = requests.post(
    "https://yingtu.ai/api/seedance-assets/virtual-humans",
    headers={"Authorization": f"Bearer {os.environ['LAOZHANG_API_KEY']}"},
    json={
        "image_url": "https://cdn.example.com/avatar.webp",
        "name": "brand-avatar",
    },
    timeout=60,
)

response.raise_for_status()
print(response.json())

Retrieve asset status

curl --request GET \
	  --url https://yingtu.ai/api/seedance-assets/virtual-humans/ast_eyJvcGFxdWUiOiJleGFtcGxlIn0 \
	  --header "Authorization: Bearer $LAOZHANG_API_KEY"
Status response
HTTP/1.1 200 OK
Content-Type: application/json

{
	  "request_id": "req_01JZEXAMPLE",
	  "id": "ast_eyJvcGFxdWUiOiJleGFtcGxlIn0",
  "object": "seedance.asset",
  "kind": "virtual_human",
  "status": "Active",
  "uri": "asset://asset-20260729-example",
	  "created_at": "2026-07-29T05:00:00Z",
	  "updated_at": "2026-07-29T05:01:00Z"
}
Failed · HTTP 200
{
  "request_id": "req_01JZEXAMPLE",
  "id": "ast_eyJvcGFxdWUiOiJleGFtcGxlIn0",
  "object": "seedance.asset",
  "kind": "virtual_human",
  "status": "Failed",
  "uri": "asset://asset-20260729-example",
  "failure": {
    "code": "InvalidImage",
    "message": "The image did not pass upstream validation."
  }
}

Errors

HTTP statusError codeDescriptionRetryable
400invalid_requestThe request body, field, or parameter value is invalid.No
401invalid_api_keyThe API key is missing, invalid, or disabled.No
403resource_not_ownedThe verification or asset is not owned by this API key, or the public ID is invalid.No
403capability_unavailablePrivate portrait-asset entitlement is not enabled for the service account.No
413payload_too_largeThe JSON request body exceeds 16 KB.No
415unsupported_media_typeA POST request did not use application/json.No
429rate_limit_exceededThe API key has reached its request limit.Yes
500internal_errorThe service could not complete the request.No
502upstream_errorThe upstream asset or verification service returned an error.Yes
503authentication_unavailableAPI-key validation is temporarily unavailable.Yes
503service_unavailableThe asset API server configuration is temporarily unavailable.Yes
Error object
{
  "error": {
    "code": "invalid_request",
	    "message": "image_url is required.",
    "request_id": "req_01JZEXAMPLE",
    "retryable": false
  }
}

Rate limits and tracing

Each API key can make up to 12 create-operation POST requests per hour; GET status requests are not counted. Upstream entitlement may add limits. A limited request returns 429 with Retry-After in seconds.

Every success and error response includes request_id. Include it in support requests, but never send your complete API key.

X-RateLimit-Limit: <limit>
X-RateLimit-Remaining: <remaining>
X-RateLimit-Reset: <unix-seconds>
Retry-After: <seconds>