hy-image-v3.5-preview API
Generate images from text or up to five references with Tencent’s hy-image-v3.5-preview on APISea.
hy-image-v3.5-previewתמחור API של hy-image-v3.5-preview
כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.
| אפשרות | APISea | רשמי | חיסכון |
|---|---|---|---|
| ברירת מחדלברירת מחדל | $0.02112 | $0.024 | −12% |
| 1K | $0.02112 | $0.024 | −12% |
| 2K | $0.02112 | $0.024 | −12% |
| 4K | $0.02816 | $0.032 | −12% |
המחירים הם לכל תמונה.
מהו hy-image-v3.5-preview?
Tencent’s Hunyuan Image model, hy-image-v3.5-preview, supports text-to-image and reference-based image generation on APISea. Use a nonempty Chinese or English prompt to describe a new image or an edit, optionally adding up to five publicly accessible reference images. Each request generates one image. Controls include a negative prompt, a non-negative seed, aspect ratio selection, and 1K, 2K, or 4K output tiers. You can also specify exact pixel dimensions within the documented limits.
Call the asynchronous image generation endpoint using your APISea key and the base URL https://api.apisea.ai/v1, then query the returned task ID for status and results. APISea bills per image: Default, 1K, and 2K each cost $0.02112 per image; 4K costs $0.02816 per image. The default configuration is about 12% below the provider list price. Billing is only for successful requests, and failed image tasks are fully refunded.
המאפיינים הבולטים של hy-image-v3.5-preview
Text and Reference Inputs
Generate from a Chinese or English prompt, or supply up to five public reference image URLs through the same endpoint. Reference images support JPEG, PNG, and WEBP.
Flexible Output Dimensions
Choose 1K, 2K, or 4K output with supported aspect ratios, or specify exact pixel dimensions. Paired width and height parameters take precedence over size and resolution.
Prompt and Seed Controls
Use negative_prompt to describe unwanted content and a non-negative seed to control the random seed. A seed of 0 or an omitted seed uses a random value.
Optional Input Moderation
Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. It defaults to false, which adds no moderation request cost or latency.
איך לקרוא ל-API של hy-image-v3.5-preview ב-4 שלבים
- 01
יצירת מפתח API
יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.
- 02
הגדרת כתובת הבסיס
יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.
- 03
שליחת הבקשה
יש לקרוא ל-POST /v1/images/generations עם "model": "hy-image-v3.5-preview" והפרמטרים שלהלן.
- 04
טיפול בתגובה
התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.
דוגמאות לבקשות
תיעוד: Hy-Image-3.5 Preview Image Generationcurl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "hy-image-v3.5-preview",
"prompt": "A golden retriever running on a beach in warm evening light",
"size": "16:9",
"resolution": "2K"
}'פרמטרים
| פרמטר | סוג | נדרש | ברירת מחדל | תיאור |
|---|---|---|---|---|
model | string | נדרש | — | Must be `hy-image-v3.5-preview`. |
nsfw_check | boolean | אופציונלי | false | Whether to run content moderation before submitting the image task. |
prompt | string | נדרש | — | Text description for image generation or editing. Supports Chinese and English; must not be empty. |
size | string | אופציונלי | auto | Output aspect ratio or exact pixel dimensions. |
resolution | string | אופציונלי | 1K | Output resolution tier: `1K`, `2K`, or `4K`; default: `1K`. |
width | integer | אופציונלי | — | Exact output width in pixels. Must be provided together with `height`; takes precedence over `size` and `resolution`. |
height | integer | אופציונלי | — | Exact output height in pixels. Must be provided together with `width`. |
image_urls | string[] | אופציונלי | — | Public reference image URLs, up to 5 images. Omit for text-to-image; include for reference-based generation using the same endpoint. |
negative_prompt | string | אופציונלי | — | Content you do not want in the image. |
seed | integer | אופציונלי | — | Random seed; must be a non-negative integer. `0` or omission uses a random value. |
n | integer | אופציונלי | 1 | Only one image is generated per request. Must be `1`; other values return HTTP 400. |
מה אפשר לבנות עם hy-image-v3.5-preview
Creative Asset Workflows
Build a tool that turns written creative briefs into individual images, with aspect ratio choices for square, portrait, and landscape layouts.
Reference-Based Image Editing
Let users upload publicly accessible reference images and describe the desired edits in a Chinese or English prompt.
Custom-Size Design Assets
Generate images for layouts that require exact dimensions by specifying paired width and height values within the supported pixel limits.
Image Generation Job Queues
Build an asynchronous production workflow that submits individual image tasks, tracks their status, and downloads completed assets before their URLs expire.
טיפים לקבלת תוצאות טובות יותר
- 01
Choose Dimensions Explicitly
Use paired width and height for exact dimensions; they override size and resolution. Otherwise, combine a supported aspect ratio with a resolution tier.
- 02
Compare Tier Costs
1K and 2K both cost $0.02112 per image, while 4K costs $0.02816 per image. With aspect-ratio sizing, billing follows the resolution tier.
- 03
Prepare Accessible References
Provide no more than five public JPEG, PNG, or WEBP URLs. Each reference image should preferably be under 7MB.
- 04
Poll and Save Results
Read the task ID from data[0].task_id and poll every 3–5 seconds, with a recommended overall client timeout of 5 minutes. Stop at completed or failed, and save completed images before expires_at.
מגבלות ודברים שכדאי לדעת
Each request generates one image; n must be 1, and other values return HTTP 400.
Exact width and height must each be 256–8192 pixels, with a total of no more than 8,294,400 pixels.
Generation is asynchronous, and completed images must be downloaded before their stated expiry.
שאלות נפוצות על API של hy-image-v3.5-preview
How much does hy-image-v3.5-preview cost on APISea?
Default, 1K, and 2K each cost $0.02112 per image, compared with a provider list price of $0.024 per image. 4K costs $0.02816 per image, compared with a provider list price of $0.032 per image; the default configuration is about 12% below list price.
How do I call hy-image-v3.5-preview through the API?
Send a POST request to https://api.apisea.ai/v1/images/generations with your APISea key in Bearer authentication, model set to hy-image-v3.5-preview, and a nonempty prompt. Retrieve data[0].task_id from the submission response and query the task for its status and image result.
Does it support reference images and image editing?
Yes. Include up to five publicly accessible JPEG, PNG, or WEBP URLs in image_urls and use the prompt to describe the generation or edit; omit image_urls for text-to-image.
Which resolution and size parameters are supported?
The resolution tiers are 1K, 2K, and 4K, with 1K as the default. Use size for a supported aspect ratio or exact pixel dimensions, or provide both width and height to override size and resolution; exact dimensions must meet the documented per-axis and total-pixel limits.
What happens if an image generation task fails?
Stop polling when the task status is failed and read data.error.message for the reason. The charge is fully refunded; prompt violations and content moderation failures also return this status.
Can I use generated images commercially?
Commercial use is subject to the provider's terms. The supplied documentation does not specify commercial licensing rights, so review Tencent’s applicable terms before using outputs commercially.
מודלים קשורים
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
qwen-image-3.0-pro
wan2.7-image
wan2.7-image-pro
z-image-turbo
flux-2-flex
מתחילים לבנות עם hy-image-v3.5-preview
מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.