{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokcloner-com/json-schema/tokcloner-com-clone-request-schema.json",
  "title": "CloneRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokcloner-com-openapi.json#/components/schemas/CloneRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "TikTok or Instagram post URL (image slideshow/carousel only)"
    },
    "instructions": {
      "type": "string",
      "maxLength": 2000,
      "description": "How to adapt the post for the user's business (niche, product, tone). Optional; without it the pipeline still rewrites captions from the business profile."
    },
    "model": {
      "type": "string",
      "description": "Image model id from listModels. Defaults to the user's saved model."
    },
    "quality": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "xhigh",
        "max"
      ],
      "description": "For openai/gpt-image-2 (low/medium/high) and openai/gpt-image-2.5/sunburst (low/medium/high/xhigh/max)"
    },
    "resolution": {
      "type": "string",
      "enum": [
        "0.5K",
        "1K",
        "2K",
        "4K"
      ],
      "description": "For fal-ai/nano-banana-2"
    }
  },
  "additionalProperties": false
}