{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revise-io/json-schema/revise-io-post-api-v1-convert-request-schema.json",
  "title": "PostApiV1ConvertRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/revise-io-openapi-generated.yml#/components/schemas/PostApiV1ConvertRequest",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "description": "Input object containing the file to convert."
    },
    "input.file_id": {
      "type": "string",
      "description": "ID of the uploaded file."
    },
    "output": {
      "type": "object",
      "description": "Output specification."
    },
    "output.format": {
      "type": "string",
      "description": "One of \"docx\", \"pdf\", \"md\", \"html\", \"txt\"."
    },
    "limits": {
      "type": "object",
      "description": "Optional execution and spending thresholds."
    },
    "limits.max_platform_cost_usd": {
      "type": "string",
      "description": "Platform spending threshold."
    },
    "limits.max_inference_cost_usd": {
      "type": "string",
      "description": "Soft inference threshold."
    },
    "limits.max_seconds": {
      "type": "integer",
      "description": "Work budget in seconds."
    },
    "inference": {
      "type": "object",
      "description": "Inference request settings."
    },
    "inference.provider": {
      "type": "string",
      "description": "Public provider ID."
    },
    "inference.model": {
      "type": "string",
      "description": "Exact model ID."
    },
    "inference.billing": {
      "type": "string",
      "description": "\"revise\" or \"provider\"."
    },
    "metadata": {
      "type": "object",
      "description": "Up to 16 string key/value pairs for attribution."
    },
    "output_encryption": {
      "type": "object",
      "description": "Encrypt exported artifact bytes."
    },
    "output_encryption.format": {
      "type": "string",
      "description": "Must be \"jwe\"."
    },
    "output_encryption.public_key_pem": {
      "type": "string",
      "description": "RSA SubjectPublicKeyInfo PEM (2048–8192 bits)."
    },
    "retention": {
      "type": "object",
      "description": "Retention options."
    },
    "retention.delete_after_webhook_id": {
      "type": "string",
      "description": "Account-owned endpoint for deletion after webhook."
    }
  },
  "required": [
    "input",
    "input.file_id",
    "output",
    "output.format",
    "output_encryption.format",
    "output_encryption.public_key_pem",
    "retention.delete_after_webhook_id"
  ]
}