Skip to content
Reduced motion is on. Play a preview to watch it.
Explore models

Image

MLSD Line Preprocessor

Detect line segments in an image with MLSD.

  • Image editing
Create with MLSD Line Preprocessor
Preview for MLSD Line Preprocessor

Catalog preview for MLSD Line Preprocessor. Review your own result before publishing.

A starting point.

Detect line segments in an image with MLSD. Start with a source whose important structural lines are clearly visible.

Before you publish.

Compare detected lines with the source. Check missing segments and false lines from texture; this result is not a measured architectural drawing.

Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.

How credits work · Use the API · Content guidelines

Settings and model questionsCheck the available settings and guidance when preparing your input.

Inputs and settings

Provide image_url. score_threshold and distance_threshold both default to 0.1 in the provider schema.

Adjust one threshold at a time and record it with the output. Compare the line map before using it in another operation.

Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.

Supported inputs

These fields come from the current studio form for image-preprocessors/mlsd. Other modes may require different inputs.

Input types, requirements and limits for image-preprocessors/mlsd
InputTypeRequirement
image_urlTextRequired
distance_thresholdNumberOptional
score_thresholdNumberOptional

Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.

Use MLSD Line Preprocessor through the API.

Start with this model ID for the endpoint featured on this page:

image-preprocessors/mlsd

Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.

Check the current model schema for supported inputs and options. Other tasks may use different model IDs.

From quote to result.

Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.

Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.