Avatarity Developer Platform
Wholesale programmatic access to Veo 3.1 video generation, Nano Banana Pro 8K packaging, high-speed execution, and autonomous fleet queue telemetry.
https://avatarity.devQuickstart Guide
Start generating photorealistic Veo 3.1 videos and Nano Banana 8K assets in under 60 seconds with simple HTTP requests.
Get Bearer Key
Deposit a minimum of $10 or choose a compute tier on Pricing to mint your scoped key.
Submit Payload
Send an HTTP POST to /api/generate/video with your prompt and aspect ratio.
Receive Stream
Poll /api/jobs/:id or configure a webhook destination to receive finished MP4 binaries.
# 1. Dispatch your first generation job
curl -X POST https://avatarity.dev/api/generate/video \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Cinematic wide-angle drone shot skimming through sandstone mountain towers in Elbsandsteingebirge, dawn mist --ar 16:9",
"model": "veo-3.1-lite-lower-priority",
"aspectRatio": "16:9"
}'Authentication
The Avatarity Engine uses standard HTTP Bearer tokens. Pass your API key in the Authorization header of every request.
/v1/video/createPriority QoS LanesDispatch Video Generation Job (Veo 3.1)
Initiates an asynchronous video synthesis job with multi-tier priority routing. Select your execution lane to balance turnaround latency and wholesale compute cost.
| Priority Lane | Wholesale Cost | Target ETA | Preemption & Concurrency SLA |
|---|---|---|---|
| turbo | 50 Units ($0.050) | ~14 seconds | Instant 0ms queue bypass, dedicated high-throughput GPU pool. |
| standard | 30 Units ($0.030) | ~19-22 seconds | Standard FIFO queue, guaranteed <20s dispatch SLA ($0.030 / video). |
| spot | 20 Units ($0.020) | ~45 seconds | Opportunistic surplus capacity harvest; 50% wholesale discount. |
| backfill | Internal Idle Pool | Preemptible | Autonomous background maintenance grid. Yields instantly to paying traffic. |
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Required | Cinematic scene description, camera angles, lighting, and action. |
| priority | string | Optional | Priority lane: "turbo", "standard", "spot", or "backfill". Defaults to "standard". |
| model | string | Optional | Engine target: "veo-3.1-lite", "veo3-fast", or "veo-3.1-pro". |
| aspect_ratio | string | Optional | Output ratio: "16:9" (Widescreen), "9:16" (Shorts/Reels), or "1:1". Defaults to "16:9". |
| duration | number | Optional | Video duration in seconds (5 or 10). Defaults to 10. |
| webhook_url | string | Optional | HTTP(S) callback receiving HMAC-SHA256 signed event upon render completion. |
curl -X POST https://avatarity.dev/v1/video/create \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3.1-lite",
"prompt": "Cinematic wide-angle drone shot skimming over dense mist-shrouded sandstone mountain spires, early morning golden light, 8k texture --ar 16:9",
"priority": "turbo",
"aspect_ratio": "16:9",
"duration": 10
}'{
"task_id": "task_01j8x2k4m9v5q7y3",
"status": "queued",
"model": "veo-3.1-lite",
"priority": "standard",
"estimated_cost_units": 30,
"estimated_cost_usd": 0.03,
"eta_seconds": 14,
"aspect_ratio": "16:9",
"duration_seconds": 10,
"created_at": "2026-09-30T16:00:00.000Z",
"links": {
"query": "/v1/video/query?task_id=task_01j8x2k4m9v5q7y3",
"self": "/v1/video/create"
}
}/v1/video/query?task_id=...Poll Video Status, Progress & Media URL
Queries task execution status, real-time progress bar percentage (0-100%), video player binary URL, and final actual compute cost deducted from your ledger.
curl -X GET "https://avatarity.dev/v1/video/query?task_id=task_01j8x2k4m9v5q7y3" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"{
"task_id": "task_01j8x2k4m9v5q7y3",
"status": "succeeded",
"progress_pct": 100,
"stage": "Rendering complete, sealed and delivered",
"elapsed_seconds": 32,
"worker_node": "VPS-1-Node-01 (Helsinki)",
"video_url": "https://avatarity.dev/videos/elbsandsteingebirge_smooth_60fps.mp4",
"thumbnail_url": "https://avatarity.dev/images/thumbnails/thumb_megastructure_ringworld_shadow_squares_orbit.jpg",
"duration_seconds": 10,
"fps": 60,
"resolution": "1080p",
"lane": "standard",
"actual_cost_units": 30,
"actual_cost_usd": 0.03,
"completed_at": "2026-09-30T16:00:32.000Z",
"error": null
}/v1/images/generationsOpenAI SDK CompatibleImage Synthesis & High-CTR Thumbnails
Synthesize viral packaging and high-resolution assets formatted strictly to the OpenAI Image Generation specification. Drop-in compatible with standard OpenAI SDKs by updating the baseURL.
curl -X POST https://avatarity.dev/v1/images/generations \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"prompt": "High CTR YouTube thumbnail: An ancient cybernetic monk meditating inside an obsidian datacenter vault, volumetric cyan lasers, hyper-detailed 8k resolution --ar 16:9",
"n": 1,
"size": "1792x1024",
"response_format": "url"
}'{
"created": 1759248000,
"data": [
{
"url": "https://avatarity.dev/images/thumbnails/thumb_megastructure_ringworld_shadow_squares_orbit.jpg",
"revised_prompt": "High CTR YouTube thumbnail: An ancient cybernetic monk in obsidian datacenter vault..."
}
]
}/v1/modelsModel Catalog, Capabilities & Spot Benchmarks
Lists active models with operational capabilities (text-to-video, image-to-video, unmetered-quota), hardware allocation targets, and live benchmark latency index.
curl -X GET "https://avatarity.dev/v1/models" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"/v1/healthLive Cluster TelemetryCluster Health, 100% Saturated Split & Latencies
Real-time telemetry reporting 100% permanent capacity saturation: external user demand vs Autonomous Backfill Engine surplus, 18 active worker nodes, queue depth per lane, and p50/p95 latency metrics.
curl -X GET "https://avatarity.dev/v1/health"/v1/tokensDeveloper API Key Self-Service Manager
Programmatically provision, audit usage, and revoke scoped API keys. Raw tokens are generated cryptographically with format vf_live_[32 hex] and returned strictly once upon creation.
# 1. List active developer tokens
curl -X GET "https://avatarity.dev/v1/tokens" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"
# 2. Mint new scoped developer API key
curl -X POST "https://avatarity.dev/v1/tokens" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production Ingress Fleet",
"allowed_lanes": ["turbo", "standard", "spot", "backfill"],
"rate_limit_rps": 60,
"expires_in": "90d"
}'/v1/avatar/create10-Slot Lifetime QuotaRegister Custom Photo Avatar (Sticky Affinity)
Provisions a new custom photo portrait avatar onto the dedicated HeyGen backend account bound to your user profile. Deducts exactly 1 slot from your lifetime 10-avatar creation quota. Enforces sticky backend account affinity so all subsequent render jobs route deterministically to the node hosting your avatar.
Permanent slots per user profile. No deletion permitted to prevent library churning and guarantee asset repeatability.
Pinned to dedicated HeyGen Business Plus accounts. Your avatars remain persistently available on your assigned node.
Operates through Avatar III & Talking Photo pipeline (0 generative credits depleted, unlimited plan minutes).
| Field | Type | Required | Description |
|---|---|---|---|
| photo_url | string | Required | Direct HTTPS URL of the high-resolution portrait photograph (min 512x512, JPEG/PNG). |
| name | string | Required | Human-readable label for the avatar (e.g. "Peggy Schuster"). |
| source_type | string | Optional | Avatar creation source: "custom_photo" (default) or "preconfigured". |
| base_avatar_name | string | Optional | Base archetype to anchor expressions and pose (defaults to "priest"). |
| look_name | string | Optional | Initial look or style identifier (e.g. "executive", "casual"). |
| voice | object | Optional | Default voice binding object: {"source": "fish_audio", "model": "s2.1-pro-free"}. |
curl -X POST https://avatarity.dev/v1/avatar/create \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Peggy Schuster",
"source_type": "custom_photo",
"photo_url": "https://storage.schreinercontentsystems.com/avatars/peggy.jpg",
"base_avatar_name": "priest",
"look_name": "executive"
}'{
"ok": true,
"avatar": {
"id": "av_usr_7x9q21",
"user_id": "usr_9921",
"name": "Peggy Schuster",
"source_type": "custom_photo",
"account_affinity": "heygen-primary",
"created_at": "2026-10-04T19:40:00.000Z"
},
"quota": {
"limit": 10,
"used": 3,
"remaining": 7
}
}{
"error": "avatar_quota_exceeded",
"message": "Custom avatar slot limit (10) reached for this profile. You cannot create more avatars.",
"quota": {
"limit": 10,
"used": 10,
"remaining": 0
}
}/v1/avatar/listCatalog & Quota TelemetryList User Avatars & Quota Telemetry
Returns all custom photo avatars registered to the authenticated profile, preconfigured system archetypes (Priest, Sarah, Marcus), and current quota telemetry (slots used vs. 10-slot limit).
| Parameter | Type | Required | Description |
|---|---|---|---|
| include_preconfigured | boolean | Optional | Whether to include system archetypes in the catalog. Defaults to true. |
| limit | number | Optional | Maximum number of avatars to return. Defaults to 50. |
curl -X GET https://avatarity.dev/v1/avatar/list \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Accept: application/json"{
"ok": true,
"total": 6,
"quota": {
"limit": 10,
"used": 3,
"remaining": 7
},
"avatars": [
{
"id": "priest",
"name": "Priest",
"gender": "neutral",
"type": "preconfigured",
"looks": [
"vestments",
"casual"
],
"default_look": "vestments",
"preview_image_url": "https://assets.heygen.ai/avatar/priest_thumb.jpg",
"account_affinity": "heygen-primary",
"provisioning_status": "ready"
},
{
"id": "av_usr_7x9q21",
"name": "Peggy Schuster",
"gender": "female",
"type": "custom",
"looks": [
"executive"
],
"default_look": "executive",
"preview_image_url": "https://storage.schreinercontentsystems.com/avatars/peggy.jpg",
"account_affinity": "heygen-primary",
"provisioning_status": "ready"
}
]
}/v1/avatar/renderLane 4 DispatchRender 1080p Avatar Video (Avatar III Engine)
Submits an asynchronous talking-head video rendering task through the HeyGen-Utilizsator sovereign gateway (Lane 4). Renders strictly with Avatar III and Talking Photo models at 1080p Full HD resolution with watermarks stripped, depleting 0 generative credits on Business Plus.
| Compute Lane | Wholesale Cost | Output Resolution | Generative Credits | Execution SLA |
|---|---|---|---|---|
| Lane 4 (HeyGen RPC) | 250 Units ($0.25 / min) | 1080p Full HD (1920x1080 / 1080x1920) | 0 Credits (Unlimited Plan) | ~45–75 seconds turnaround |
| Field | Type | Required | Description |
|---|---|---|---|
| avatar_id | string | Required | Archetype ID ("priest") or custom avatar ID ("av_usr_7x9q21"). |
| script | string | Required | Speech transcript text for avatar synthesis and phoneme lip-sync. |
| title | string | Optional | Organizational title for the render job. |
| audio_url | string | Optional | Direct HTTPS URL of external speech audio (Fish Audio, ElevenLabs, MP3/WAV). |
| voice_id | string | Optional | HeyGen voice identifier if generating speech via native TTS. |
| aspect_ratio | string | Optional | Output frame: "16:9" (1920x1080) or "9:16" (1080x1920). Defaults to "16:9". |
| webhook_url | string | Optional | HTTPS callback destination receiving completion payload and MP4 download link. |
curl -X POST https://avatarity.dev/v1/avatar/render \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"avatar_id": "priest",
"script": "Welcome to the Veo Forge masterclass on sovereign video pipelines.",
"title": "Veo Forge Keynote #1",
"aspect_ratio": "16:9"
}'{
"id": "rend_41fa6b217b5d4c08baaa",
"title": "Veo Forge Keynote #1",
"status": "queued",
"progress_percentage": 0,
"current_stage": "opening_editor",
"avatar": {
"id": "priest",
"name": "Priest"
},
"account_used": "heygen-primary",
"credits_charged": 25,
"created_at": "2026-10-04T19:42:00.000Z",
"links": {
"query": "/v1/avatar/query?id=rend_41fa6b217b5d4c08baaa"
}
}/v1/avatar/queryLive TelemetryPoll Avatar Render Status & Download MP4
Queries the live progress percentage, stage milestone, and final 1080p MP4 binary link of an in-flight avatar render job. When completed, includes automated QA verification metrics (duration, resolution, byte size).
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Render job ID returned by /v1/avatar/render (e.g. "rend_41fa6b217b5d4c08baaa"). |
curl -X GET "https://avatarity.dev/v1/avatar/query?id=rend_41fa6b217b5d4c08baaa" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Accept: application/json"{
"id": "rend_41fa6b217b5d4c08baaa",
"title": "Veo Forge Keynote #1",
"status": "processing",
"progress_percentage": 68,
"current_stage": "rendering_68%",
"created_at": "2026-10-04T19:42:00.000Z",
"updated_at": "2026-10-04T19:43:12.000Z"
}{
"id": "rend_41fa6b217b5d4c08baaa",
"title": "Veo Forge Keynote #1",
"status": "completed",
"progress_percentage": 100,
"current_stage": "completed",
"download_url": "https://heygen.schreinercontentsystems.com/v1/jobs/rend_41fa6b217b5d4c08baaa/download",
"qa_report": {
"verified": true,
"resolution": "1920x1080",
"duration_seconds": 10.4,
"size_bytes": 4128490
}
}Internal Model 1.8: Expressiveness & Kinetic Tuning Levers
Fine-tune speech kinetic energy, facial posture, jaw openness, and micro-expressions for custom avatars. Powered by Axtrelis LLC's proprietary 14B parameter 3D Diffusion Transformer with 8-Step DMD Distillation running on sovereign NVIDIA A100 SXM4-80GB GPUs.
Softens mouth openings and eliminates wild jaw drops. Produces dignified, gentle speech articulation ideal for grandmothers, serene hosts, or corporate leaders.
Balanced natural head motion, realistic blink cadence, and organic lip sync calibrated against standard podcast or educational speech.
Exaggerated phonetic mouth shapes, dramatic eyebrow accents, and high-energy gesticulation suitable for sales hooks, theatrical acting, or high-intensity shorts.
| Parameter | Type | Default | Physical Mechanism & Guidance |
|---|---|---|---|
| audio_guidance_scale | float (0.5 – 2.5) | 1.0 | Controls acoustic sensitivity of mouth and jaw. Lower (0.6–0.75) for calm/elderly personas; higher (1.8+) for energetic speech. |
| text_guidance_scale | float (1.0 – 3.0) | 1.0 | Classifier-Free Guidance (CFG). Higher values (1.5–2.2) enforce calm prompt styling against sudden acoustic transients. |
| num_cond_frames | int (10 – 20) | 13 (0.52s) | Autoregressive Video Continuation (AVC) temporal overlap. Seamlessly stitches multi-segment videos with zero boundary popping. |
| use_kv_cache | boolean | true | Retains transformer cross-attention keys and values in GPU memory across segments to maintain continuous head trajectory. |
| enhance_hf | boolean | false | High-frequency facial texture preservation. Retains fine skin pores and eye reflections across long continuous sequences. |
| prompt | string | — | Directs micro-expressions. E.g.: "An elderly grandmother speaking softly, subtle gentle lip articulation, peaceful steady gaze." |
| negative_prompt | string | — | Negative constraint bounding. E.g.: "exaggerated facial expressions, wide open mouth, rapid head jerks, nodding, shaking." |
curl -X POST https://avatarity.dev/v1/avatar/render \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "model-1.8",
"image_url": "https://storage.schreinercontentsystems.com/avatars/marge_schneider.jpg",
"audio_url": "https://storage.schreinercontentsystems.com/audio/speech_60s.mp3",
"aspect_ratio": "16:9",
"duration_seconds": 60,
"audio_guidance_scale": 0.7,
"text_guidance_scale": 1.5,
"prompt": "An elderly grandmother speaking softly and gently, subtle calm lip movements, peaceful steady gaze, relaxed head posture.",
"negative_prompt": "exaggerated facial expressions, wide open mouth, rapid head jerks, nodding, shaking, theatrical acting."
}'Full 60-second continuous avatar generation across 1,502 frames (19 auto-stitched AVC segments) matching speech audio to the millisecond. Zero VRAM memory leaks via PyTorch Native SDPA kernels and automatic GPU teardown on completion ($0.00/hr idle burn).
Internal Model 1.8: Custom Persona LoRA Calibration
Train and dynamically load low-rank adaptation (LoRA) weights to lock character mannerisms, age-specific micro-gestures, and consistent identity anchors into Model 1.8's 3D DiT transformer.
| Feature | Internal Model 1.8 (Sovereign 3D DiT) | HeyGen Avatar 3 & 4 (Lane 4) |
|---|---|---|
| Pipeline Paradigm | Pure Multimodal 3D DiT Diffusion | Hybrid 3DMM Mesh + 2D Neural Warping |
| Source Input Asset | Any single 2D photo (JPEG/PNG) | 2–5 minute 4K pre-recorded studio video |
| Persona Customization | Supported via custom LoRA safetensors | Locked to proprietary studio actor pool |
| Sovereignty | 100% Sovereign Bare-Metal / Colab Mesh | Cloud SaaS API dependency |
| Wholesale Cost | $0.25 / min ($0.004167 / sec) | $0.25 / min wholesale ($0.50 – $1.00 / min retail) |
from peft import LoraConfig, get_peft_model
# 1. Target Linear Projections in Model 1.8 DiT Attention Layers
lora_config = LoraConfig(
r=64, # LoRA Rank
lora_alpha=32, # Scaling alpha
target_modules=[
"q_linear", "k_linear", "v_linear",
"proj", "cross_attn.q_linear", "cross_attn.kv_linear"
],
lora_dropout=0.05,
bias="none",
)
# 2. Dynamic Runtime Inference Injection
dit.load_lora("weights/loras/grandma_calm_persona.safetensors", "grandma", multiplier=0.75)
dit.enable_loras(["grandma"])curl -X POST https://avatarity.dev/v1/avatar/render \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "model-1.8",
"image_url": "https://storage.schreinercontentsystems.com/avatars/marge_schneider.jpg",
"audio_url": "https://storage.schreinercontentsystems.com/audio/speech_60s.mp3",
"lora_adapter": "grandma_calm_v1",
"lora_multiplier": 0.75,
"audio_guidance_scale": 0.65
}'Sovereign Cluster Queue Architecture
High-throughput autonomous generation cluster deployed on VPS 1 (Helsinki), underwritten strictly by Axtrelis LLC. Features transparent hardware telemetry, dynamic worker allocation, and 16 parallel processing lanes.
elena-frostmarcus-vancechloe-chensarah-jenkins/api/queueDispatch Generation Job
Submits an asynchronous rendering job with an actress avatar, voiceover script, or cinematic scene to the sovereign queue. Allocates warm capacity slots without blocking the HTTP connection.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Required | Monologue or script with performance tags like [Pause 0.5s], [Emphasis], [Eye Lock]. |
| actressId | string | Optional | Avatar profile: "elena-frost", "marcus-vance", "chloe-chen", or "sarah-jenkins". Defaults to "elena-frost". |
| actressName | string | Optional | Human-readable persona label. Defaults to "Elena Frost". |
| aspectRatio | string | Optional | Output aspect ratio: "16:9" (YouTube/Desktop), "9:16" (Shorts/Reels), or "1:1". Defaults to "16:9". |
| model | string | Optional | Engine tier: "veo-3.1-lite-lower-priority" (unmetered quota) or "nano-banana-pro". |
| userId | string | Optional | Tenant identifier to enable scoped personal queue queries. |
| voiceDelivery | string | Optional | Style: "conversational", "authoritative", "whisper", "dramatic", or "cadenced". Defaults to "conversational". |
| backgroundMode | string | Optional | Render backdrop: "obsidian-vault", "transparent-alpha" (for NLE overlay), "monochrome-minimal", or "custom-stage". Defaults to "obsidian-vault". |
| voicePacing | number | Optional | Speech tempo multiplier from 0.8 to 1.3. Defaults to 1.0. |
| webhookUrl | string | Optional | HTTP(S) endpoint to receive signed HMAC-SHA256 completion callback. |
curl -X POST https://avatarity.dev/api/queue \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "The macro economics of sovereign GPU infrastructure vs retail SaaS middleman margins. [Pause 0.5s] Why paying retail marks up compute by 1400%...",
"actressId": "elena-frost",
"actressName": "Elena Frost",
"aspectRatio": "16:9",
"model": "veo-3.1-lite-lower-priority",
"userId": "usr_9a8b7c6d",
"webhookUrl": "https://api.yourdomain.com/webhooks/avatarity"
}'{
"success": true,
"job": {
"id": "VF-8904",
"userId": "usr_9a8b7c6d",
"actressId": "elena-frost",
"actressName": "Elena Frost",
"prompt": "The macro economics of sovereign GPU infrastructure...",
"aspectRatio": "16:9",
"model": "veo-3.1-lite-lower-priority",
"status": "queued",
"queuePosition": 1,
"estimatedSecondsRemaining": 28,
"totalEstimatedSeconds": 28,
"progressPercent": 2,
"workerNode": "VPS-1-Node-01 (Helsinki)",
"createdAt": 1727568000000,
"durationSeconds": 10
},
"message": "Job VF-8904 successfully queued at position #1",
"estimatedSeconds": 28
}/api/queue (Batch Payload)Batch Generation & Scene Sequencing
Enqueue multi-scene narrative arcs, episodic scripts, or chapter breakdowns into the sovereign queue in a single atomic request. Scenes execute in strict sequential timeline order, maintaining consistent actress styling and individual progress logs.
- transparent-alpha: Renders with RGBA alpha channel for 1-click drag-and-drop overlay in Premiere, DaVinci, or Final Cut.
- obsidian-vault: Deep studio dark aesthetic (#05070B) with edge rim lighting.
- monochrome-minimal: High-contrast Swiss brutalist black-and-white grading.
- custom-stage: Contextual volumetric stage lighting and environmental depth.
- conversational: Natural fluid cadence with human-like breathing pauses.
- authoritative: Decisive, confident pitch for silicon teardowns and intelligence files.
- whisper: Intimate, low-frequency resonance for mysteries and deep sleep loops.
- dramatic: High-stakes emotional modulation for crime and investigative narratives.
# Enqueue a multi-scene episodic batch
curl -X POST https://avatarity.dev/api/queue \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "usr_9a8b7c6d",
"batchJobs": [
{
"prompt": "Hook: Why retail AI middlemen charge you 1400% markup on compute.",
"actressId": "elena-frost",
"voiceDelivery": "authoritative",
"backgroundMode": "transparent-alpha",
"aspectRatio": "16:9"
},
{
"prompt": "Body: Sovereign infrastructure delivers raw compute at wholesale economics.",
"actressId": "elena-frost",
"voiceDelivery": "conversational",
"backgroundMode": "obsidian-vault",
"aspectRatio": "16:9"
},
{
"prompt": "CTA: Connect to the Avatarity autonomous queue now.",
"actressId": "elena-frost",
"voiceDelivery": "dramatic",
"backgroundMode": "monochrome-minimal",
"aspectRatio": "16:9"
}
]
}'/api/queuePoll Queue Status & Cluster Telemetry
Query current cluster hardware capacity, in-flight job depth, countdown estimation, and finished MP4 binary download links.
# Query personal queue status
curl -X GET "https://avatarity.dev/api/queue?filter=personal&userId=usr_9a8b7c6d" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"/api/queueCancel In-Flight Queue Job
Cancels an in-flight or queued job, frees cluster stream capacity slots, and immediately recalculates queue positions for subsequent jobs.
# Cancel an in-flight or queued job
curl -X DELETE "https://avatarity.dev/api/queue?jobId=VF-8904" \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"/api/healthFleet Health & 100% Capacity Telemetry
Real-time institutional telemetry reporting 100.0% continuous cluster capacity, dynamic split between external paying user demand and autonomous background workload balancing, priority burst gateway status, and SLA compliance metrics. Public endpoint requiring zero authorization.
# Query public fleet health & capacity split
curl -X GET "https://avatarity.dev/api/health"Webhook Callback Specification
Instead of maintaining long-lived HTTP polling sockets, provide a webhookUrl to receive real-time POST events upon job completion. Every webhook request is cryptographically signed using HMAC-SHA256.
Compute the SHA-256 HMAC of the raw request payload bytes using your webhook secret key, then verify against the header using constant-time comparison (crypto.timingSafeEqual or hmac.compare_digest).
/api/generate/videoSubmit Video Generation Job (Veo 3.1)
Dispatches an asynchronous rendering job to the high-priority workhorse pool running Google Veo 3.1. Returns an immediate job identifier for polling or webhook dispatch.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Required | Detailed text prompt describing motion, lighting, and camera drifts. |
| model | string | Optional | Defaults to "veo-3.1-lite-lower-priority" (unmetered quota). |
| aspectRatio | string | Optional | Options: "16:9" (default widescreen), "9:16" (Vertical Reels/Shorts), "1:1". |
| startFrame | string | Optional | Path, URL, or base64 image used as the opening frame to continue video action seamlessly. |
| asyncMode | boolean | Optional | Defaults to true. Queues job and returns immediately with jobId. |
curl -X POST https://avatarity.dev/api/generate/video \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Fast bird-like FPV drone diving through dramatic Elbsandsteingebirge mountain canyons and sandstone rock pinnacles, 8k cinematic",
"model": "veo-3.1-lite-lower-priority",
"aspectRatio": "16:9"
}'/api/generate/imageSubmit High-CTR Image / Thumbnail
Synthesize viral packaging assets using Nano Banana 2 (rapid unmetered ideation) or Nano Banana Pro (8K photorealistic widescreen render).
curl -X POST https://avatarity.dev/api/generate/image \
-H "Authorization: Bearer vf_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Dramatic aerial view of ancient sandstone towers shrouded in dawn fog, 8k octane render --ar 16:9",
"model": "nano-banana-2",
"aspectRatio": "16:9"
}'/api/jobs/:idPoll Generation Job Status
Inspect real-time generation progress, queue latency, and binary media URL for an active jobId.
curl -X GET https://avatarity.dev/api/jobs/vf_job_8f29c1b7a4e0 \
-H "Authorization: Bearer vf_live_YOUR_API_KEY"Quota & Compute Units
Avatarity operates on a transparent wholesale ledger. 1 Unit = $0.001 USD. Units never expire and rollover indefinitely across account lifetime.
| Engine / Model | Compute Rate | Queue SLA | Expiration Policy |
|---|---|---|---|
| Veo 3.1 Lite (Workhorse) | 30 Units ($0.030 / clip) | ~35s per 10s video (3¢ / video) | Never Expire |
| Nano Banana 2.1 (Images) | 3 Units ($0.003 / render) | 4.8s per 1376x768 render (0.3¢ / image) | Never Expire |
| Nano Banana Pro (8K) | 5 Units ($0.005 / render) | High-CTR packaging (0.5¢ / image) | Never Expire |
| HeyGen Avatar Engine (Lane 4) | 250 Units ($0.25 / min) | 1080p Full HD (25¢ / minute) | Never Expire |
| Internal Model 1.8 Avatar | 250 Units ($0.25 / min = $0.004167/s) | Sovereign 3D DiT Mesh (25¢ / minute) | Never Expire |
Rate Limits & Concurrency
Concurrency lanes determine how many rendering jobs run simultaneously. If you exceed your concurrency lane, jobs are placed in warm FIFO queues automatically without failing.
Up to 60 jobs queued in memory.
Up to 300 jobs queued with priority dispatch.
Dedicated warm account pool reservation.
Gateway Errors & Resilience
Avatarity incorporates hardware circuit breakers that automatically recover from rate limits, cooldowns, and upstream UI shifts without client-side intervention.
| Status Code | Error Code | Trigger Condition | Automated Engine Resolution |
|---|---|---|---|
| 400 Bad Request | INVALID_PROMPT | Empty prompt or unsupported aspect ratio | Client must update request body |
| 401 Unauthorized | UNAUTHORIZED | Missing or malformed Bearer key | Verify token begins with vf_live_... |
| 402 Payment Required | QUOTA_EXCEEDED | Ledger units balance is 0 | Deposit minimum $10 to refresh units ledger |
| 429 Rate Limited | CONCURRENCY_LANE_CAP | Tenant concurrency lane full | Engine queues request or dispatches to warm standby pool |
| 503 Degraded | CIRCUIT_TRIPPED | Upstream model rate limit / maintenance | Sovereign GPU fallback circuit activates automatically |