Input
POST https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream HTTP/1.1

Content-Type: application/json
Cache-Control: no-cache

{
    "prompt": "Image of Bird"
}
import urllib.request, json

try:
    url = "https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream"

    hdr ={
    # Request headers
    'Content-Type': 'application/json',
    'Cache-Control': 'no-cache',
    }

    # Request body
    data =  
    data = json.dumps(data)
    req = urllib.request.Request(url, headers=hdr, data = bytes(data.encode("utf-8")))

    req.get_method = lambda: 'POST'
    response = urllib.request.urlopen(req)
    print(response.getcode())
    print(response.read())
    except Exception as e:
    print(e)

// Request body
const body = {
    "prompt": "Image of Bird"
};

fetch('https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream', {
        method: 'POST',
        body: JSON.stringify(body),
        // Request headers
        headers: {
            'Content-Type': 'application/json',
            'Cache-Control': 'no-cache',}
    })
    .then(response => {
        console.log(response.status);
        console.log(response.text());
    })
    .catch(err => console.error(err));
curl -v -X POST "https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream" -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data-raw "{
    \"prompt\": \"Image of Bird\"
}"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.io.UnsupportedEncodingException;
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.FileInputStream;

public class HelloWorld {

  public static void main(String[] args) {
    try {
        String urlString = "https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream";
        URL url = new URL(urlString);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();

        //Request headers
    connection.setRequestProperty("Content-Type", "application/json");
    
    connection.setRequestProperty("Cache-Control", "no-cache");
    
        connection.setRequestMethod("POST");

        // Request body
        connection.setDoOutput(true);
        connection
            .getOutputStream()
            .write(
             "{ \"prompt\": \"Image of Bird\" }".getBytes()
             );
    
        int status = connection.getResponseCode();
        System.out.println(status);

        BufferedReader in = new BufferedReader(
            new InputStreamReader(connection.getInputStream())
        );
        String inputLine;
        StringBuffer content = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            content.append(inputLine);
        }
        in.close();
        System.out.println(content);

        connection.disconnect();
    } catch (Exception ex) {
      System.out.print("exception:" + ex.getMessage());
    }
  }
}

$url = "https://gateway.appypie.com/dreamshaper/v1/getDreamshaperImageStream";
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

# Request headers
$headers = array(
    'Content-Type: application/json',
    'Cache-Control: no-cache',);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

# Request body
$request_body = '{
    "prompt": "Image of Bird"
}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);

$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);

Output
DreamShaper-8 LCM API

DreamShaper-8 LCM API: Fine-tuned for Photorealism with Unmatched Image Diversity

meta

DreamShaper-8 LCM is a cutting-edge AI image generation tool, fine-tuned for photorealism while offering a vast range of image diversity. Built on the SD1.5 base model, it ensures each output is rich in detail, structurally accurate, and vibrant in color. Whether you're working on digital media, advertising, or creative projects, DreamShaper-8 LCM adapts to your needs, allowing users to generate anything from lifelike environments to imaginative designs. Its advanced model parameters and high-resolution datasets guarantee exceptional visual fidelity and flexibility, making it a valuable asset for developers and designers seeking top-tier AI-driven visuals. The versatility of DreamShaper-8 LCM extends across a wide array of industries, from marketing to education, offering unprecedented control over the artistic process without compromising realism. It is ideal for both beginners and experts looking to create stunning, photorealistic content with ease.

The DreamShaper-8 LCM API enables developers to integrate this advanced image generation capability directly into their applications with ease. Offering seamless performance and robust functionality, the API empowers users to generate high-quality, photorealistic visuals quickly, enhancing both creativity and efficiency. With its fine-tuned algorithms and exceptional adaptability, the DreamShaper-8 LCM API can be used in various industries, from advertising and marketing to gaming and education, providing developers the tools to create visually stunning content at scale. This API makes it simple to tap into the full potential of AI-generated art and push the boundaries of visual creativity.

How to Generate Images using DreamShaper-8 LCM API?

Generating images with the DreamShaper-8 LCM API on Appy Pie is a straightforward process that enables developers to create photorealistic visuals with ease. Here’s a step-by-step guide:

generate_01

Obtain API Key

The first step is to gain access to the DreamShaper-8 LCM API. Sign up or log in to Appy Pie, where you can retrieve your API key. This key is essential, as it is used to authenticate and authorize all your API requests. Without this key, your requests to the API will not be processed. The API key also helps ensure that your usage is tracked and managed efficiently.

generate_02

Set Up Development Environment and Prompt

Once you have your API key, the next step is to set up your development environment. Choose a programming language that you are comfortable with, such as Python, JavaScript, PHP, or Java. After selecting your language, configure your environment and prepare the necessary libraries or packages to interact with the API. Set the necessary parameters for your API request, such as prompt, negative prompt, and others.

generate_03

Send the API Request

Once your environment is set and you’ve defined your parameters, you can now send the API request. This involves making an HTTP POST request to the DreamShaper-8 LCM API endpoint, including your prompt, resolution, and any other settings in the request body. Your API key should be included in the header for authentication.

generate_04

Receive and Process the Response

After sending the API request, the DreamShaper-8 LCM API will generate the requested image and return the response, typically in the form of an image file or a URL to download it. You can then process the response by saving the image to your local machine or directly integrating it into your application or project.

Use Cases of DreamShaper-8 LCM API

The DreamShaper-8 LCM API offers versatile AI-driven image generation capabilities, making it a powerful tool for various industries and applications. Here are some key use cases where this API can bring significant value:

cases_1

Marketing and Advertising

The DreamShaper-8 LCM API allows marketing teams to create visually stunning and photorealistic content tailored to their campaigns. Whether it's creating promotional images, banners, or social media posts, businesses can quickly generate high-quality visuals without the need for professional design expertise. This helps marketers to personalize campaigns, delivering creative ads that grab attention and engage their target audience.

cases_2

E-commerce Product Visualization

For e-commerce businesses, having high-quality images of products is essential for driving sales. The DreamShaper-8 LCM API can generate lifelike images of products from different angles or settings, providing customers with a more immersive shopping experience. Brands can easily create custom product visuals, reducing the need for expensive photo shoots or 3D renderings.

cases_3

Video Game and Animation Design

Game developers and animators can leverage the DreamShaper-8 LCM API to create high-quality backgrounds, characters, and environments. The API’s ability to produce photorealistic images with diverse artistic styles allows designers to explore creative ideas and craft immersive gaming or cinematic experiences, accelerating development time.

cases_4

Architecture and Interior Design Visualization

Architects and interior designers can use the DreamShaper-8 LCM API to generate photorealistic 3D models and visuals for building designs or interior layouts. These visualizations help clients see how spaces will look before construction begins, offering designers the flexibility to experiment with styles, materials, and lighting in real-time.

cases_5

Art and Creative Projects

Artists and content creators can use the API to explore new creative territories, generating visually stunning artworks based on imaginative prompts. The API’s fine-tuned photorealism, combined with its ability to handle abstract and unique prompts, makes it ideal for crafting captivating art that resonates with audiences.

cases_6

Entertainment Industry

The DreamShaper-8 LCM API can be used in the entertainment industry to create concept art, promotional posters, and visual assets for films, TV shows, or theater productions. Its ability to generate lifelike images from creative prompts makes it an invaluable tool for production teams, helping them bring their vision to life with stunning visuals.

Top Trending Generative AI APIs

 

Maximize the potential of your projects with our Generative AI APIs. From video generation & image creation to text generation, animation, 3D modeling, prompt generation, image restoration, and code generation, our advanced APIs cover all aspects of generative AI to meet your needs.