qwen-bg
max-ico04
In
Out
max-ico02
Chat
max-ico03
disable
Hunyuan Part
It enables altering, retouching, or extending specific regions of an image while seamlessly preserving the original scene’s style, lighting, and coherence.
Free $1 Tokens for New Members
Text to Speech
                                        const fs = require('fs');
const path = require('path');

const main = async () => {
  const response = await fetch('https://api.ai.cc/v1/images/generations', {
    method: 'POST',
    headers: {
      Authorization: 'Bearer ',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      model: 'tencent/hunyuan-part',
      mesh_url: 'https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb',
    }),
  }).then((res) => res.json());

  console.log('Generation:', response);
};

main();

                                
                                        import requests


def main():
    response = requests.post(
        "https://api.ai.cc/v1/images/generations",
        headers={
            "Authorization": "Bearer ",
            "Content-Type": "application/json",
        },
        json={
            "model": "tencent/hunyuan-part",
            "mesh_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
        },
    )

    response.raise_for_status()
    data = response.json()

    print("Generation:", data)


if __name__ == "__main__":
    main()
Docs

One API 300+ AI Models

Save 20% on Costs & $1 Free Tokens
  • ico01-1
    AI Playground

    Test all API models in the sandbox environment before you integrate.

    We provide more than 300 models to integrate into your app.

    copy-img02img01
qwenmax-bg
img
Hunyuan Part

Product Detail

💡Unleashing Precision: An Overview of Hunyuan Part API

The Hunyuan Part API is meticulously engineered for fine-granular image editing and sophisticated composition tasks. This powerful tool empowers users to selectively modify, refine, or even redraw specific elements within an image – such as background scenery, intricate lighting, various objects, or complex textures. Critically, it achieves these precise alterations while rigorously preserving the original image's coherent style, ambient lighting, and overall scene context. Its versatile applications range from professional photographic retouching and advanced photomontage to the enhancement of images originally generated by other AI models.

Technical Specifications

  • ✓ Model Type: An advanced image-editing, image-inpainting, and region-refinement transformer-based network, integral to the Hunyuan family of models.
  • ✓ Input / Output: Takes an input image (with an optional mask to define the specific region for editing) alongside explicit editing instructions. It then outputs a finely edited image that precisely matches the input's original resolution, style, and lighting characteristics.
  • ✓ Architecture: Built on a unified autoregressive framework, specifically optimized for highly accurate local region editing.
  • ✓ Inference Speed: Benefits from an efficient part-level focus, leading to a significant reduction in processing time compared to solutions requiring full-image editing.
  • ✓ Supported Resolutions: Offers high-resolution compatibility up to 4K, catering to the demands of professional-grade applications.

Performance Benchmarks

  • ★ High Fidelity: Edited regions are characterized by minimal artifacts, blending seamlessly and naturally into the original scene.
  • ★ Lighting and Style Consistency: Demonstrates superior capability in maintaining the original lighting and artistic style, outperforming many generic inpainting models.
  • ★ Advanced Photomontage: Significantly reduces typical seam and edge artifacts in complex photomontage workflows, especially when integrating user-provided image elements.
  • ★ Reduced "Footprint": Achieves a remarkable 20-30% reduction in visible editing "footprint" (e.g., blur, edge banding, inconsistent shadows) in internal tests when compared to older editing models.

Key Features

  • 🔍 Precise Part-Level Editing: Empowers users to target and modify specific areas of an image with unparalleled accuracy, without disturbing the global composition or lighting.
  • 🌟 Seamless Style Preservation: Guarantees a consistent color palette and illumination across all edited regions, ensuring edits blend naturally and are indistinguishable from the original.
  • 🖼 Inpainting and Outpainting Capabilities: Fully supports accurate inpainting for retouching damaged or unwanted areas, and robust outpainting for intelligently extending image content beyond its original boundaries.
  • 🔘 Compatibility with Other AI Models: Designed to enhance and refine images created by various other generative AI models, by allowing for detailed and precise adjustments.
  • 🧠 Advanced Semantic Understanding: Leverages multimodal cues to deeply comprehend complex visual content and user intent, leading to highly refined and contextually appropriate edits.
  • 🎨 High-Fidelity Output: Produces photorealistic edits of exceptional quality, making it ideally suited for demanding professional photography and design tasks.

