1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/higgsfield-text2image-soul";
const data = {
"prompt": "Heroic dragonborn warrior standing proudly on a rocky cliff, wearing ancient armor infused with glowing runes, holding a massive battle axe.",
"width_and_height": "1536x2048",
"enhance_prompt": false,
"style_id": "b3c8075a-cb4c-42de-b8b3-7099dd2df672",
"style_strength": 1,
"quality": "1080p"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
Guides the thematic direction of the image. For landscapes, use prompts like 'Misty forest at dusk'.
Enhance or adjust an existing image with a URL. Use for precise edits or style transfers.
Defines the image size. Choose '1080p' for general use or '4K' for detailed visuals.
Allowed values:
Boosts prompt detail accuracy. Use for scenes with complexities.
Selects visual style. Opt for 'Realistic' for authenticity or 'Medieval' for imaginative renditions.
Modulates style influence. Use 0.5 for subtle and 1 for bold stylization.
min : 0,
max : 1
Controls resolution quality. Select '720p' for preview or '1080p' for clarity.
Allowed values:
Sets generation reproducibility. Use a fixed number for consistent results.
min : 1,
max : 1000000
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
SOUL AI is the latest text-to-image generation model that utilizes the well-known Higgsfield API to create excellent-quality images from text prompts. It outperforms other similar models when it comes to rendering highly detailed images, thanks to its configurable options and settings for precision in visuals and style. It is a go-to model for creators who need detail-oriented results in their creations, owing to its remarkable image synthesis and a huge style catalogue.
How does SOUL AI handle style customization? SOUL AI offers pre-defined styles and custom reference options. Hence, the users can select from 70+ built-in styles and adjust their intensity, as per their requirement, using the style_strength parameter (0-1 range).
What's the maximum resolution supported? The model supports various aspect ratios with maximum dimensions of 2048x1536 pixels, perfect for high-quality commercial applications.
How can I ensure consistent results across multiple generations? Use the seed parameter to maintain consistency; for character-specific adjustments, combine custom_reference_id with custom_reference_strength.
What makes SOUL AI different from other text-to-image models? SOUL AI is preferred for professional creative workflows because of its vast style library, precise control parameters, and robust webhook support for real-time integration.
How can I optimize prompt enhancement for better results? Enable the enhance_prompt feature for complex scenes, and combine it with clear, descriptive prompts for optimal results; the 1080p setting will further improve the quality.