ControlNet Preprocess Lineart Anime
ControlNet Preprocess Lineart Anime extracts anime-style line structure from an input image for ControlNet conditioning. It is best for manga, cel-shaded, and stylized character workflows where cleaner region boundaries and illustration-style contours matter more than photoreal edge detail.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples4
CODE
Ready-to-use code snippets for common workflows
lineart-extraction
Antarctic Crew Roster Line Guide$0.0006~4s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:controlnet-preprocess@lineart-anime',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/5091e9be-716a-4cd6-92ab-aa9dff216439.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5091e9be-716a-4cd6-92ab-aa9dff216439.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "controlNetPreprocess",
"taskUUID": "71fce4d7-3c09-4b27-826c-2df4b2d6c32a",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5091e9be-716a-4cd6-92ab-aa9dff216439.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/5091e9be-716a-4cd6-92ab-aa9dff216439.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "71fce4d7-3c09-4b27-826c-2df4b2d6c32a",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5091e9be-716a-4cd6-92ab-aa9dff216439.jpg"
}
}Response
{
"taskType": "imageControlNetPreProcess",
"taskUUID": "71fce4d7-3c09-4b27-826c-2df4b2d6c32a",
"guideImageURL": "https://im.runware.ai/image/os/a06dlim3/ws/3/ii/699534dc-7226-47c2-9ead-7532b2161fd4.jpg",
"cost": 0.0006,
"guideImageUUID": "699534dc-7226-47c2-9ead-7532b2161fd4",
"inputImageUUID": "050d78ff-5002-464f-9611-926e1d5ea2c0"
}lineart-extraction
Heritage Tram Coloring Page$0.0006~6s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:controlnet-preprocess@lineart-anime',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/67a34e34-e23f-4df6-bf73-28cc7d466597.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/67a34e34-e23f-4df6-bf73-28cc7d466597.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "controlNetPreprocess",
"taskUUID": "8635a3aa-9d62-44db-be6a-701a70ad5a02",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/67a34e34-e23f-4df6-bf73-28cc7d466597.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/67a34e34-e23f-4df6-bf73-28cc7d466597.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "8635a3aa-9d62-44db-be6a-701a70ad5a02",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/67a34e34-e23f-4df6-bf73-28cc7d466597.jpg"
}
}Response
{
"taskType": "imageControlNetPreProcess",
"taskUUID": "8635a3aa-9d62-44db-be6a-701a70ad5a02",
"guideImageURL": "https://im.runware.ai/image/os/a10dlim3/ws/3/ii/bf240f52-d46f-4338-9631-c01bfb77ecd5.jpg",
"cost": 0.0006,
"guideImageUUID": "bf240f52-d46f-4338-9631-c01bfb77ecd5",
"inputImageUUID": "8943e353-f4a9-414b-a89f-c1da1f73982a"
}lineart-extraction
Aquarium Mural Outpaint Line Guide$0.0006~6s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:controlnet-preprocess@lineart-anime',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/e5897d35-6d69-44b9-8c98-d19b09a0821d.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e5897d35-6d69-44b9-8c98-d19b09a0821d.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "controlNetPreprocess",
"taskUUID": "c4bd95ea-dcb3-47bf-8b2d-8ae39ba3d248",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e5897d35-6d69-44b9-8c98-d19b09a0821d.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/e5897d35-6d69-44b9-8c98-d19b09a0821d.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "c4bd95ea-dcb3-47bf-8b2d-8ae39ba3d248",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e5897d35-6d69-44b9-8c98-d19b09a0821d.jpg"
}
}Response
{
"taskType": "imageControlNetPreProcess",
"taskUUID": "c4bd95ea-dcb3-47bf-8b2d-8ae39ba3d248",
"guideImageURL": "https://im.runware.ai/image/os/a02d21/ws/3/ii/46c305c6-bac9-4470-b839-a4b3635a6be9.jpg",
"cost": 0.0006,
"guideImageUUID": "46c305c6-bac9-4470-b839-a4b3635a6be9",
"inputImageUUID": "ffed8ee9-6310-4f04-aca7-b43da1c84164"
}lineart-extraction
Mine Safety Canary Logo Vectorization$0.0006~4s
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:controlnet-preprocess@lineart-anime',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/05b31e83-03ff-4a77-aabf-9aa0a51ca6ba.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/05b31e83-03ff-4a77-aabf-9aa0a51ca6ba.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "controlNetPreprocess",
"taskUUID": "188c7f76-e753-4699-8e54-57894297e45f",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/05b31e83-03ff-4a77-aabf-9aa0a51ca6ba.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/05b31e83-03ff-4a77-aabf-9aa0a51ca6ba.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "188c7f76-e753-4699-8e54-57894297e45f",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/05b31e83-03ff-4a77-aabf-9aa0a51ca6ba.jpg"
}
}Response
{
"taskType": "imageControlNetPreProcess",
"taskUUID": "188c7f76-e753-4699-8e54-57894297e45f",
"guideImageURL": "https://im.runware.ai/image/os/a01d21/ws/3/ii/62369915-bee2-4e89-b4ac-0c1ff5196965.jpg",
"cost": 0.0006,
"guideImageUUID": "62369915-bee2-4e89-b4ac-0c1ff5196965",
"inputImageUUID": "ac0d06b6-8b71-455e-b28b-09fd5f93911d"
}