Stable Image Core - Image Generator
Generate high-quality images from text prompts using Stability AI's latest Stable Image Core model. This model offers excellent quality with improved speed and efficiency compared to previous Stable Diffusion versions.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_GENERATOR |
model | string | Yes | AI model identifier. Must be stable-image |
promptObject | object | Yes | Configuration object containing all generation parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | - |
negativePrompt | string | No | Text describing what to avoid in the image | - |
stable_image_core_aspect_ratio | string | No | Aspect ratio of the generated image | 1:1 |
stable_image_core_seed | number | No | Random seed for reproducibility (0-4294967295) | Random |
stable_image_core_style_preset | string | No | Artistic style preset | None |
stable_image_core_output_format | string | No | Output image format | png |
Supported Aspect Ratios
| Ratio | Description | Best For |
|---|---|---|
1:1 | Square format | Social media posts, avatars |
16:9 | Widescreen | Banners, headers, presentations |
21:9 | Ultra-wide | Panoramic views, cinematic shots |
2:3 | Portrait | Vertical photos, book covers |
3:2 | Landscape | Standard photography |
4:5 | Portrait social | Instagram posts, stories |
5:4 | Landscape social | Facebook covers, wide posts |
9:16 | Vertical video | TikTok, Instagram stories |
9:21 | Ultra-tall | Mobile screens, long banners |
Style Presets
| Style | Description |
|---|---|
3d-model | 3D rendered appearance |
analog-film | Film photography aesthetic |
anime | Anime/manga style |
cinematic | Movie-like quality |
comic-book | Comic book illustration |
digital-art | Digital artwork style |
enhance | Enhanced realism |
fantasy-art | Fantasy illustration |
isometric | Isometric perspective |
line-art | Line art style |
low-poly | Low polygon 3D style |
modeling-compound | Clay modeling aesthetic |
neon-punk | Cyberpunk neon style |
origami | Paper folding art |
photographic | Realistic photography |
pixel-art | Retro pixel art |
tile-texture | Seamless texture |
Output Formats
| Format | Description |
|---|---|
png | High quality, lossless compression |
jpeg | Smaller file size, slight compression |
webp | Modern format, excellent compression |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "stable-image",
"promptObject": {
"prompt": "A serene mountain landscape with crystal clear lake reflection",
"negativePrompt": "blurry, low quality, distorted",
"stable_image_core_aspect_ratio": "16:9",
"stable_image_core_seed": 42,
"stable_image_core_style_preset": "photographic",
"stable_image_core_output_format": "png"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_GENERATOR',
model: 'stable-image',
promptObject: {
prompt: 'A serene mountain landscape with crystal clear lake reflection',
negativePrompt: 'blurry, low quality, distorted',
stable_image_core_aspect_ratio: '16:9',
stable_image_core_seed: 42,
stable_image_core_style_preset: 'photographic',
stable_image_core_output_format: 'png'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "stable-image",
"promptObject": {
"prompt": "A serene mountain landscape with crystal clear lake reflection",
"negativePrompt": "blurry, low quality, distorted",
"stable_image_core_aspect_ratio": "16:9",
"stable_image_core_seed": 42,
"stable_image_core_style_preset": "photographic",
"stable_image_core_output_format": "png"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresDescribe the image you want to generate
Describe what you want to avoid in the image
Choose aspect ratio for the generated image
Random seed for reproducibility (0-4294967295)
Artistic style preset
Format of the generated image
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "stable-image",
"promptObject": {
"prompt": "A serene mountain landscape with crystal clear lake reflection",
"negativePrompt": "blurry, low quality, distorted",
"stable_image_core_aspect_ratio": "16:9",
"stable_image_core_seed": 42,
"stable_image_core_style_preset": "photographic",
"stable_image_core_output_format": "png"
}
}'
Response Format
{
"aiRecord": {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 15000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T10:30:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "stable-image",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T10:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A serene mountain landscape with crystal clear lake reflection",
"negativePrompt": "blurry, low quality, distorted",
"stable_image_core_aspect_ratio": "16:9",
"stable_image_core_seed": 42,
"stable_image_core_style_preset": "photographic",
"stable_image_core_output_format": "png"
},
"resultObject": [
"development/images/2025_01_15_10_30_15_001_mountain_landscape.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_30_15_001_mountain_landscape.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T103000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}
Use Cases
- Rapid Prototyping: Quick image generation for concept validation
- Content Creation: Generate visuals for social media, blogs, and marketing
- Art Creation: Create digital artwork and illustrations
- Product Design: Generate product concepts and design variations
Tips for Best Results
-
Prompt Quality: Be specific and descriptive
- Good: "A peaceful sunset over a calm ocean with golden light reflecting on the water"
- Avoid: "A sunset"
-
Negative Prompts: Use to exclude unwanted elements
- Examples: "blurry, low quality, distorted, watermark, text"
-
Aspect Ratios: Choose based on your use case:
- 1:1: Perfect for social media posts
- 16:9: Great for banners and presentations
- 2:3: Ideal for portrait compositions
- 9:16: Perfect for mobile-first content
-
Style Presets: Experiment with different styles:
- photographic: For realistic images
- digital-art: For artistic illustrations
- cinematic: For movie-like quality
- anime: For animated style
-
Seeds: Use consistent seeds for reproducible results
Notes
- Stable Image Core offers faster generation times compared to Stable Diffusion XL
- The model excels at understanding natural language prompts
- Multiple aspect ratios are supported without quality degradation
- Results are typically generated in under 10 seconds