POST https://api.qhaigc.net/v1/images/generations
Supported Models
qh-draw-x2-preview
Qhaigc’s proprietary professional-grade image model. Strong across diverse styles and scenarios.
qh-draw-x1-pro
Based on open-source SD architecture with natural language understanding. Stable quality output.
dall-e-3
OpenAI’s third-generation model. Up to 8K resolution with rich detail and prompt adherence.
即梦4.0
High-quality Chinese-origin image generation model. Excellent for artistic and stylistic prompts.
Request Parameters
The image generation model to use. Examples:
qh-draw-x2-preview, dall-e-3, 即梦4.0.A text description of the image you want to generate. More detailed prompts generally produce better results.
The output image dimensions in
widthxheight format. Common values:| Value | Aspect Ratio | Use Case |
|---|---|---|
1024x1024 | 1:1 | Avatars, icons, thumbnails |
720x1280 | 9:16 | Social media stories, posters |
1280x720 | 16:9 | Banners, landscape covers |
1024x1792 | 9:16 (HD) | High-resolution portrait |
1792x1024 | 16:9 (HD) | High-resolution landscape |
Number of images to generate. Defaults to
1. Some models only support n=1.Format of the returned image. Use
"url" (default) to receive a hosted URL, or "b64_json" for a base64-encoded string.Response Fields
Unix timestamp of when the image was generated.
Array of generated image objects. Each contains a
url field with the hosted image URL.Code Examples
Example Response
Prompt Writing Tips
A well-structured prompt improves output quality significantly. A good prompt typically follows this pattern:Quality keywords
Quality keywords
Add these to push for higher-fidelity output:
high quality, ultra detailed, 8K resolution, 4K resolution, cinematic, professional photography, exquisite illustration.Style keywords
Style keywords
Specify an art style:
oil painting, watercolor, sketch, anime style, cyberpunk, steampunk, photorealistic, Japanese style, Chinese ink painting.Lighting keywords
Lighting keywords
Control the mood with lighting descriptors:
soft lighting, dramatic shadows, backlit, golden hour, blue hour, neon glow.