Skip to main content

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:

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

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

Common Parameters

Field NameTypeDescriptionRequired
typetextFeature type: SKETCH_TO_IMAGE✔️
modeltextAI model identifier✔️
conversationIdtextConversation context: SKETCH_TO_IMAGE✔️
promptObject.imageUrlstringURL of the sketch image✔️
promptObject.promptstringDescription of desired output✔️
promptObject.control_strengthnumberSketch influence (0-1)✔️
promptObject.output_formatstringOutput format (png, jpeg, webp)✔️
promptObject.negative_promptstringWhat to avoid in the output✖️
promptObject.seednumberSeed for reproducible results✖️
promptObject.style_presetstringVisual style to apply✖️

Note: Specific parameters may vary by model. See individual model documentation for detailed parameter specifications.

Getting Started

  1. Upload Your Sketch: First upload your sketch or line drawing to get an image URL
  2. Choose Your Model: Select from available sketch-to-image models
  3. Write a Prompt: Describe what you want to see in the final image
  4. Adjust Settings: Fine-tune control strength and style preferences
  5. 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.