ControlNet Scribble - Sketch to Image
Convert simple sketches and line drawings into detailed, realistic images using ControlNet Scribble. This advanced AI model combines your sketch input with text descriptions to generate high-quality images that maintain your structural vision while adding realistic details, textures, and colors.
Model Information
- Provider: Replicate
- Model ID:
jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117 - Input: Sketch/line drawing + text prompt
- Output: High-quality generated image
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | text | SKETCH_TO_IMAGE | Feature identifier | ✔️ |
| model | text | jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117 | AI model identifier | ✔️ |
| conversationId | text | SKETCH_TO_IMAGE | Conversation context | ✔️ |
| promptObject.imageUrl | string | https://example.com/sketch.jpg | URL of the sketch image to transform | ✔️ |
| promptObject.prompt | string | A beautiful landscape with mountains and trees | Text description of desired output | ✔️ |
| promptObject.image_resolution | string | 512 | resolution of image | ✖️ |
| promptObject.negative_prompt | string | blurry, low quality, distorted | What to avoid in the output | ✖️ |
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Code Example
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "SKETCH_TO_IMAGE",
"model": "jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"image_resolution": "512",
"negative_prompt": "blurry, low quality, distorted, ugly"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'SKETCH_TO_IMAGE',
model: 'jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117',
conversationId: 'SKETCH_TO_IMAGE',
promptObject: {
imageUrl: 'development/images/2025_10_27_16_46_46_383_dress.png',
prompt: 'A beautiful mountain landscape at sunset with vibrant colors and detailed textures',
image_resolution: '512',
negative_prompt: 'blurry, low quality, distorted, ugly'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "SKETCH_TO_IMAGE",
"model": "jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"image_resolution": "512",
"negative_prompt": "blurry, low quality, distorted, ugly"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "SKETCH_TO_IMAGE",
"model": "jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117",
"conversationId": "SKETCH_TO_IMAGE",
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"image_resolution": "512",
"negative_prompt": "blurry, low quality, distorted, ugly"
}
}'
Response Format
{
"aiRecord": {
"uuid": "s2i1m2a3g4-e5f6-7890-bcde-f123456789cd",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 35000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T15:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117",
"type": "SKETCH_TO_IMAGE",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": "SKETCH_TO_IMAGE",
"status": "SUCCESS",
"createdAt": "2025-01-15T15:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_10_27_16_46_46_383_dress.png",
"prompt": "A beautiful mountain landscape at sunset with vibrant colors and detailed textures",
"image_resolution": "512",
"negative_prompt": "blurry, low quality, distorted, ugly"
},
"resultObject": [
"development/images/2025_01_15_15_00_90_001_sketch_to_image.png"
],
"responseObject": [
"https://replicate.delivery/pbxt/example/sketch.png",
"https://replicate.delivery/pbxt/example/result.png"
]
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_15_00_90_001_sketch_to_image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T150000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}