Skip to main content

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​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters​

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be stable-image
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters​

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
negativePromptstringNoText describing what to avoid in the image-
stable_image_core_aspect_ratiostringNoAspect ratio of the generated image1:1
stable_image_core_seednumberNoRandom seed for reproducibility (0-4294967295)Random
stable_image_core_style_presetstringNoArtistic style presetNone
stable_image_core_output_formatstringNoOutput image formatpng

Supported Aspect Ratios​

RatioDescriptionBest For
1:1Square formatSocial media posts, avatars
16:9WidescreenBanners, headers, presentations
21:9Ultra-widePanoramic views, cinematic shots
2:3PortraitVertical photos, book covers
3:2LandscapeStandard photography
4:5Portrait socialInstagram posts, stories
5:4Landscape socialFacebook covers, wide posts
9:16Vertical videoTikTok, Instagram stories
9:21Ultra-tallMobile screens, long banners

Style Presets​

StyleDescription
3d-model3D rendered appearance
analog-filmFilm photography aesthetic
animeAnime/manga style
cinematicMovie-like quality
comic-bookComic book illustration
digital-artDigital artwork style
enhanceEnhanced realism
fantasy-artFantasy illustration
isometricIsometric perspective
line-artLine art style
low-polyLow polygon 3D style
modeling-compoundClay modeling aesthetic
neon-punkCyberpunk neon style
origamiPaper folding art
photographicRealistic photography
pixel-artRetro pixel art
tile-textureSeamless texture

Output Formats​

FormatDescription
pngHigh quality, lossless compression
jpegSmaller file size, slight compression
webpModern format, excellent compression

Code Examples​

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"
}
}'

Interactive Playground​

API Playground

https://api.1min.ai/api/features
Describe 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​

  1. Prompt Quality: Be specific and descriptive

    • Good: "A peaceful sunset over a calm ocean with golden light reflecting on the water"
    • Avoid: "A sunset"
  2. Negative Prompts: Use to exclude unwanted elements

    • Examples: "blurry, low quality, distorted, watermark, text"
  3. 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
  4. Style Presets: Experiment with different styles:

    • photographic: For realistic images
    • digital-art: For artistic illustrations
    • cinematic: For movie-like quality
    • anime: For animated style
  5. Seeds: Use consistent seeds for reproducible results