Text to Image Ai Api

Generate stunning, high-quality images through our state-of-the-art text-to-image AI API. Seamlessly integrate powerful visual generation capabilities into your projects with just a few lines of code.

text to image api

Remarkable Results, Instantly Rendered

Our advanced AI transforms textual descriptions into breathtaking visual representations. From conceptual sketches to photorealistic imagery, IntellectArt turns imagination into pixel-perfect reality.

Every description deserves a visual companion. Our API doesn’t just generate images—it crafts visual stories that capture the essence of your creative vision.

Powerful Use Cases

E-commerce Product Visualization

Instantly generate product images for online stores, marketplaces, and digital catalogs. Reduce photography costs and accelerate inventory representation with AI-powered image creation.

Digital Marketing Content

Create compelling visual content for social media, advertisements, and marketing campaigns. Generate unique, engaging graphics that stand out in crowded digital landscapes.

Game and Media Asset Generation

Rapidly prototype character designs, environment concepts, and in-game assets. Accelerate creative workflows for game developers, animators, and digital storytellers.

Why Choose Us

Unmatched Image Quality

Our proprietary AI models deliver superior image resolution and detail, ensuring professional-grade visual outputs that meet rigorous creative standards.

Lightning-Fast Performance

Experience sub-500ms response times. Our optimized infrastructure guarantees rapid image generation without compromising visual fidelity.

hd ai image
hd ai image

Comprehensive Customization

Fine-tune image generation with extensive parameters. Control style, color palette, complexity, and visual tone with unprecedented precision.

Enterprise-Grade Security

Bank-level encryption and strict data protection protocols ensure your creative processes remain confidential and secure.

Your Path to Visual Innovation Starts Here

Simplify your creative workflow with IntellectArt AI’s intuitive platform. From concept to creation, we’ve reimagined image generation.

mid-banner-1

How It Works

01

Get Your Free Trial

Reach out to us to claim your free trial. You’ll get a set amount of credits to explore both Text-to-Image and Image-to-Image features.

02

Explore Documentation

Comprehensive guides and interactive examples accelerate your integration process.

03

Integrating Our API

Integrating the API is straightforward - our documentation and code examples make getting started a snap even if this is your first experience with APIs!

04

Generating Images

Once everything's set up, the real fun starts: Generating Images! Our API makes creating stunning visuals easy, whether from text prompts or by manipulating existing photos into something completely original!

Example Code

				
					var myHeaders = new Headers();
myHeaders.append("X-Request-req-accessKeyId", "accessKeyId");
myHeaders.append("X-Request-req-accessKeySecret", "accessKeySecret");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
   "prompt": "{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost",
   "n_iter": 1,
   "steps": 25,
   "seed": "1221212",
   "restore_faces": false,
   "enable_hr": false,
   "hr_scale": 2,
   "width": 768,
   "height": 768,
   "negative_prompt": "(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\r\n,",
   "cfg_scale": 27,
   "sampler_index": "DPM++ 2M Karras",
   "hr_second_pass_steps": 20,
   "hr_resize_x": 1024,
   "hr_resize_y": 1024,
   "denoising_strength": 0.55,
   "callbackUrl": "http://127.0.0.1:8087/image/api/callback/sdweb",
   "alwayson_scripts": {
      "sd_model_checkpoint": "revAnimated_v122_7371.safetensors",
      "id_task": "pro1686666",
      "sd_vae": "vae-ft-mse-840000-ema-pruned.ckpt",
      "override_settings": {
         "CLIP_stop_at_last_layers": 2
      },
      "ADetailer": {
         "args": [
            {
               "ad_model": "None",
               "ad_prompt": "",
               "ad_negative_prompt": "",
               "ad_confidence": 0.3,
               "ad_mask_min_ratio": 0,
               "ad_mask_max_ratio": 1,
               "ad_dilate_erode": 32,
               "ad_x_offset": 0,
               "ad_y_offset": 0,
               "ad_mask_merge_invert": "None",
               "ad_mask_blur": 4,
               "ad_denoising_strength": 0.4,
               "ad_inpaint_only_masked": true,
               "ad_inpaint_only_masked_padding": 0,
               "ad_use_inpaint_width_height": false,
               "ad_inpaint_width": 512,
               "ad_inpaint_height": 512,
               "ad_use_steps": true,
               "ad_steps": 28,
               "ad_use_cfg_scale": false,
               "ad_cfg_scale": 7,
               "ad_use_sampler": false,
               "ad_sampler": "DPM++ 2M Karras",
               "ad_use_noise_multiplier": false,
               "ad_noise_multiplier": 1,
               "ad_restore_face": false,
               "ad_controlnet_model": "None",
               "ad_controlnet_module": "None",
               "ad_controlnet_weight": 1,
               "ad_controlnet_guidance_start": 0,
               "ad_controlnet_guidance_end": 1
            }
         ]
      }
   }
});

