Sketch to image AI: turn a drawing into a finished picture
Turn a sketch into an image with AI: send the drawing as a reference, describe the finished result, and ask for up to four versions per call.

To turn a sketch into an image with AI, scan or photograph the drawing, send it to an image model as a reference, and describe the finished picture: what it shows, the materials, the colors, the light, and "keep the layout of the sketch". The model uses the drawing as a guide for a new image, so check how closely the result follows your lines. On Sume, the sketch's public HTTPS URL goes in input_references on POST /v1/images.
Request fields and limits come from Sume's Image API docs and the model catalog that GET /v1/images/models serves, read on 2026-09-27. Going the other way, from a photo to an artwork, is covered in photo to painting AI.
How do I turn a sketch into an image with the Sume API?
Send the drawing as a reference, describe the finished result, and ask for several versions at once. The request below asks Nano Banana Pro for four renders of a pencil sketch.
- Scan or photograph the sketch flat and evenly lit, then host it at a public HTTPS URL. Localhost, private-network, and non-HTTPS URLs are rejected before submission.
- On models that list it, the docs recommend
aspect_ratio: "auto"so the result matches the drawing's shape. Omitting the field is not the same as sendingauto. nasks for several versions in one call. Image models are metered per image, so each version adds to the cost.
curl -X POST "https://api.sume.com/v1/images" \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-pro",
"prompt": "Turn this pencil sketch into a finished product render: a brushed aluminum desk lamp, soft studio light, plain white background. Keep the shapes and proportions of the drawing.",
"input_references": [
{ "type": "image_url", "image_url": { "url": "https://example.com/sketch.png" } }
],
"aspect_ratio": "auto",
"n": 4
}'How do I turn a sketch into a realistic photo?
Describe a photograph, not a drawing. The prompt is the only place to say how finished and how real the result should look:
- Say "a photo of" and name the setting, such as a kitchen counter or a city street at dusk.
- Name a real material for every part you drew: oak, brushed steel, matte ceramic.
- Describe the light and the camera angle the sketch implies, such as eye level or from above.
- Say what must not change: the layout, the proportions, the number of objects.
Can I control how closely the image follows my lines?
Not with a setting. Today Sume's image request has no line-following, control-strength, or sketch-mode field, so the prompt is the only lever: say which parts must stay where you drew them.
If a result drifts, save the version closest to your drawing, host it at your own public HTTPS URL, and send it back as the reference with a narrower prompt. Every call is a fresh generation: no model serves seed, and a request that sends one returns 400 unsupported_parameter.
Which models keep the sketch's shape?
Models that edit from references and list auto can match the frame of your drawing. Seedream 5.0 Lite and Seedream 4.5 edit too, but they do not list auto, so give them a ratio from their own lists; a model refuses a value its catalog does not list. Today Seedream 4.5 returns one image per call when you send a sketch, whatever n asks for, so send one call per version there.
| Model id | `aspect_ratio: "auto"` | Images per call with a sketch |
|---|---|---|
openai/gpt-image-2.5 | Listed | Up to 4 |
openai/gpt-image-2.5-sunburst | Listed | Up to 4 |
openai/gpt-image-2 | Listed | Up to 4 |
google/nano-banana-2 | Listed | Up to 4 |
google/nano-banana-pro | Listed | Up to 4 |
bytedance-seed/seedream-5-lite | Not listed; send a ratio from its list | Up to 4 |
bytedance-seed/seedream-4.5 | Not listed; send a ratio from its list | 1 |
What are the limits of sketch-to-image AI?
- It does not trace. The output is a new image rather than your lines filled in, so proportions and small details can shift. Do not rely on it where dimensions must be exact.
- It returns raster files:
png,jpeg, orwebp.svgis in the request schema, but no model lists it today. - Text-to-image-only models reject the sketch. Their
input_referencesrange is{"min": 0, "max": 0}. - Results come back as Sume-hosted, signed URLs in
data[].url, so save the images you keep.
Sources
Related posts
More in Models
- Sora 2 API shutdown: moving video generation calls
OpenAI shut down its Videos API and Sora 2 models on 2026-09-24. How the old fields map to Sume's POST /v1/videos, and why the model id must change.
- What is an AI video seed? How to repeat a result without one
A seed fixes a generator's random starting point. Sume's video models take none and refuse the field. How to keep a clip or a look without one.
- An OpenRouter-compatible video API: sume/auto or a pinned model
Sume's POST /v1/videos follows OpenRouter's video generation API field for field. Let sume/auto pick the model, or pin a catalog id like seedance-2.5.
- Video 1.0 and Image 1.0 are retiring soon: move to sume/auto
Sume Video 1.0 and Image 1.0 are retiring soon and already run as aliases for the Auto path. New integrations call /v1/videos or /v1/images with sume/auto.
Written by Sume