Hunyuan Part API Pricing

💰 Cost Per Generation: $0.042

Primary Use Cases for Hunyuan Part

  • 📷 Professional Photo Retouching: Ideal for correcting or enhancing portraits, backgrounds, and lighting, as well as seamless object removal or addition, all while rigorously preserving the original photographic style.
  • 🖼 Advanced Photomontage: Enables the sophisticated combination of multiple images or components into a single, cohesive scene with perfectly consistent lighting and artistic style.
  • 🎬 Visual Effects & Advertising: Facilitates precise scene adjustments, meticulous object insertion or removal, and realistic background replacement with natural blending.
  • 🛍 Product & E-commerce Imaging: Perfect for enhancing product photographs, changing backgrounds, adjusting lighting, and fine-tuning reflectance or material consistency for optimal presentation.

Code Sample Reference

For a detailed implementation guide and functional examples, please refer to the official API documentation. A common use case is "Image Mesh-to-Mesh with Tencent/Hunyuan-Part", which provides comprehensive code snippets.

Hunyuan Part vs. Leading AI & Creative Tools

✅ vs. Adobe Photoshop: Hunyuan Part offers highly specialized, precise part-level editing designed for seamless inpainting and outpainting while preserving global scene style and lighting. Photoshop's AI tools focus on broader image manipulation and content-aware fill but often require manual adjustment for natural blending and lighting consistency.

✅ vs. DALL·E: While DALL·E excels at creative image generation and coarse inpainting based on textual prompts, it can sometimes produce stylistic inconsistencies or visible artifacts in detailed regions. Hunyuan Part specializes in detail-preserving local edits that meticulously maintain the exact lighting and style of the original image, making it superior for professional-quality retouching and AI image enhancement workflows.

✅ vs. Stable Diffusion: Stable Diffusion models are popular for versatile text-to-image creation and inpainting but often generate less consistent lighting and style uniformity in edited regions. Hunyuan Part surpasses them with more accurate semantic understanding and photometric coherence during part-level edits, delivering more natural and realistic edits, especially in high-resolution images.

✅ vs. Runway ML: Runway ML provides fast and user-friendly AI-powered editing tools for quick content creation with decent quality, but it may lack fine control over subtle lighting and texture details. Hunyuan Part, in contrast, focuses on precision and photorealism in localized editing, often preferred by professionals requiring high-fidelity output rather than rapid, broad edits.

Frequently Asked Questions (FAQ)

Q1: What is the core function of the Hunyuan Part API?
A1: Its primary purpose is fine-grained image editing and composition, allowing users to precisely modify specific parts of an image while preserving the original style and context.

Q2: Does Hunyuan Part support high-resolution images?
A2: Yes, the API is designed to handle high-resolution input and output up to 4K, ideal for professional use cases.

Q3: How does Hunyuan Part ensure edited images blend naturally?
A3: It features Seamless Style Preservation, which maintains consistent color palettes and illumination across all edited regions for natural integration.

Q4: Can this API be used to extend images or fix damaged areas?
A4: Absolutely. It supports both Inpainting (for repairing/removing) and Outpainting (for extending) image content with high accuracy.

Q5: What is the pricing structure for using the Hunyuan Part API?
A5: The Hunyuan Part API is priced at $0.042 per generation.

Learn how you can transformyour company with AICC APIs

Discover how to revolutionize your business with AICC API! Unlock powerfultools to automate processes, enhance decision-making, and personalize customer experiences.
Contact sales
api-right-1
model-bg02-1

One API
300+ AI Models

Save 20% on Costs