Version 3 Advanced Image Generation AI focused on more creative capabilities and complex realistic images. It is the larger image model with squares of max 1024px and rectangles of max 1344px on the longest side. It is slower and suitable for more complex use cases where more details are required. Read more at https://docs.worqhat.com/ai-models/image-generation/imagecon-v3

Parameters

ParameterTypeDescriptionDefault
orientationStringThe orientation of the image. Options: Landscape, Portrait, Square.Square
image_styleStringThe style of the image.default
output_typeStringThe output type of the image. Options: url, blob. url returns the Cloud Hosted Link to the Image, blob returns the Base64 Image.url
promptArrayThe prompts for the image generation. This is a required parameter.-

Initialize AI Modules

const worqhat = require('worqhat');

var config = new worqhat.Configuration({
    apiKey: "your-api-key",
    debug: true,
    max_retries: 3,
});

worqhat.initializeApp(config);

let ai = worqhat.ai();

Implementation

ai.imageGeneration.v3({
    orientation: "square",
    image_style: "artistic",
    output_type: "url",
    prompt: [
        "A dog walking in a beach"
    ]
}).then((response) => {
    console.log(response);
}).catch((error) => {
    console.log(error);
});
The model is particularly well-tuned for vibrant and accurate colors, with better contrast, lighting, and shadows than its predecessor, all in native 1024x1024 resolution, so you don’t have to go through the Upscaling Process every time after creating an image.

Generate Images from Text using Image Gen Model V3

Generate Images from Text using Image Gen Model V2

Generate Images from Text using Image Gen Model V2