Prerequisites
- API access enabled for your organization (by contacting Michel)
- An API key from Developer in the app (
yph_sk_live_…) - Your environment base URL (see Introduction)
BASE_URL and YOUR_API_KEY in the examples below.
1. Health check (no auth)
2. Account and credits
3. List actors
Typical integration flow
1
Create a Digital Sample
POST /digital-samples with title and render prompts.2
Upload seed video
POST /digital-samples/{id}/seed/upload-url → PUT file to presigned URL → POST …/seed/register (automatically validates, approves, and activates the sample).3
Create an Actor
Upload face/body/voice assets via your app workflow or presigned URLs, then
POST /actors.4
Queue Insta Swap
POST /digital-samples/{id}/insta-swaps with actorId. Render starts automatically; credits are charged.5
Poll or webhook
GET /insta-swaps/{id} until status is terminal, or handle insta_swap.completed / insta_swap.failed webhooks.