메인 콘텐츠로 건너뛰기
POST
/
v1
/
seedance2
/
real-avatar
curl --request POST \
  --url https://api.apimart.ai/v1/seedance2/real-avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "callback_url": "https://example.com/callback",
    "project_name": "default"
  }'
{
  "code": 200,
  "data": {
    "id": "task_01K...",
    "status": "completed"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.apimart.ai/llms.txt

Use this file to discover all available pages before exploring further.

curl --request POST \
  --url https://api.apimart.ai/v1/seedance2/real-avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "callback_url": "https://example.com/callback",
    "project_name": "default"
  }'
{
  "code": 200,
  "data": {
    "id": "task_01K...",
    "status": "completed"
  }
}

인증

Authorization
string
필수
모든 요청에 Bearer Token 인증이 필요합니다API Key 발급:API Key 관리 페이지에서 API Key를 발급받으세요각 요청에 다음 헤더를 추가하세요:
Authorization: Bearer YOUR_API_KEY

요청 파라미터

1단계: 본인 인증 세션 생성

callback_url
string
필수
인증 완료 후 콜백 URL사용자가 H5 인증을 완료하면 시스템이 이 주소로 콜백 알림을 전송합니다
project_name
string
기본값:"default"
프로젝트 이름기본값: default

응답

code
integer
응답 상태 코드, 성공 시 200
data
object
태스크 정보
태스크를 조회하여 H5 인증 링크를 획득할 수 있습니다:
GET /v1/tasks/task_01K...
{
  "code": 200,
  "data": {
    "id": "task_01K...",
    "status": "completed",
    "result": {
      "byted_token": "token_xxx",
      "h5_link": "https://...",
      "raw_response": {}
    }
  }
}

2단계: 본인 인증 결과 조회

byted_token
string
필수
1단계 태스크 결과에서 획득한 인증 토큰사용자가 H5 인증 완료 후, GET /v1/tasks/{id}로 태스크를 조회하여 byted_token을 획득한 뒤, 이 필드로 인증 결과를 조회하여 실제 인물 에셋 그룹 GroupId를 가져옵니다
project_name
string
기본값:"default"
프로젝트 이름기본값: default

3단계: 실제 인물 에셋 배치 제출

group_id
string
필수
실제 인물 에셋 그룹 ID2단계 인증 결과에서 획득한 GroupId
project_name
string
기본값:"default"
프로젝트 이름기본값: default
asset_type
string
기본값:"Video"
에셋 타입선택 값:
  • Video - 동영상 에셋 (기본값, 실제 인물 인물사진에 권장)
  • Image - 이미지 에셋
기본값: Video
assets
array
필수
에셋 목록, 1회 요청으로 여러 에셋 제출 가능예시:
{
  "assets": [
    {
      "url": "https://example.com/avatar-a.png",
      "name": "avatar-a"
    },
    {
      "url": "https://example.com/avatar-b.png",
      "name": "avatar-b"
    }
  ]
}

응답

code
integer
응답 상태 코드, 성공 시 200
data
object
에셋 심사 태스크 정보

심사 결과 조회

에셋 제출 후 비동기 심사 태스크가 됩니다. 태스크 상태 조회 엔드포인트로 진행 상황을 확인하세요:

전체 승인

{
  "code": 200,
  "data": {
    "id": "task_01K...",
    "status": "completed",
    "progress": 100,
    "result": {
      "assets": [
        {
          "asset_id": "asset_a",
          "asset_url": "asset://asset_a",
          "status": "Active"
        },
        {
          "asset_id": "asset_b",
          "asset_url": "asset://asset_b",
          "status": "Active"
        }
      ],
      "usable_assets": [
        {
          "asset_id": "asset_a",
          "asset_url": "asset://asset_a",
          "status": "Active"
        },
        {
          "asset_id": "asset_b",
          "asset_url": "asset://asset_b",
          "status": "Active"
        }
      ],
      "failed_assets": []
    }
  }
}

일부 실패

{
  "code": 200,
  "data": {
    "id": "task_01K...",
    "status": "failed",
    "progress": 100,
    "result": {
      "assets": [
        {
          "asset_id": "asset_a",
          "asset_url": "asset://asset_a",
          "status": "Active"
        },
        {
          "asset_id": "asset_b",
          "asset_url": "asset://asset_b",
          "status": "Failed"
        }
      ],
      "usable_assets": [
        {
          "asset_id": "asset_a",
          "asset_url": "asset://asset_a",
          "status": "Active"
        }
      ],
      "failed_assets": [
        {
          "asset_id": "asset_b",
          "asset_url": "asset://asset_b",
          "status": "Failed"
        }
      ]
    },
    "error": {
      "code": "task_failed",
      "message": "일부 에셋 심사 실패"
    }
  }
}
  • result.usable_assets[].asset_url은 Seedance 2.0 동영상 생성에 직접 사용할 수 있습니다
  • result.failed_assets 내 에셋은 소스 파일을 교체하거나 재제출해야 합니다

심사 통과 에셋 사용

asset://... URL을 Seedance 2.0 동영상 생성 엔드포인트에 직접 전달하세요:
{
  "model": "doubao-seedance-2.0-face",
  "prompt": "참조 인물사진을 사용하여 동영상 생성",
  "image_with_roles": [
    {
      "url": "asset://asset_a",
      "role": "reference_image"
    }
  ]
}
  • 실제 인물 아바타 에셋은 doubao-seedance-2.0-face 또는 doubao-seedance-2.0-fast-face 모델과 함께 사용하는 것을 권장합니다
  • 서버가 asset:// 접두사를 감지하면 에셋 심사를 다시 트리거하지 않고 직접 생성 태스크를 제출합니다