# Tencent Cloud Hunyuan Image Generation API

> Tencent Cloud Hunyuan Image Generation API on Apizie: 18 endpoints (Change Clothes, Generate Avatar, Image Inpainting Removal, Image Outpainting, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:tencent-aiart/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:tencent-aiart`
- Category: Cloud
- Status: byok
- Source: https://www.tencentcloud.com/document/api
- Page: https://apizie.tech/api/cloud/tencent-aiart
- OpenAPI: https://apizie.tech/api/cloud/tencent-aiart/openapi.json

Tencent Cloud API 3.0 for Hunyuan Image Generation (aiart). Every call is signed with TC3-HMAC-SHA256 using your SecretId and SecretKey.

## Endpoints

### Change Clothes
`POST https://apizie.tech/v1/cloud:tencent-aiart/change-clothes` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ModelUrl | string | yes |  |
| ClothesUrl | string | yes |  |
| ClothesType | string | yes |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |
| RspImgType | string | no |  |

### Generate Avatar
`POST https://apizie.tech/v1/cloud:tencent-aiart/generate-avatar` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Type | string | no |  |
| Style | string | no |  |
| InputImage | string | no |  |
| InputUrl | string | no |  |
| Filter | integer | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |
| RspImgType | string | no |  |

### Image Inpainting Removal
`POST https://apizie.tech/v1/cloud:tencent-aiart/image-inpainting-removal` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InputImage | string | no |  |
| InputUrl | string | no |  |
| Mask | string | no |  |
| MaskUrl | string | no |  |
| RspImgType | string | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |

### Image Outpainting
`POST https://apizie.tech/v1/cloud:tencent-aiart/image-outpainting` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Ratio | string | yes |  |
| InputImage | string | no |  |
| InputUrl | string | no |  |
| RspImgType | string | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |

### Query Draw Portrait Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/query-draw-portrait-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| JobId | string | yes |  |

### Query Glam Pic Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/query-glam-pic-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| JobId | string | yes |  |

### Query Meme Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/query-meme-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| JobId | string | yes |  |

### Query Text To Image Pro Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/query-text-to-image-pro-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| JobId | string | yes |  |

### Query Train Portrait Model Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/query-train-portrait-model-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ModelId | string | yes |  |

### Refine Image
`POST https://apizie.tech/v1/cloud:tencent-aiart/refine-image` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| InputUrl | string | no |  |
| InputImage | string | no |  |
| RspImgType | string | no |  |

### Replace Background
`POST https://apizie.tech/v1/cloud:tencent-aiart/replace-background` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ProductUrl | string | yes |  |
| Prompt | string | yes |  |
| NegativePrompt | string | no |  |
| Product | string | no |  |
| BackgroundTemplate | string | no |  |
| MaskUrl | string | no |  |
| Resolution | string | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |
| RspImgType | string | no |  |

### Sketch To Image
`POST https://apizie.tech/v1/cloud:tencent-aiart/sketch-to-image` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Prompt | string | yes |  |
| InputImage | string | no |  |
| InputUrl | string | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |
| RspImgType | string | no |  |

### Submit Draw Portrait Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/submit-draw-portrait-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ModelId | string | yes |  |
| StyleId | string | yes |  |
| ImageNum | integer | yes |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |
| Definition | string | no |  |

### Submit Glam Pic Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/submit-glam-pic-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| TemplateUrl | string | yes |  |
| FaceInfos | array | no |  |
| Num | integer | no |  |
| Style | array | no |  |
| Similarity | number | no |  |
| Clarity | string | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |

### Submit Meme Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/submit-meme-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Pose | string | yes |  |
| InputImage | string | no |  |
| InputUrl | string | no |  |
| Resolution | integer | no |  |
| Text | string | no |  |
| Haircut | boolean | no |  |
| LogoAdd | integer | no |  |
| LogoParam | object | no |  |

### Submit Text To Image Pro Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/submit-text-to-image-pro-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| Prompt | string | yes |  |
| Style | string | no |  |
| Resolution | string | no |  |
| LogoAdd | integer | no |  |
| Engine | string | no |  |
| Revise | integer | no |  |

### Submit Train Portrait Model Job
`POST https://apizie.tech/v1/cloud:tencent-aiart/submit-train-portrait-model-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ModelId | string | yes |  |

### Upload Train Portrait Images
`POST https://apizie.tech/v1/cloud:tencent-aiart/upload-train-portrait-images` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| X-TC-Region | string | no | Region for regional products, for example ap-singapore, ap-guangzhou, na-siliconvalley |
| ModelId | string | yes |  |
| BaseUrl | string | no |  |
| Urls | array | no |  |
| Filter | object | no |  |
| TrainMode | integer | no |  |

## Example
```
curl "https://apizie.tech/v1/cloud:tencent-aiart/change-clothes" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Tencent Cloud Hunyuan Image Generation API?
Create a free Apizie key, then send POST https://apizie.tech/v1/cloud:tencent-aiart/change-clothes with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Tencent Cloud Hunyuan Image Generation API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Tencent Cloud Hunyuan Image Generation itself also needs your own key from tencentcloudapi.com.

### Can AI agents use the Tencent Cloud Hunyuan Image Generation API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:tencent-aiart.

### What is the status of the Tencent Cloud Hunyuan Image Generation API?
Needs your own provider key (bring your own key)
