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": "https://example.com/my-sketch.jpg",
"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": "https://example.com/my-sketch.jpg",
"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

{}

Tips for Best Results

  1. Clear Sketches: Use clean, well-defined line drawings for better results
  2. Detailed Prompts: Be specific about colors, textures, lighting, and atmosphere
  3. Control Strength: Start with 0.7 and adjust based on how closely you want to follow your sketch
  4. Negative Prompts: Use negative prompts to avoid unwanted elements or artifacts
  5. Style Consistency: Choose style presets that match your artistic vision
  6. Iterative Approach: Experiment with different seeds and settings to refine results

Authentication

This endpoint requires an API key to be provided in the API-KEY header.