# Instant ID Generate Avatar Instant ID is making realistic images of real people instantly ## API Information - **Model Slug:** instant-id - **Branded URL:** https://www.eachlabs.ai/tencent/instant-id/instant-id - **Provider:** Tencent - **Category:** Image to Image - **Output Type:** array - **Status:** active - **Base Cost:** $0.00108 per processing second - **Estimated Processing Time:** 32 seconds - **Interactive Demo:** https://www.eachlabs.ai/ai-models/instant-id ## Pricing - **Charge Type:** dynamic - **Estimate:** $0.00108 per processing second - **Pricing Details:** default: $0.00108 ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | image | string | Yes | - | - | Input face image | | pose_image | string | No | - | - | (Optional) reference pose image | | prompt | string | No | a person | - | Input prompt | | negative_prompt | string | No | - | - | Input Negative Prompt | | num_inference_steps | integer | No | 4 | - | Number of denoising steps | | sdxl_weights | string | No | stable-diffusion-xl-base-1.0 | stable-diffusion-xl-base-1.0, juggernaut-xl-v8, afrodite-xl-v2, albedobase-xl-20, albedobase-xl-v13, animagine-xl-30, anime-art-diffusion-xl, anime-illust-diffusion-xl, dreamshaper-xl, dynavision-xl-v0610, guofeng4-xl, nightvision-xl-0791, omnigen-xl, pony-diffusion-v6-xl, protovision-xl-high-fidel | An enumeration. | | width | integer | No | 640 | - | Width of output image | | height | integer | No | 640 | - | Height of output image | | scheduler | string | No | EulerDiscreteScheduler | DEISMultistepScheduler, HeunDiscreteScheduler, EulerDiscreteScheduler, DPMSolverMultistepScheduler, DPMSolverMultistepScheduler-Karras, DPMSolverMultistepScheduler-Karras-SDE | An enumeration. | | guidance_scale | number | No | 7.5 | - | Scale for classifier-free guidance | | ip_adapter_scale | number | No | 0.8 | - | Scale for image adapter strength (for detail) | | controlnet_conditioning_scale | number | No | 0.8 | - | Scale for IdentityNet strength (for fidelity) | | enable_pose_controlnet | boolean | No | true | - | Enable Openpose ControlNet, overrides strength if set to false | | pose_strength | number | No | 0.4 | - | Openpose ControlNet strength, effective only if enable_pose_controlnet is true | | enable_canny_controlnet | boolean | No | - | - | Activates a specific control mechanism that uses edge detection to guide image generation. | | canny_strength | number | No | 0.3 | - | Canny ControlNet strength, effective only if enable_canny_controlnet is true | | enable_depth_controlnet | boolean | No | - | - | Enable Depth ControlNet, overrides strength if set to false | | depth_strength | number | No | 0.5 | - | Depth ControlNet strength, effective only if enable_depth_controlnet is true | | enable_lcm | boolean | No | - | - | Enable Fast Inference with LCM (Latent Consistency Models) - speeds up inference steps, trade-off is the quality of the generated image. | | lcm_num_inference_steps | integer | No | 5 | - | Only used when enable_lcm is set to True, Number of denoising steps when using LCM | | lcm_guidance_scale | number | No | 1.5 | - | Only used when enable_lcm is set to True, Scale for classifier-free guidance when using LCM | | enhance_nonface_region | boolean | No | true | - | Enhance non-face region | | seed | integer | No | - | 1–0 | Random seed. Leave blank to randomize the seed | | disable_safety_checker | boolean | No | - | - | Disable safety checker for generated images | ## Example Request ```bash curl -X POST https://api.eachlabs.ai/v1/prediction/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "instant-id", "input": { "image": "https://cdn-us.eachlabs.ai/defaults/2e0780369a7e50efaf6a70c32264bc585ce56729f169c7e4ac44ac60b1e0aeb3.webp" } }' ``` ## Output Schema Response returned by `GET /v1/prediction/{id}` when the job completes: ```json { "status": "success", "predictionID": "string", "output": "array", "metrics": { "predict_time": "number (seconds)" } } ``` ## Polling ```bash curl https://api.eachlabs.ai/v1/prediction/{PREDICTION_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` | Status | Meaning | |--------|---------| | `processing` | Still running — poll again | | `success` | Done — read `output` | | `error` | Failed — read `message` / `details` | ## Webhook (alternative to polling) Pass `"webhook_url": "https://your.host/path"` in the create request. Eachlabs POSTs this payload when the job ends: ```json { "exec_id": "prediction-uuid", "status": "succeeded", "output": "https://...", "error": "" } ``` `status` is `"succeeded"` or `"failed"`. `exec_id` equals the `predictionID` from create. Return 2xx within 30 seconds. ## Errors Error body: `{ "status": "error", "message": "...", "details": "..." }` | Code | Meaning | |------|---------| | `400` | Invalid input | | `401` | Missing / invalid `Authorization` bearer token | | `404` | Unknown model or prediction id | | `429` | Rate limit — 100 creates / min, 10 concurrent per key | | `5xx` | Retry with backoff | ## Overview **instant-id — Image-to-Image AI Model** instant-id from Tencent delivers realistic image-to-image transformations, enabling instant generation of photorealistic depictions of real people from reference photos and text prompts. Part of Tencent's instant-id family, this **image-to-image AI model** excels at preserving facial identity and details, solving the challenge of creating consistent, high-fidelity portraits without extensive training data. Developers and creators searching for **Tencent image-to-image** solutions find instant-id ideal for rapid, accurate edits in e-commerce and content pipelines. Powered by Tencent's advanced multimodal architecture, instant-id supports seamless reference-based generation, producing outputs that maintain intricate facial features, expressions, and lighting from input images. This makes it a go-to for **image-to-image AI model** applications requiring identity consistency across modifications. ## Usage Notes - API Base URL: `https://api.eachlabs.ai/v1` - Authentication: send `Authorization: Bearer YOUR_API_KEY`. Generate a key from the Eachlabs dashboard at https://www.eachlabs.ai/dashboard/api-keys. - File-typed parameters (`*_url`, `image_url`, `video_url`, `audio_url`, etc.) accept publicly-reachable HTTPS URLs only. Upload your asset first (GCS / S3 / your CDN) and pass the resulting URL. Data-URIs and localhost URLs are rejected. - For structured parameters (arrays / objects) send real JSON values, not stringified payloads. - Monetary values are reported in USD; per-token / per-megapixel rates may be billed in micro-cents internally. - Prefer `webhook_url` over polling for long-running predictions — see the Webhook Callback section.