AI Image Generator API

Unleash Your Creative Potential with Text-to-Image Conversion

Create Eye-Catching Visuals From Text and Images

Welcome to our AI Image Generator API, an innovative solution designed to make your creative visions come to life. Whether you need high-quality visuals generated from text descriptions or enhance and transform existing ones, our API provides flexibility and speed you need. Support for both Text-to-Image generation as well as Image-to-Image transformation make us an invaluable solution for designers, artists, marketers, businesses looking to innovate visual content creation and elevate existing images.

Start experiencing our API today for free – claim your free trial and witness first-hand its power! Explore its capabilities without incurring upfront costs to witness how our API can transform creative workflows and maximize efficiency.

Express Your Creativity with Two Powerful Modes

Text-to-Image

Our Text-to-Image feature lets you generate high-quality images based solely on textual descriptions, making our AI’s transformation of them into breathtaking visuals almost instantaneous and perfect for creating artwork, designing products or conceptualizing marketing materials in seconds.

Image-to-Image

Our Image-to-Image feature takes existing photos and converts them into something completely different with just a few clicks, making modifications, enhancements, or reimaginations easy and without hassle. Change style, colors or composition easily without expending extra energy or time on this process – AI will get the result quickly with minimal effort required on your part.

Why Choose Us

Speed

Create high-quality images quickly, in as little as 2 seconds – thanks to our API’s efficient workflows designed for fast image production, saving valuable time for you and your organization.

High Resolution

Enjoy professional-grade results by creating images at up to 2048×2048 resolution, ideal for web, print and marketing applications.

Affordable

With our pricing structure, accessing powerful AI capabilities at a fraction of the cost associated with traditional design tools or manual creation can now become accessible and more cost effective than ever!

Free Trial

 Want a taste of everything our API can do before making your commitment? No problem; we offer a free trial period where you can test both Text-to-Image and Image-to-Image features without incurring costs! Reach out today and activate it now!

Images Generation as low as $0.005 each

Generate images via our API at just $0.005 per image. Contact us for a custom quote and get a free trial!

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

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!

03

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);
				
			

Real-World Applications

Our API is adaptable and useful in multiple industries. Here are just a few ways users are making use of its powerful image generation features.

Creative Art Projects

Artists and designers can utilize our Text-to-Image feature to quickly generate concept art or complete pieces based on text descriptions, while Image-to-Image serves as an excellent way to update existing pieces so as to reflect new styles or concepts.

Marketing & Advertising

Marketers can quickly produce high-quality visuals for advertisements, social media posts and promotional materials quickly in order to save both time and enhance creative campaigns.

E-Commerce

E-commerce businesses can utilize the Image-to-Image feature of Magento Commerce’s Image Editor to enhance product images or create variations for campaigns using Image-to-Image; this helps increase conversion rates while streamlining product image creation processes.

Design & Product Prototyping

Product designers can quickly generate prototypes or visualize new product concepts before physical production starts with our API’s multiple design variations without needing extensive design skills.

Please Review Our Frequently Asked Questions (FAQs)

How Can I Utilize Your APIs?

Reach Out To Us To Begin Exploring Text-to-Image And Image-to-Image Features, And then Utilize Our Comprehensive Documents To Integrate API In Your Project Or Platform.

  • Text-to-Image: With this feature, it is now possible to generate images directly from text descriptions of scenes and objects; just tell an AI what information to gather for an accurate representation based on what your input.
  • Image-to-Image: With this feature, you can upload an existing image, and the AI will customize it according to your specifications – styles, colors or even adding themes if you choose!

Yes, our API can be utilized both personally and commercially. From designing products, marketing content creation or app building projects – to using it within business workflows! – the integration of our API is accessible for everyone’s benefit.

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.

Yes, our free trials come equipped with limited credits in order to allow for testing purposes. After you run out, either upgrade to one of our paid plans or contact us directly for further support.

Should your usage exceed what’s provided during our free trial period, affordable pricing plans – charged per image created – offer attractive alternatives for expanding beyond initial credits available during free trials. High volume users may contact us to negotiate custom prices and discounts tailored specifically for them.

Our API was built for speed. On average, images should be generated within two seconds after making your request; larger or more complex transformations may take additional seconds but our goal is always to deliver results as rapidly as possible.

Images with resolutions up to 2048×2048 pixels can be generated, making them suitable for most professional uses such as website design, product development and print materials. We ensure quality remains high even for larger image sizes.

Yes, we provide tailored model training solutions tailored specifically to specific industries or use cases. If you require something bespoke that satisfies the unique requirements of your business or creative project, don’t hesitate to get in touch and we will explore customisation options which best meet them.

Yes, our API supports batch processing to enable users to generate or transform multiple images simultaneously – perfect for projects, marketing campaigns or product catalogs that need numerous images at the same time.

Our team would be more than delighted to assist! We offer comprehensive documentation, code samples and integration guides in order to facilitate a smooth experience for you. Should any issues or inquiries arise during implementation, our support staff is readily available by email and live chat – you won’t find better assistance anywhere!

Our team would be more than delighted to assist! We offer comprehensive documentation, code samples and integration guides in order to facilitate a smooth experience for you. Should any issues or inquiries arise during implementation, our support staff is readily available by email and live chat – you won’t find better assistance anywhere!

Yes, we provide volume-based pricing and customized plans to businesses with heavy usage. If yours is an expansive enterprise or has specific requirements, contact us so that we may customize a solution specifically tailored for you.

At Blue Chip Software Solutions we provide 24/7 customer support to assist with technical or billing issues, whether via email, live chat or our support portal. Furthermore, our knowledge base contains common troubleshooting steps and helpful hints.

Yes, we take security and privacy of your data seriously. All requests made through our API are encrypted for added protection; as well as following industry best practices when it comes to security and privacy. Your generated images as well as any submitted data remain safe with us.

Have any inquiries about claiming your trial offer, or need some extra help getting setup with us? Reach out! Our friendly staff would love to assist. We’re more than happy to be of assistance!

AI 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