Stable Image Core - Sketch to Image
Convert simple sketches and line drawings into detailed, realistic images using Stability AI's Stable Image Core model. This advanced AI model combines your sketch input with text descriptions to generate high-quality images that maintain your structural vision while adding realistic details, textures, and colors.
Model Information
- Provider: Stability AI
- Model ID:
stable-image - Input: Sketch/line drawing + text prompt
- Output: High-quality generated image
- Formats: PNG, JPEG, WebP
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | text | SKETCH_TO_IMAGE | Feature identifier | ✔️ |
| model | text | stable-image | AI model identifier | ✔️ |
| conversationId | text | SKETCH_TO_IMAGE | Conversation context | ✔️ |
| promptObject.imageUrl | string | https://example.com/sketch.jpg | URL of the sketch image to transform | ✔️ |
| promptObject.prompt | string | A beautiful landscape with mountains and trees | Text description of desired output | ✔️ |
| promptObject.control_strength | number | 0.7 | How closely to follow the sketch (0.0-1.0) | ✔️ |
| promptObject.output_format | string | png | Output image format | ✔️ |
| promptObject.negative_prompt | string | blurry, low quality, distorted | What to avoid in the output | ✖️ |
| promptObject.seed | number | 12345 | Seed for reproducible results (0 for random) | ✖️ |
| promptObject.style_preset | string | photographic | Visual style to apply | ✖️ |
Parameter Details
Control Strength:
0.0: Minimal sketch influence, more creative freedom0.5: Balanced sketch guidance and AI creativity1.0: Maximum sketch adherence, strict structural following
Output Format Options:
png- Lossless, supports transparencyjpeg- Compressed, smaller file sizewebp- Modern format, good compression
Style Preset Options:
3d-model- 3D rendered appearanceanalog-film- Vintage film aestheticanime- Japanese animation stylecinematic- Movie-like qualitycomic-book- Comic book illustration styledigital-art- Digital artwork styleenhance- Enhanced realismfantasy-art- Fantasy illustration styleisometric- Isometric perspectiveline-art- Line art stylelow-poly- Low polygon 3D stylemodeling-compound- Clay-like appearanceneon-punk- Cyberpunk neon styleorigami- Paper folding art stylephotographic- Realistic photographic stylepixel-art- Pixel art styletile-texture- Tileable texture style
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Code Example
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "SKETCH_TO_IMAGE",
"model": "stable-image",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"control_strength": 0.7,
"output_format": "png",
"negative_prompt": "blurry, low quality, distorted, ugly",
"seed": 0,
"style_preset": "photographic"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'SKETCH_TO_IMAGE',
model: 'stable-image',
conversationId: 'SKETCH_TO_IMAGE',
promptObject: {
imageUrl: 'development/images/2025_10_27_16_46_46_383_dress.png',
prompt: 'A beautiful mountain landscape at sunset with vibrant colors and detailed textures',
control_strength: 0.7,
output_format: 'png',
negative_prompt: 'blurry, low quality, distorted, ugly',
seed: 0,
style_preset: 'photographic'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "SKETCH_TO_IMAGE",
"model": "stable-image",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"control_strength": 0.7,
"output_format": "png",
"negative_prompt": "blurry, low quality, distorted, ugly",
"seed": 0,
"style_preset": "photographic"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "SKETCH_TO_IMAGE",
"model": "stable-image",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"control_strength": 0.7,
"output_format": "png",
"negative_prompt": "blurry, low quality, distorted, ugly",
"seed": 0,
"style_preset": "photographic"
}
}'
Response Format
{
"aiRecord": {
"uuid": "s2i1m2a3g4-e5f6-7890-bcde-f123456789cd",
"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": 35000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T15:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "stable-image",
"type": "SKETCH_TO_IMAGE",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": "SKETCH_TO_IMAGE",
"status": "SUCCESS",
"createdAt": "2025-01-15T15:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"control_strength": 0.7,
"output_format": "png",
"negative_prompt": "blurry, low quality, distorted, ugly",
"seed": 12345,
"style_preset": "photographic"
},
"resultObject": [
"development/images/2025_01_15_15_00_90_001_sketch_to_image.png"
],
"responseObject": {
"finish_reason": "SUCCESS",
"seed": 12345
}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_15_00_90_001_sketch_to_image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T150000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}
Use Cases
Creative Arts & Design
- Concept Art Development: Transform rough sketches into detailed concept art for games, films, and animations
- Character Design: Convert character sketches into fully realized character illustrations with various styles
- Environment Design: Turn architectural or landscape sketches into photorealistic or stylized environments
- Storyboard Enhancement: Upgrade storyboard sketches into detailed scene visualizations
- Digital Art Creation: Convert traditional pencil sketches into digital artwork with various artistic styles
Product Design & Prototyping
- Product Visualization: Transform product sketches into realistic product renders for presentations
- Industrial Design: Convert technical sketches into photorealistic product visualizations
- UI/UX Mockups: Turn wireframe sketches into detailed interface designs
- Packaging Design: Transform packaging sketches into realistic product packaging visualizations
- Architectural Visualization: Convert building sketches into detailed architectural renderings
Education & Training
- Art Education: Help students visualize how their sketches could look as finished artwork
- Design Tutorials: Create before/after examples showing sketch-to-image transformation
- Creative Workshops: Use as a tool for teaching digital art and design principles
- Historical Recreation: Transform historical sketches into realistic interpretations
- Scientific Illustration: Convert scientific diagrams into detailed educational illustrations
Marketing & Advertising
- Campaign Concepts: Transform marketing sketches into presentation-ready visuals
- Brand Asset Creation: Convert logo sketches and brand element drawings into polished assets
- Social Media Content: Create engaging content from simple sketch ideas
- Product Photography: Generate product images from sketches when photography isn't available
- Event Marketing: Transform event concept sketches into promotional materials
Entertainment & Media
- Game Development: Convert game asset sketches into textured, detailed game art
- Animation Pre-production: Transform storyboard sketches into detailed scene references
- Comic Book Creation: Convert comic sketches into fully colored and detailed panels
- Film Pre-visualization: Turn concept sketches into detailed scene visualizations
- Virtual Production: Create digital assets from sketches for virtual sets and environments
Tips for Best Results
Sketch Preparation Guidelines
-
Clear Line Work: Use clean, well-defined lines with good contrast against the background
- Bold outlines: Strong, visible lines help the AI understand structure
- Consistent line weight: Maintain consistent thickness for main elements
- Avoid overlapping lines: Clean, non-confusing line work produces better results
- High contrast: Ensure good contrast between sketch and background
-
Structural Clarity: Focus on clear structural elements
- Define main shapes: Clearly outline primary objects and subjects
- Show depth: Use perspective lines and overlapping elements to indicate depth
- Detail hierarchy: More detailed areas will receive more attention in the output
- Composition balance: Well-composed sketches lead to better final images
Prompt Optimization Strategies
-
Descriptive Prompts: Write detailed, specific descriptions
- Color specifications: Mention specific colors, lighting, and mood
- Texture details: Describe materials, surfaces, and texture qualities
- Atmospheric elements: Include lighting conditions, weather, and ambiance
- Style references: Mention artistic styles or visual references when appropriate
-
Negative Prompt Usage: Effectively use negative prompts to avoid unwanted elements
- Common artifacts: "blurry, low quality, distorted, pixelated, artifacts"
- Unwanted styles: Specify styles you want to avoid (e.g., "cartoon" for realistic images)
- Unwanted elements: List specific objects or features to exclude
- Quality descriptors: Use terms like "ugly, bad anatomy, malformed" to improve quality
Technical Parameter Optimization
-
Control Strength Tuning: Adjust control strength based on desired outcome
- 0.3-0.5: More creative freedom, loose interpretation of sketch
- 0.6-0.8: Balanced approach, good detail while following structure
- 0.8-1.0: Strict adherence to sketch, minimal creative interpretation
- Iterative testing: Try different values to find the optimal balance
-
Style Preset Selection: Choose appropriate styles for your use case
- Photographic: For realistic, photo-like results
- Digital-art: For polished digital artwork style
- Cinematic: For movie-like quality and dramatic lighting
- Anime: For Japanese animation style results
- Fantasy-art: For magical or fantastical themed images
Advanced Techniques
-
Seed Management: Use seeds strategically for consistent results
- Reproducibility: Use specific seeds to recreate similar results
- Variation exploration: Change only the seed to explore different interpretations
- Quality comparison: Test multiple seeds to find the best result
- Batch generation: Use different seeds for generating multiple variations
-
Iterative Refinement: Develop an iterative workflow
- Initial generation: Start with basic parameters to test concept
- Parameter adjustment: Fine-tune based on initial results
- Prompt refinement: Adjust prompts based on output quality
- Multiple attempts: Generate several versions to select the best result
Technical Specifications
Processing Details
- Model Architecture: Stable Diffusion-based ControlNet with sketch conditioning
- Resolution Support: Input sketches up to 2048x2048 pixels
- Processing Time: Typically 15-45 seconds depending on complexity and resolution
- Output Quality: High-resolution results matching input dimensions
- Format Support: PNG, JPEG, and WebP output formats with quality optimization
Sketch Input Requirements
- File Formats: PNG, JPEG, WebP, GIF supported for sketch input
- Resolution Range: 512x512 to 2048x2048 pixels recommended
- Line Quality: Clear, high-contrast line drawings work best
- Background: White or light backgrounds preferred for optimal processing
- File Size: Maximum 10MB per sketch upload
Quality Factors
- Sketch clarity: 95%+ success rate with clear, well-defined sketches
- Prompt relevance: Quality improves significantly with detailed, relevant prompts
- Style consistency: Consistent results across different artistic styles
- Detail preservation: Maintains important structural elements from original sketch
- Creative enhancement: Adds realistic details while respecting sketch composition
Advanced Parameter Guide
Control Strength Guidelines
| Strength | Effect | Best For |
|---|---|---|
| 0.1-0.3 | Loose inspiration | Creative reinterpretation, artistic freedom |
| 0.4-0.6 | Moderate guidance | Balanced creativity and structure following |
| 0.7-0.8 | Strong adherence | Precise structural following with detail enhancement |
| 0.9-1.0 | Maximum fidelity | Technical drawings, exact structural reproduction |
Style Preset Applications
| Style | Best For | Characteristics |
|---|---|---|
| photographic | Product visualization, realistic scenes | Photo-realistic, natural lighting |
| digital-art | Character design, concept art | Polished digital artwork style |
| cinematic | Film concepts, dramatic scenes | Movie-like quality, dramatic lighting |
| anime | Character illustration, stylized art | Japanese animation aesthetic |
| fantasy-art | Magical scenes, fantastical subjects | Rich colors, mystical elements |
| comic-book | Sequential art, graphic novels | Bold colors, comic-style shading |
Seed Strategy Guide
- Random (0): Best for initial exploration and discovering new possibilities
- Fixed Seeds: Use for consistent results across multiple generations
- Seed Ranges: Experiment with similar seeds (±100) for subtle variations
- Quality Seeds: Save seeds that produce high-quality results for future use
Performance Optimization
Input Optimization
- Sketch Quality: Use high-resolution, clean sketches for best results
- Line Consistency: Maintain consistent line weights and styles
- Composition: Follow basic composition principles for better visual results
- Detail Balance: Include appropriate level of detail for desired output complexity
Prompt Engineering
- Specificity: More specific prompts generally yield better results
- Style Keywords: Include relevant style and mood keywords
- Technical Terms: Use appropriate technical terms for specific subjects
- Negative Prompting: Strategically exclude unwanted elements
Batch Processing
- Multiple Variations: Generate several versions with different seeds
- Parameter Sweeps: Test different control strengths systematically
- Style Exploration: Try multiple style presets for the same sketch
- Quality Selection: Generate multiple results and select the best outcome
Authentication
This endpoint requires an API key to be provided in the API-KEY header. Contact support to obtain your API key and start transforming sketches into realistic images.