Sketch to Image
Transform simple sketches and line drawings into detailed, realistic images using AI models. The Sketch to Image API combines your input sketch with text descriptions to generate high-quality images that follow your artistic vision while adding realistic details, textures, and colors.
Sketch to Image Models
The Sketch to Image API leverages advanced AI models optimized for sketch-based image generation:
📄️ Stable Image Core
Transform sketches and line drawings into realistic images using Stability AI Stable Image Core model
Key Features
The Sketch to Image generator offers powerful capabilities for creative image generation:
- Sketch-Guided Generation: Uses your sketch as a structural guide while adding realistic details
- Text Prompt Integration: Combines sketch input with descriptive text for precise control
- Style Customization: Apply different artistic styles from photographic to anime
- Control Strength: Adjust how closely the output follows your sketch (0-1 range)
- High-Quality Output: Generate images in various formats (PNG, JPEG, WebP)
- Seed Control: Use specific seeds for reproducible results
Available Models
Stability AI:
stable-image
- Stable Image Core - Advanced sketch-to-image conversion with high fidelity
Common Request Structure
All Sketch to Image generators use the same endpoint:
Request Headers
Field | Value |
---|---|
API-KEY | <api-key> |
Content-Type | application/json |
Common Parameters
Field Name | Type | Description | Required |
---|---|---|---|
type | text | Feature type: SKETCH_TO_IMAGE | ✔️ |
model | text | AI model identifier | ✔️ |
conversationId | text | Conversation context: SKETCH_TO_IMAGE | ✔️ |
promptObject.imageUrl | string | URL of the sketch image | ✔️ |
promptObject.prompt | string | Description of desired output | ✔️ |
promptObject.control_strength | number | Sketch influence (0-1) | ✔️ |
promptObject.output_format | string | Output format (png, jpeg, webp) | ✔️ |
promptObject.negative_prompt | string | What to avoid in the output | ✖️ |
promptObject.seed | number | Seed for reproducible results | ✖️ |
promptObject.style_preset | string | Visual style to apply | ✖️ |
Note: Specific parameters may vary by model. See individual model documentation for detailed parameter specifications.
Getting Started
- Upload Your Sketch: First upload your sketch or line drawing to get an image URL
- Choose Your Model: Select from available sketch-to-image models
- Write a Prompt: Describe what you want to see in the final image
- Adjust Settings: Fine-tune control strength and style preferences
- Generate: Use the interactive playground to test or integrate the API
For detailed implementation examples, parameter specifications, and interactive testing, visit the individual model documentation pages listed above.