Skip to main content

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 NameTypeExampleDescriptionRequired
typetextSKETCH_TO_IMAGEFeature identifier✔️
modeltextstable-imageAI model identifier✔️
conversationIdtextSKETCH_TO_IMAGEConversation context✔️
promptObject.imageUrlstringhttps://example.com/sketch.jpgURL of the sketch image to transform✔️
promptObject.promptstringA beautiful landscape with mountains and treesText description of desired output✔️
promptObject.control_strengthnumber0.7How closely to follow the sketch (0.0-1.0)✔️
promptObject.output_formatstringpngOutput image format✔️
promptObject.negative_promptstringblurry, low quality, distortedWhat to avoid in the output✖️
promptObject.seednumber12345Seed for reproducible results (0 for random)✖️
promptObject.style_presetstringphotographicVisual style to apply✖️

Parameter Details

Control Strength:

  • 0.0: Minimal sketch influence, more creative freedom
  • 0.5: Balanced sketch guidance and AI creativity
  • 1.0: Maximum sketch adherence, strict structural following

Output Format Options:

  • png - Lossless, supports transparency
  • jpeg - Compressed, smaller file size
  • webp - Modern format, good compression

Style Preset Options:

  • 3d-model - 3D rendered appearance
  • analog-film - Vintage film aesthetic
  • anime - Japanese animation style
  • cinematic - Movie-like quality
  • comic-book - Comic book illustration style
  • digital-art - Digital artwork style
  • enhance - Enhanced realism
  • fantasy-art - Fantasy illustration style
  • isometric - Isometric perspective
  • line-art - Line art style
  • low-poly - Low polygon 3D style
  • modeling-compound - Clay-like appearance
  • neon-punk - Cyberpunk neon style
  • origami - Paper folding art style
  • photographic - Realistic photographic style
  • pixel-art - Pixel art style
  • tile-texture - Tileable texture style

Endpoint

Request Headers

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

Code Example

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

Interactive Playground

API Playground

https://api.1min.ai/api/features

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": "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

  1. 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
  2. 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

  1. 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
  2. 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

  1. 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
  2. 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

  1. 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
  2. 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

StrengthEffectBest For
0.1-0.3Loose inspirationCreative reinterpretation, artistic freedom
0.4-0.6Moderate guidanceBalanced creativity and structure following
0.7-0.8Strong adherencePrecise structural following with detail enhancement
0.9-1.0Maximum fidelityTechnical drawings, exact structural reproduction

Style Preset Applications

StyleBest ForCharacteristics
photographicProduct visualization, realistic scenesPhoto-realistic, natural lighting
digital-artCharacter design, concept artPolished digital artwork style
cinematicFilm concepts, dramatic scenesMovie-like quality, dramatic lighting
animeCharacter illustration, stylized artJapanese animation aesthetic
fantasy-artMagical scenes, fantastical subjectsRich colors, mystical elements
comic-bookSequential art, graphic novelsBold 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.