Skip to main content

Stable Diffusion XL - Text Remover

Remove text and unwanted text elements from images using Stable Diffusion XL's advanced inpainting technology. Automatically detect and intelligently replace text with contextually appropriate background content, maintaining natural image flow and preserving image quality.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be TEXT_REMOVER
modelstringYesAI model identifier. Must be stable-diffusion-xl
promptObjectobjectYesConfiguration object containing all text removal parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the image for text removal-
output_formatstringNoOutput format for the processed imagepng
qualitynumberNoOutput quality (1-100) for JPEG format95

Supported Output Formats

FormatDescriptionBest For
pngHigh quality lossless formatProfessional use, detailed images, archival
jpegCompressed format with adjustable qualityWeb optimization, social media, smaller files
webpModern format with better compressionWeb applications, modern browsers

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_REMOVER",
"model": "clipdrop",
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_38_13_247_text-image.jpg",
"output_format": "png",
"quality": 95
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the image file for text removal
Format of the output image with text removed
Output quality for JPEG format (1-100)

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_REMOVER",
"model": "clipdrop",
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_38_13_247_text-image.jpg",
"output_format": "png",
"quality": 95
}
}'

Response Format

{
"aiRecord": {
"uuid": "t1x2r3m4-v5e6-7890-abcd-ef1234567890",
"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": 25000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T14:30:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "clipdrop",
"type": "TEXT_REMOVER",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T14:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_38_13_247_text-image.jpg",
"output_format": "png",
"quality": 95
},
"resultObject": [
"development/images/2025_01_15_14_30_45_001_text_removed.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_14_30_45_001_text_removed.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T143000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

Content Creation & Social Media

  • Stock Photo Cleanup: Remove watermarks and unwanted text from stock images
  • Social Media Posts: Clean up screenshots and images for professional presentation
  • Meme Creation: Remove existing text to add custom captions
  • Brand Content: Clean product images from text overlays for consistent branding
  • Blog Graphics: Prepare images for articles by removing distracting text elements

E-commerce & Marketing

  • Product Photography: Remove price tags, labels, and promotional text from product images
  • Catalog Preparation: Clean product images for professional catalogs and listings
  • Advertising Materials: Remove competitor branding or unwanted text from reference images
  • Website Graphics: Prepare hero images and banners by removing text for custom overlays
  • Print Materials: Clean images for brochures, flyers, and marketing collateral

Photography & Image Restoration

  • Street Photography: Remove distracting signage and text from urban scenes
  • Travel Photography: Clean up tourist photos by removing signs and advertisements
  • Historical Image Restoration: Remove text artifacts from scanned or old photographs
  • Architecture Photography: Clean building photos by removing temporary signage
  • Event Photography: Remove unwanted text from event backdrops and decorations

Professional & Business Applications

  • Presentation Graphics: Clean images for professional presentations and reports
  • Corporate Materials: Remove text from reference images for custom branding
  • Educational Content: Prepare images for textbooks and learning materials
  • Legal Documentation: Clean evidence photos by removing identifying text
  • Real Estate: Remove "For Sale" signs and promotional text from property images

Creative & Artistic Projects

  • Digital Art: Prepare base images for artistic compositions and manipulations
  • Photo Manipulation: Clean source images for complex composite projects
  • Graphic Design: Remove text from images to create custom design elements
  • Content Licensing: Prepare images for licensing by removing branded text
  • Portfolio Work: Clean personal work by removing client-specific text and branding

Tips for Best Results

  1. Image Quality & Resolution: Use high-quality source images

    • Higher resolution inputs provide better text detection and inpainting results
    • Clear, well-lit images help the AI distinguish text from background
    • Avoid heavily compressed or pixelated images
  2. Text Characteristics: Consider text properties for optimal results

    • High contrast text: Bold, well-defined text is easier to detect and remove
    • Simple backgrounds: Text on uniform backgrounds produces cleaner results
    • Avoid complex overlays: Text with shadows, outlines, or effects may be challenging
    • Size matters: Both very small and very large text may require multiple passes
  3. Background Context: Ensure sufficient background information

    • Surrounding context: Adequate background around text helps with intelligent inpainting
    • Pattern consistency: Repetitive patterns and textures fill better than complex scenes
    • Avoid edge text: Text touching image borders may be more difficult to remove cleanly
  4. Format & Quality Settings: Choose appropriate output settings

    • PNG: Best for images requiring lossless quality and transparency
    • JPEG: Use quality 90-95 for professional results, 80-85 for web optimization
    • WebP: Modern format offering superior compression while maintaining quality
  5. Multiple Processing: For complex text removal

    • Staged approach: Remove different text elements in separate operations for complex images
    • Quality assessment: Review results and reprocess if needed with adjusted parameters
    • Combine techniques: Use with other AI tools for comprehensive image cleanup
  6. Content Considerations: Optimize for different content types

    • Photographs: Natural scenes with organic backgrounds work best
    • Graphics: Simple geometric backgrounds provide predictable results
    • Screenshots: UI elements may require manual refinement after AI processing
    • Artistic images: Complex artistic backgrounds may produce creative but unexpected results

Notes

  • Stable Diffusion XL Text Remover uses advanced inpainting algorithms specifically optimized for text detection and contextual replacement
  • Results quality depends on image complexity, text characteristics, and background patterns
  • The model excels at removing text from photographs with natural backgrounds and consistent patterns
  • Processing times vary based on image resolution, text complexity, and amount of text to remove
  • For best results, ensure text has clear contrast with background and sufficient surrounding context
  • Multiple processing passes may be needed for images with extensive or complex text overlays
  • The AI model is trained to preserve image quality while seamlessly filling text areas with appropriate content