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
Koi Mascot Roller Derby

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/f768d8ea-54d6-4099-803f-0c8ebe377bff.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/f768d8ea-54d6-4099-803f-0c8ebe377bff.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": "7d82aa38-25ee-4f2f-90f5-0ef25874420a",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/f768d8ea-54d6-4099-803f-0c8ebe377bff.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/f768d8ea-54d6-4099-803f-0c8ebe377bff.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "7d82aa38-25ee-4f2f-90f5-0ef25874420a",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/f768d8ea-54d6-4099-803f-0c8ebe377bff.jpg"
}
}{
"taskType": "imageControlNetPreProcess",
"taskUUID": "7d82aa38-25ee-4f2f-90f5-0ef25874420a",
"guideImageURL": "https://im.runware.ai/image/os/a03d21/ws/3/ii/b97d7a79-a518-4ce2-8bf3-385a0ce5f3ab.jpg",
"cost": 0.0006,
"guideImageUUID": "b97d7a79-a518-4ce2-8bf3-385a0ce5f3ab",
"inputImageUUID": "fde7ff4a-1fee-4bca-9585-55bb349ebbbf"
}Anime Mecha Cellist Transit Platform

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/9887d022-2cd6-4494-90da-198715869574.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/9887d022-2cd6-4494-90da-198715869574.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": "43bb74ad-f4cb-424f-a971-268e5cf57aaf",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/9887d022-2cd6-4494-90da-198715869574.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/9887d022-2cd6-4494-90da-198715869574.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "43bb74ad-f4cb-424f-a971-268e5cf57aaf",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/9887d022-2cd6-4494-90da-198715869574.jpg"
}
}{
"taskType": "imageControlNetPreProcess",
"taskUUID": "43bb74ad-f4cb-424f-a971-268e5cf57aaf",
"guideImageURL": "https://im.runware.ai/image/os/a01d21/ws/3/ii/3aeb796d-6497-42af-8fe9-bca50fbfc734.jpg",
"cost": 0.0013,
"guideImageUUID": "3aeb796d-6497-42af-8fe9-bca50fbfc734",
"inputImageUUID": "470f6edf-4ddb-4c72-b68a-7e18c067ad5d"
}Zero-G Kimono Workshop Portrait

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/2f6a2e8d-2bbe-41c5-b2d8-3ad543fd0fec.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/2f6a2e8d-2bbe-41c5-b2d8-3ad543fd0fec.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": "1e84f8d4-5161-4e81-8e01-1e648a33bffe",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2f6a2e8d-2bbe-41c5-b2d8-3ad543fd0fec.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/2f6a2e8d-2bbe-41c5-b2d8-3ad543fd0fec.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "1e84f8d4-5161-4e81-8e01-1e648a33bffe",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2f6a2e8d-2bbe-41c5-b2d8-3ad543fd0fec.jpg"
}
}{
"taskType": "imageControlNetPreProcess",
"taskUUID": "1e84f8d4-5161-4e81-8e01-1e648a33bffe",
"guideImageURL": "https://im.runware.ai/image/os/a07dlim3/ws/3/ii/6430c20d-1f1d-4d2f-8f0a-b8866e385dd4.jpg",
"cost": 0.0006,
"guideImageUUID": "6430c20d-1f1d-4d2f-8f0a-b8866e385dd4",
"inputImageUUID": "57c6797e-955f-4886-b317-5444ec06a65f"
}Anime Shrine Courier Character Sheet

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/4ada2d3a-2991-4487-875a-0b5ac5f716a9.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/4ada2d3a-2991-4487-875a-0b5ac5f716a9.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": "8ed1ed0a-2f08-42dc-a3ba-bab51fc4b27b",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/4ada2d3a-2991-4487-875a-0b5ac5f716a9.jpg"
}
}
]'runware run runware:controlnet-preprocess@lineart-anime \
inputs.image=https://assets.runware.ai/assets/inputs/4ada2d3a-2991-4487-875a-0b5ac5f716a9.jpg{
"taskType": "controlNetPreprocess",
"taskUUID": "8ed1ed0a-2f08-42dc-a3ba-bab51fc4b27b",
"model": "runware:controlnet-preprocess@lineart-anime",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/4ada2d3a-2991-4487-875a-0b5ac5f716a9.jpg"
}
}{
"taskType": "imageControlNetPreProcess",
"taskUUID": "8ed1ed0a-2f08-42dc-a3ba-bab51fc4b27b",
"guideImageURL": "https://im.runware.ai/image/os/a10dlim3/ws/3/ii/0db9c579-5f82-47c7-96d6-624b751743c2.jpg",
"cost": 0.0006,
"guideImageUUID": "0db9c579-5f82-47c7-96d6-624b751743c2",
"inputImageUUID": "36509e35-332b-40d8-955d-9af0a855a299"
}