var requestOptions = {
   method: 'POST',
   headers: myHeaders,
   body: raw,
   redirect: 'follow'
};

fetch("https://api.zhiqite.com/AIGCImgOpenServ/saas/sd/v2/text2image", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
				
			
				
					Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://api.zhiqite.com/AIGCImgOpenServ/saas/sd/v2/text2image")
   .header("X-Request-req-accessKeyId", "accessKeyId")
   .header("X-Request-req-accessKeySecret", "accessKeySecret")
   .header("Content-Type", "application/json")
   .body("{\r\n    \"prompt\": \"{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost\",\r\n    \"n_iter\": 1,\r\n    \"steps\": 25,\r\n    \"seed\":\"1221212\",\r\n    \"restore_faces\": false,\r\n    \"enable_hr\": false,\r\n    \"hr_scale\": 2,\r\n    \"width\": 768,\r\n    \"height\": 768,\r\n    \"negative_prompt\": \"(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\\r\\n,\",\r\n    \"cfg_scale\": 27,\r\n    \"sampler_index\":\"DPM++ 2M Karras\",\r\n    \"hr_second_pass_steps\":20,\r\n    \"hr_resize_x\":1024,\r\n    \"hr_resize_y\":1024,\r\n    \"denoising_strength\": 0.55,\r\n    \"callbackUrl\":\"http://127.0.0.1:8087/image/api/callback/sdweb\",\r\n    \"alwayson_scripts\": {\r\n        \"sd_model_checkpoint\": \"revAnimated_v122_7371.safetensors\",\r\n        \"id_task\": \"pro1686666\",\r\n        \"sd_vae\": \"vae-ft-mse-840000-ema-pruned.ckpt\",\r\n        \"override_settings\": {\r\n            \"CLIP_stop_at_last_layers\": 2\r\n        },\r\n        \"ADetailer\": {\r\n            \"args\": [\r\n                {\r\n                    \"ad_model\": \"None\",\r\n                    \"ad_prompt\": \"\",\r\n                    \"ad_negative_prompt\": \"\",\r\n                    \"ad_confidence\": 0.3,\r\n                    \"ad_mask_min_ratio\": 0.0,\r\n                    \"ad_mask_max_ratio\": 1.0,\r\n                    \"ad_dilate_erode\": 32,\r\n                    \"ad_x_offset\": 0,\r\n                    \"ad_y_offset\": 0,\r\n                    \"ad_mask_merge_invert\": \"None\",\r\n                    \"ad_mask_blur\": 4,\r\n                    \"ad_denoising_strength\": 0.4,\r\n                    \"ad_inpaint_only_masked\": true,\r\n                    \"ad_inpaint_only_masked_padding\": 0,\r\n                    \"ad_use_inpaint_width_height\": false,\r\n                    \"ad_inpaint_width\": 512,\r\n                    \"ad_inpaint_height\": 512,\r\n                    \"ad_use_steps\": true,\r\n                    \"ad_steps\": 28,\r\n                    \"ad_use_cfg_scale\": false,\r\n                    \"ad_cfg_scale\": 7.0,\r\n                    \"ad_use_sampler\": false,\r\n                    \"ad_sampler\": \"DPM++ 2M Karras\",\r\n                    \"ad_use_noise_multiplier\": false,\r\n                    \"ad_noise_multiplier\": 1.0,\r\n                    \"ad_restore_face\": false,\r\n                    \"ad_controlnet_model\": \"None\",\r\n                    \"ad_controlnet_module\": \"None\",\r\n                    \"ad_controlnet_weight\": 1.0,\r\n                    \"ad_controlnet_guidance_start\": 0.0,\r\n                    \"ad_controlnet_guidance_end\": 1.0\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}")
   .asString();
				
			
				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'https://api.zhiqite.com/AIGCImgOpenServ/saas/sd/v2/text2image',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'POST',
   CURLOPT_POSTFIELDS =>'{
    "prompt": "{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost",
    "n_iter": 1,
    "steps": 25,
    "seed":"1221212",
    "restore_faces": false,
    "enable_hr": false,
    "hr_scale": 2,
    "width": 768,
    "height": 768,
    "negative_prompt": "(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\\r\\n,",
    "cfg_scale": 27,
    "sampler_index":"DPM++ 2M Karras",
    "hr_second_pass_steps":20,
    "hr_resize_x":1024,
    "hr_resize_y":1024,
    "denoising_strength": 0.55,
    "callbackUrl":"http://127.0.0.1:8087/image/api/callback/sdweb",
    "alwayson_scripts": {
        "sd_model_checkpoint": "revAnimated_v122_7371.safetensors",
        "id_task": "pro1686666",
        "sd_vae": "vae-ft-mse-840000-ema-pruned.ckpt",
        "override_settings": {
            "CLIP_stop_at_last_layers": 2
        },
        "ADetailer": {
            "args": [
                {
                    "ad_model": "None",
                    "ad_prompt": "",
                    "ad_negative_prompt": "",
                    "ad_confidence": 0.3,
                    "ad_mask_min_ratio": 0.0,
                    "ad_mask_max_ratio": 1.0,
                    "ad_dilate_erode": 32,
                    "ad_x_offset": 0,
                    "ad_y_offset": 0,
                    "ad_mask_merge_invert": "None",
                    "ad_mask_blur": 4,
                    "ad_denoising_strength": 0.4,
                    "ad_inpaint_only_masked": true,
                    "ad_inpaint_only_masked_padding": 0,
                    "ad_use_inpaint_width_height": false,
                    "ad_inpaint_width": 512,
                    "ad_inpaint_height": 512,
                    "ad_use_steps": true,
                    "ad_steps": 28,
                    "ad_use_cfg_scale": false,
                    "ad_cfg_scale": 7.0,
                    "ad_use_sampler": false,
                    "ad_sampler": "DPM++ 2M Karras",
                    "ad_use_noise_multiplier": false,
                    "ad_noise_multiplier": 1.0,
                    "ad_restore_face": false,
                    "ad_controlnet_model": "None",
                    "ad_controlnet_module": "None",
                    "ad_controlnet_weight": 1.0,
                    "ad_controlnet_guidance_start": 0.0,
                    "ad_controlnet_guidance_end": 1.0
                }
            ]
        }
    }
}',
   CURLOPT_HTTPHEADER => array(
      'X-Request-req-accessKeyId: accessKeyId',
      'X-Request-req-accessKeySecret: accessKeySecret',
      'Content-Type: application/json'
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
				
			
				
					import http.client
import json

conn = http.client.HTTPSConnection("api.zhiqite.com")
payload = json.dumps({
   "prompt": "{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost",
   "n_iter": 1,
   "steps": 25,
   "seed": "1221212",
   "restore_faces": False,
   "enable_hr": False,
   "hr_scale": 2,
   "width": 768,
   "height": 768,
   "negative_prompt": "(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\r\n,",
   "cfg_scale": 27,
   "sampler_index": "DPM++ 2M Karras",
   "hr_second_pass_steps": 20,
   "hr_resize_x": 1024,
   "hr_resize_y": 1024,
   "denoising_strength": 0.55,
   "callbackUrl": "http://127.0.0.1:8087/image/api/callback/sdweb",
   "alwayson_scripts": {
      "sd_model_checkpoint": "revAnimated_v122_7371.safetensors",
      "id_task": "pro1686666",
      "sd_vae": "vae-ft-mse-840000-ema-pruned.ckpt",
      "override_settings": {
         "CLIP_stop_at_last_layers": 2
      },
      "ADetailer": {
         "args": [
            {
               "ad_model": "None",
               "ad_prompt": "",
               "ad_negative_prompt": "",
               "ad_confidence": 0.3,
               "ad_mask_min_ratio": 0,
               "ad_mask_max_ratio": 1,
               "ad_dilate_erode": 32,
               "ad_x_offset": 0,
               "ad_y_offset": 0,
               "ad_mask_merge_invert": "None",
               "ad_mask_blur": 4,
               "ad_denoising_strength": 0.4,
               "ad_inpaint_only_masked": True,
               "ad_inpaint_only_masked_padding": 0,
               "ad_use_inpaint_width_height": False,
               "ad_inpaint_width": 512,
               "ad_inpaint_height": 512,
               "ad_use_steps": True,
               "ad_steps": 28,
               "ad_use_cfg_scale": False,
               "ad_cfg_scale": 7,
               "ad_use_sampler": False,
               "ad_sampler": "DPM++ 2M Karras",
               "ad_use_noise_multiplier": False,
               "ad_noise_multiplier": 1,
               "ad_restore_face": False,
               "ad_controlnet_model": "None",
               "ad_controlnet_module": "None",
               "ad_controlnet_weight": 1,
               "ad_controlnet_guidance_start": 0,
               "ad_controlnet_guidance_end": 1
            }
         ]
      }
   }
})
headers = {
   'X-Request-req-accessKeyId': 'accessKeyId',
   'X-Request-req-accessKeySecret': 'accessKeySecret',
   'Content-Type': 'application/json'
}
conn.request("POST", "/AIGCImgOpenServ/saas/sd/v2/text2image", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
				
			
				
					POST /AIGCImgOpenServ/saas/sd/v2/text2image HTTP/1.1
Host: api.zhiqite.com
X-Request-req-accessKeyId: accessKeyId
X-Request-req-accessKeySecret: accessKeySecret
Content-Type: application/json
Content-Length: 3193

{
    "prompt": "{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost",
    "n_iter": 1,
    "steps": 25,
    "seed":"1221212",
    "restore_faces": false,
    "enable_hr": false,
    "hr_scale": 2,
    "width": 768,
    "height": 768,
    "negative_prompt": "(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\r\n,",
    "cfg_scale": 27,
    "sampler_index":"DPM++ 2M Karras",
    "hr_second_pass_steps":20,
    "hr_resize_x":1024,
    "hr_resize_y":1024,
    "denoising_strength": 0.55,
    "callbackUrl":"http://127.0.0.1:8087/image/api/callback/sdweb",
    "alwayson_scripts": {
        "sd_model_checkpoint": "revAnimated_v122_7371.safetensors",
        "id_task": "pro1686666",
        "sd_vae": "vae-ft-mse-840000-ema-pruned.ckpt",
        "override_settings": {
            "CLIP_stop_at_last_layers": 2
        },
        "ADetailer": {
            "args": [
                {
                    "ad_model": "None",
                    "ad_prompt": "",
                    "ad_negative_prompt": "",
                    "ad_confidence": 0.3,
                    "ad_mask_min_ratio": 0.0,
                    "ad_mask_max_ratio": 1.0,
                    "ad_dilate_erode": 32,
                    "ad_x_offset": 0,
                    "ad_y_offset": 0,
                    "ad_mask_merge_invert": "None",
                    "ad_mask_blur": 4,
                    "ad_denoising_strength": 0.4,
                    "ad_inpaint_only_masked": true,
                    "ad_inpaint_only_masked_padding": 0,
                    "ad_use_inpaint_width_height": false,
                    "ad_inpaint_width": 512,
                    "ad_inpaint_height": 512,
                    "ad_use_steps": true,
                    "ad_steps": 28,
                    "ad_use_cfg_scale": false,
                    "ad_cfg_scale": 7.0,
                    "ad_use_sampler": false,
                    "ad_sampler": "DPM++ 2M Karras",
                    "ad_use_noise_multiplier": false,
                    "ad_noise_multiplier": 1.0,
                    "ad_restore_face": false,
                    "ad_controlnet_model": "None",
                    "ad_controlnet_module": "None",
                    "ad_controlnet_weight": 1.0,
                    "ad_controlnet_guidance_start": 0.0,
                    "ad_controlnet_guidance_end": 1.0
                }
            ]
        }
    }
}
				
			
				
					POST /AIGCImgOpenServ/saas/sd/v2/text2image HTTP/1.1
Host: api.zhiqite.com
X-Request-req-accessKeyId: accessKeyId
X-Request-req-accessKeySecret: accessKeySecret
Content-Type: application/json
Content-Length: 3193

{
    "prompt": "{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost",
    "n_iter": 1,
    "steps": 25,
    "seed":"1221212",
    "restore_faces": false,
    "enable_hr": false,
    "hr_scale": 2,
    "width": 768,
    "height": 768,
    "negative_prompt": "(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\r\n,",
    "cfg_scale": 27,
    "sampler_index":"DPM++ 2M Karras",
    "hr_second_pass_steps":20,
    "hr_resize_x":1024,
    "hr_resize_y":1024,
    "denoising_strength": 0.55,
    "callbackUrl":"http://127.0.0.1:8087/image/api/callback/sdweb",
    "alwayson_scripts": {
        "sd_model_checkpoint": "revAnimated_v122_7371.safetensors",
        "id_task": "pro1686666",
        "sd_vae": "vae-ft-mse-840000-ema-pruned.ckpt",
        "override_settings": {
            "CLIP_stop_at_last_layers": 2
        },
        "ADetailer": {
            "args": [
                {
                    "ad_model": "None",
                    "ad_prompt": "",
                    "ad_negative_prompt": "",
                    "ad_confidence": 0.3,
                    "ad_mask_min_ratio": 0.0,
                    "ad_mask_max_ratio": 1.0,
                    "ad_dilate_erode": 32,
                    "ad_x_offset": 0,
                    "ad_y_offset": 0,
                    "ad_mask_merge_invert": "None",
                    "ad_mask_blur": 4,
                    "ad_denoising_strength": 0.4,
                    "ad_inpaint_only_masked": true,
                    "ad_inpaint_only_masked_padding": 0,
                    "ad_use_inpaint_width_height": false,
                    "ad_inpaint_width": 512,
                    "ad_inpaint_height": 512,
                    "ad_use_steps": true,
                    "ad_steps": 28,
                    "ad_use_cfg_scale": false,
                    "ad_cfg_scale": 7.0,
                    "ad_use_sampler": false,
                    "ad_sampler": "DPM++ 2M Karras",
                    "ad_use_noise_multiplier": false,
                    "ad_noise_multiplier": 1.0,
                    "ad_restore_face": false,
                    "ad_controlnet_model": "None",
                    "ad_controlnet_module": "None",
                    "ad_controlnet_weight": 1.0,
                    "ad_controlnet_guidance_start": 0.0,
                    "ad_controlnet_guidance_end": 1.0
                }
            ]
        }
    }
}
				
			
				
					CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
   curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
   curl_easy_setopt(curl, CURLOPT_URL, "https://api.zhiqite.com/AIGCImgOpenServ/saas/sd/v2/text2image");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
   struct curl_slist *headers = NULL;
   headers = curl_slist_append(headers, "X-Request-req-accessKeyId: accessKeyId");
   headers = curl_slist_append(headers, "X-Request-req-accessKeySecret: accessKeySecret");
   headers = curl_slist_append(headers, "Content-Type: application/json");
   curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
   const char *data = "{\r\n    \"prompt\": \"{best quality}, {{masterpiece}}, {highres}, original, extremely detailed,incredibly_absurdres,intricate detail,(detailed face),(face:1.2),1girl , kneeling down, from below , crying, sitting, ghost\",\r\n    \"n_iter\": 1,\r\n    \"steps\": 25,\r\n    \"seed\":\"1221212\",\r\n    \"restore_faces\": false,\r\n    \"enable_hr\": false,\r\n    \"hr_scale\": 2,\r\n    \"width\": 768,\r\n    \"height\": 768,\r\n    \"negative_prompt\": \"(nsfw:1.5),(nude:1.3), (child Pornography:1.2),molestation,incest,rape,about to be raped,(sex:1.3),uncensored,EasyNegative,(worst quality, low quality:1.4), (((distorted hands))),((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((b&w)), (((duplicate))), ((morbid)), ((mutilated)),poorly drawn face, out of frame, mutation, mutated, (text), signature, monster,watermark,extra fingers,fewer fingers, Wrong hands,wrong fingers,fingers crossed,styled fingers,fingers missed,missed fingers,cheese fingers, chocolate fingers,fingers on fingers,closed fist, fighting fist,fist ,hands with fist,many fists,only hands with wrong fists,fingers crossed,\\r\\n,\",\r\n    \"cfg_scale\": 27,\r\n    \"sampler_index\":\"DPM++ 2M Karras\",\r\n    \"hr_second_pass_steps\":20,\r\n    \"hr_resize_x\":1024,\r\n    \"hr_resize_y\":1024,\r\n    \"denoising_strength\": 0.55,\r\n    \"callbackUrl\":\"http://127.0.0.1:8087/image/api/callback/sdweb\",\r\n    \"alwayson_scripts\": {\r\n        \"sd_model_checkpoint\": \"revAnimated_v122_7371.safetensors\",\r\n        \"id_task\": \"pro1686666\",\r\n        \"sd_vae\": \"vae-ft-mse-840000-ema-pruned.ckpt\",\r\n        \"override_settings\": {\r\n            \"CLIP_stop_at_last_layers\": 2\r\n        },\r\n        \"ADetailer\": {\r\n            \"args\": [\r\n                {\r\n                    \"ad_model\": \"None\",\r\n                    \"ad_prompt\": \"\",\r\n                    \"ad_negative_prompt\": \"\",\r\n                    \"ad_confidence\": 0.3,\r\n                    \"ad_mask_min_ratio\": 0.0,\r\n                    \"ad_mask_max_ratio\": 1.0,\r\n                    \"ad_dilate_erode\": 32,\r\n                    \"ad_x_offset\": 0,\r\n                    \"ad_y_offset\": 0,\r\n                    \"ad_mask_merge_invert\": \"None\",\r\n                    \"ad_mask_blur\": 4,\r\n                    \"ad_denoising_strength\": 0.4,\r\n                    \"ad_inpaint_only_masked\": true,\r\n                    \"ad_inpaint_only_masked_padding\": 0,\r\n                    \"ad_use_inpaint_width_height\": false,\r\n                    \"ad_inpaint_width\": 512,\r\n                    \"ad_inpaint_height\": 512,\r\n                    \"ad_use_steps\": true,\r\n                    \"ad_steps\": 28,\r\n                    \"ad_use_cfg_scale\": false,\r\n                    \"ad_cfg_scale\": 7.0,\r\n                    \"ad_use_sampler\": false,\r\n                    \"ad_sampler\": \"DPM++ 2M Karras\",\r\n                    \"ad_use_noise_multiplier\": false,\r\n                    \"ad_noise_multiplier\": 1.0,\r\n                    \"ad_restore_face\": false,\r\n                    \"ad_controlnet_model\": \"None\",\r\n                    \"ad_controlnet_module\": \"None\",\r\n                    \"ad_controlnet_weight\": 1.0,\r\n                    \"ad_controlnet_guidance_start\": 0.0,\r\n                    \"ad_controlnet_guidance_end\": 1.0\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}";
   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
   res = curl_easy_perform(curl);
}
curl_easy_cleanup(curl);
				
			

Frequently Asked Questions

How accurate are the generated images?

Our AI models achieve up to 95% semantic accuracy, translating text descriptions into visually compelling representations.

We offer multiple resolution tiers: 1080p, 4K, and 8K, catering to diverse project requirements.

Yes, we provide free trial before you buy it.

At present, our API supports creating and transforming images in common formats like JPEG, PNG and GIF. If there are specific requirements that need meeting, don’t hesitate to get in touch and see if we can accommodate.

We implement bank-grade encryption and follow strict GDPR and CCPA compliance protocols.

Absolutely. Specify style parameters like photorealistic, artistic, sketch, or genre-specific aesthetics.

Our infrastructure guarantees sub-500ms response times for most generation requests.

Flexible plans range from free tier to enterprise-level unlimited generations.

24/7 technical support through documentation, community forums, and dedicated enterprise support channels.

Text to Image Showcase

Want to Get Your Free Trial?

Contact Us Now

For customer support inquiries please reach out us by the form. Our feedback process values all input from customers like yourself so we welcome hearing any suggestions or feature requests you might have!

Scroll to Top

Contact Us Get Free Trial