Dummy Test

Dummy test endpoint using all shared models

Internal test endpoint for SDK generation purposes only. This endpoint demonstrates usage of all shared models defined in the Stainless configuration and is not intended for public consumption.

post/v1/dummy/test

Request body

transformationPosition'path' | 'query'

By default, the transformation string is added as a query parameter in the URL, e.g., ?tr=w-100,h-100. If you want to add the transformation string in the path of the URL, set this to path. Learn more in the Transformations guide.

streamingResolution'240' | '360' | '480' | '720' | '1080' | '1440' | '2160'

Available streaming resolutions for adaptive bitrate streaming

Example request

{
  "extensions": [
    {
      "name": "remove-bg",
      "options": {
        "add_shadow": true,
        "bg_colour": "green"
      }
    },
    {
      "name": "google-auto-tagging",
      "maxTags": 5,
      "minConfidence": 95
    },
    {
      "name": "ai-auto-description"
    },
    {
      "name": "ai-tasks",
      "tasks": [
        {
          "type": "select_tags",
          "instruction": "What types of clothing items are visible in this image?",
          "vocabulary": [
            "shirt",
            "tshirt",
            "dress",
            "trousers",
            "jacket"
          ]
        },
        {
          "type": "yes_no",
          "instruction": "Is this a luxury or high-end fashion item?",
          "on_yes": {
            "add_tags": [
              "luxury",
              "premium"
            ]
          }
        }
      ]
    },
    {
      "name": "saved-extension",
      "id": "ext_abc123"
    }
  ],
  "savedExtensions": {
    "id": "ext_abc123",
    "name": "Car Quality Analysis",
    "description": "Analyzes vehicle images for type, condition, and quality assessment",
    "config": {
      "tasks": [
        {
          "instruction": "What types of clothing items are visible in this image?",
          "vocabulary": [
            "shirt",
            "tshirt",
            "dress",
            "trousers",
            "jacket"
          ]
        }
      ]
    }
  },
  "extensionConfig": {
    "tasks": [
      {
        "instruction": "What types of clothing items are visible in this image?",
        "vocabulary": [
          "shirt",
          "tshirt",
          "dress",
          "trousers",
          "jacket"
        ]
      }
    ]
  },
  "srcOptions": {
    "src": "/my-image.jpg",
    "urlEndpoint": "https://ik.imagekit.io/demo",
    "transformation": [
      {
        "background": "red",
        "border": "5_FF0000",
        "dpr": 2,
        "focus": "center",
        "quality": 80,
        "blur": 10
      }
    ]
  },
  "getImageAttributesOptions": {
    "src": "/my-image.jpg",
    "urlEndpoint": "https://ik.imagekit.io/demo",
    "transformation": [
      {
        "background": "red",
        "border": "5_FF0000",
        "dpr": 2,
        "focus": "center",
        "quality": 80,
        "blur": 10
      }
    ],
    "width": 400,
    "sizes": "(min-width: 768px) 50vw, 100vw",
    "deviceBreakpoints": [
      640,
      750,
      828,
      1080,
      1200,
      1920,
      2048,
      3840
    ],
    "imageBreakpoints": [
      16,
      32,
      48,
      64,
      96,
      128,
      256,
      384
    ]
  },
  "responsiveImageAttributes": {
    "src": "https://ik.imagekit.io/demo/image.jpg?tr=w-3840",
    "srcSet": "https://ik.imagekit.io/demo/image.jpg?tr=w-640 640w, https://ik.imagekit.io/demo/image.jpg?tr=w-1080 1080w, https://ik.imagekit.io/demo/image.jpg?tr=w-1920 1920w",
    "sizes": "100vw",
    "width": 400
  },
  "transformation": {
    "background": "red",
    "border": "5_FF0000",
    "dpr": 2,
    "focus": "center",
    "quality": 80,
    "blur": 10
  },
  "overlay": {
    "transformation": [
      {
        "background": "red",
        "border": "5_FF0000",
        "dpr": 2,
        "focus": "center",
        "quality": 80,
        "blur": 10
      }
    ]
  },
  "imageOverlay": {
    "transformation": [
      {
        "background": "red",
        "border": "5_FF0000",
        "dpr": 2,
        "focus": "center",
        "quality": 80,
        "blur": 10
      }
    ]
  },
  "videoOverlay": {
    "transformation": [
      {
        "background": "red",
        "border": "5_FF0000",
        "dpr": 2,
        "focus": "center",
        "quality": 80,
        "blur": 10
      }
    ]
  }
}

Response

No content - Request processed successfully with empty response

Changes