We value your privacy

    We use cookies to improve your experience, measure performance, and deliver relevant content. Manage your preferences below. See our Cookie Policy.

    Developer API Documentation - Image Processing API for Developers

    Developer API

    Integrate rsz.app's image processing into your applications

    API Key Management

    Your secret API key is used to authenticate your requests

    Sign in to generate an API key

    You can read all documentation below without signing in.

    Performance Metrics

    Lightning-fast image processing powered by GPU acceleration

    Sequential Calls

    Single request processing

    ~5seconds

    Average processing time for 1MP → 1MP image resize

    Consistent and reliable performance

    Parallel Calls

    Concurrent request processing

    ~1second

    Processing time for 1MP → 1MP with parallel requests

    Up to 5x faster with concurrency

    API Usage Guide

    Make a POST request to our API endpoint to process an image

    Endpoint

    POSThttps://api.rsz.app/processImage
    bash
    
    # --- User Configuration ---
    # 1. Set your API key as an environment variable in your terminal:
    #    export API_KEY="your_api_key_here"
    # 2. Run the command below, making sure to update the path
    #    to your image file.
    # NOTE: The first request may be significantly slower than subsequent ones
    # --------------------
    curl -X POST "https://api.rsz.app/processImage" \
      -H "Authorization: Bearer ${API_KEY}" \
      -H "Accept: application/json" \
      -F "image=@/path/to/your/image.jpg" \
      -F "target_width=1920" \
      -F "target_height=1080"

    Response Format

    json
    {
      "success": true,
      "job_id": "687e8f8578f23f3afcc92640",
      "ai_image_url": "https://....cloudfront.net/images/.../ai_resized.png?X-Amz-Algorithm=...",
      "regular_image_url": "https://....cloudfront.net/images/.../regular_resized.png?X-Amz-Algorithm=...",
      "processing_time": 4.162,
      "credits_remaining": 199,
      "message": "Image processed successfully"
    }

    Response Fields

    • success: Boolean indicating if processing was successful
    • job_id: Unique identifier for the processing job
    • ai_image_url: URL to download the AI-enhanced resized image (expires in 24 hours)
    • regular_image_url: URL to download the standard resized image (expires in 24 hours)
    • processing_time: Time taken to process the image in seconds
    • credits_remaining: Your remaining credit balance after this operation
    • message: Human-readable status message