Tencent Hunyuan Image-to-Image API Documentation
Overview
Tencent Cloud’s Hunyuan AI Art Image-to-Image model allows users to edit, restyle, or transform an existing image based on textual prompts. It supports detailed positive and negative text guidance to ensure the generated output aligns with user intentions.Authentication
All API requests require authentication using your API key. Include it in the Authorization header:Submit Image-to-Image Request
Base URL
Endpoint
Request Format
Request Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
image | string | Yes | Input image to be edited. | null |
prompt | string | No | Text description or editing instruction. | "" |
negative_prompt | string | No | What to avoid in the generated image. | "" |
Response
Check Request Status
Endpoint
Response
Request Status Values
| Status | Description |
|---|---|
queued | Request is waiting in the queue |
processing | Image is currently being generated |
success | Image generation completed |
failed | Generation failed (check logs for details) |
cancelled | Request was manually cancelled |
Pricing
- Pricing Type: Per generation
- Price: $0.08 per generation