{
  "openapi": "3.1.0",
  "info": {
    "title": "kino402",
    "version": "0.1.0",
    "summary": "Pay-per-call video generation and speech over x402. The unpaid 402 is the quote.",
    "description": "Frontier text-to-video models and TTS, priced per call in USDC on Base or Solana. No account and no API key: an unpaid POST answers 402 with the exact price for the body you sent, and paying that 402 is the whole authentication story. Quote and charge come from one function, so the number advertised is the number that settles.",
    "x-guidance": "kino402 sells frontier text-to-video and text-to-speech per call, in USDC on Base or Solana over x402. No account, no API key, no minimum.\n\nTHE QUOTE IS THE 402. POST an unpaid request to /v1/generate or /v1/audio/tts and the 402 that comes back carries the exact price for the body you sent — not a rate card, the number for that call. Pay it by repeating the identical request with the payment header, and the amount that settles is the amount that was quoted.\n\nHeaders: send X-PAYMENT for x402 v1, or PAYMENT-SIGNATURE for x402 v2. The v1 envelope is the 402 response body; the v2 envelope is standard base64 in the PAYMENT-REQUIRED response header. Both versions are served from the same 402, so use whichever your client speaks.\n\nRails: Base — USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, network \"base\" in x402 v1 and \"eip155:8453\" in v2; Solana — USDC EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, network \"solana\" in x402 v1 and \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\" in v2. Every rail carries the SAME quote for a given request — a second rail is a second way to pay, never a second price. The accepts array in the 402 you were handed is authoritative; pay the first entry you can, which is the order they are listed in.\n\nPOST is how you buy. A GET or HEAD on a paid route answers a reference 402 so a prober can read the terms without spending, but a payment presented on GET is refused without settling.\n\n/v1/generate is asynchronous. A paid POST returns {job_id, status_url} once the render is accepted upstream. Poll GET /v1/jobs/{id} — free and unauthenticated — until status is \"completed\" (the mp4 is at video_url) or \"failed\". A clip usually takes 1-6 minutes. The video_url expires: download it promptly.\n\nAn image is an OPENING FRAME, not a style reference: on a model with an image-to-video path (see image_to_video in GET /v1/models) the clip starts on exactly that picture. Anywhere else an image is a 400, never silently dropped. On a paid request the Worker fetches the URL once before anything is claimed, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged — an unpaid quote never fetches it.\n\n/v1/audio/tts is synchronous. A paid POST returns the mp3 in the response body.\n\nA /v1/forms/ route sells a FORMAT rather than a model: you send a structured brief — for the UGC form, a product name and one to five selling points; for the hero loop, one product photo; for the launch teaser, the line being announced; for the faceless explainer, a topic and its beats — and the service compiles it into the prompt and renders it on your behalf. It is priced as the renderer plus a compile fee, quoted in the same 402, delivered as the same job id, and the compiled prompt comes back with it so you can inspect or reuse the shot. GET /v1/models publishes every field of every form with its bounds and its default.\n\nA /v1/prompts/ route sells that compiler on its own, flat-priced and synchronous: the same brief in, and {prompt, render_plan, compiler} straight back in the response body — no job, no polling, no video. It is the cheapest thing in the catalog and it is the honest way to evaluate the format before buying a render, or to buy the prompt craft alone if you already have renderer credits. The prompt it returns is a valid `prompt` for POST /v1/generate, and render_plan carries the model, seconds, resolution and aspect ratio it was written for.\n\nGET /v1/models carries the full rate card: every model id, its parameter ranges, the rate formula it is priced from, and a worked example price. Read it before you pick a model — the cheapest and the most expensive video call in the catalog differ by more than two orders of magnitude.",
    "contact": {
      "email": "support@kino402.com",
      "url": "https://kino402.com"
    }
  },
  "servers": [
    {
      "url": "https://kino402.com"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getLandingPage",
        "summary": "Read the kino402 landing page and price table",
        "description": "The human surface. Rendered from the same catalog as /v1/models, so its prices are the live ones.",
        "security": [],
        "responses": {
          "200": {
            "description": "the page",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Read the same facts, terse, for a machine reader",
        "description": "Endpoints, payment terms and the rate card as plain text. Cheaper to read than this document if you already know x402.",
        "security": [],
        "responses": {
          "200": {
            "description": "plain text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/models": {
      "get": {
        "operationId": "getModels",
        "summary": "Read the full rate card and model catalog",
        "description": "Every model: id, parameter ranges, the rate formula it is priced from, and a worked example price. This is the catalog every other surface — including this document — is rendered from.",
        "security": [],
        "responses": {
          "200": {
            "description": "the catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "service",
                    "x402_versions",
                    "network",
                    "models"
                  ],
                  "properties": {
                    "service": {
                      "type": "string",
                      "const": "kino402"
                    },
                    "x402_versions": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      },
                      "description": "the protocol versions this seller accepts"
                    },
                    "network": {
                      "type": "object",
                      "description": "the PRIMARY rail, kept at its original shape for readers that predate the second one",
                      "properties": {
                        "v1": {
                          "type": "string"
                        },
                        "v2": {
                          "type": "string"
                        },
                        "asset": {
                          "type": "string"
                        },
                        "symbol": {
                          "type": "string"
                        }
                      }
                    },
                    "rails": {
                      "type": "array",
                      "description": "every rail this deployment is configured for, in the order a buyer meets them. The accepts array in a 402 is still the authority for one call.",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "v1",
                          "v2",
                          "asset",
                          "symbol"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "v1": {
                            "type": "string",
                            "description": "the x402 v1 network name"
                          },
                          "v2": {
                            "type": "string",
                            "description": "the CAIP-2 name the same rail carries in x402 v2"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on that rail"
                          },
                          "symbol": {
                            "type": "string",
                            "const": "USDC"
                          }
                        }
                      }
                    },
                    "pricing": {
                      "type": "string"
                    },
                    "failures": {
                      "type": "string"
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "kind",
                          "title",
                          "vendor",
                          "path",
                          "formula",
                          "example"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "video",
                              "audio",
                              "form",
                              "prompt"
                            ],
                            "description": "video and audio are sold by the model; a form is sold by the format, from a brief; a prompt is that form's compiler sold on its own, flat-priced, with no render"
                          },
                          "title": {
                            "type": "string"
                          },
                          "mark": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "vendor": {
                            "type": "string"
                          },
                          "path": {
                            "type": "string"
                          },
                          "good_at": {
                            "type": "string"
                          },
                          "resolutions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "default_resolution": {
                            "type": "string"
                          },
                          "duration_s": {
                            "type": "object",
                            "description": "min, max, default, `only` where the upstream takes an exact list, and `by_resolution` where a resolution takes a narrower one"
                          },
                          "audio": {
                            "type": "boolean"
                          },
                          "image_to_video": {
                            "type": "boolean",
                            "description": "a video model only: whether `image_urls` reaches it as the opening frame, or is a 400"
                          },
                          "max_chars": {
                            "type": "integer"
                          },
                          "default_voice": {
                            "type": "string"
                          },
                          "aspect_ratios": {
                            "type": "object",
                            "description": "a form only: which aspect ratio each platform renders at"
                          },
                          "tones": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "a form only: the delivery styles it accepts"
                          },
                          "fields": {
                            "type": "array",
                            "description": "a form only: every field of the brief, with its bounds, enum and default",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "type",
                                "required",
                                "description"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "default": {},
                                "enum": {
                                  "type": "array"
                                },
                                "min": {
                                  "type": "integer"
                                },
                                "max": {
                                  "type": "integer"
                                },
                                "min_items": {
                                  "type": "integer"
                                },
                                "max_items": {
                                  "type": "integer"
                                },
                                "max_length": {
                                  "type": "integer"
                                },
                                "description": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "input": {
                            "type": "string"
                          },
                          "formula": {
                            "type": "string"
                          },
                          "example": {
                            "type": "object",
                            "description": "a worked price: the params, and what they cost",
                            "properties": {
                              "params": {
                                "type": "object"
                              },
                              "price": {
                                "type": "string"
                              },
                              "price_atomic_usdc": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "summary": "Read this OpenAPI description of kino402",
        "description": "Rendered from the catalog on each request, so the prices and enums here are the live ones.",
        "security": [],
        "responses": {
          "200": {
            "description": "this document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/robots.txt": {
      "get": {
        "operationId": "getRobotsTxt",
        "summary": "Read the kino402 crawl policy file",
        "description": "Everything is allowed.",
        "security": [],
        "responses": {
          "200": {
            "description": "plain text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/og.svg": {
      "get": {
        "operationId": "getOgCard",
        "summary": "Fetch the kino402 share card as SVG",
        "description": "The social card as SVG.",
        "security": [],
        "responses": {
          "200": {
            "description": "an SVG image",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/generate": {
      "post": {
        "operationId": "generateVideo",
        "summary": "Buy a video render of a raw prompt on a named model",
        "description": "Unpaid: 402 carrying the exact quote for this body. Paid: the job is submitted upstream and you get {job_id, status_url} back — poll the status url for the mp4. Payment settles once the job is accepted, not when it finishes; a job that fails is resubmitted once automatically. A GET or HEAD here answers a reference 402 for probing, but the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "unknown keys are ignored by the service; they are excluded here so a client can catch its own typos",
                "required": [
                  "model",
                  "prompt"
                ],
                "additionalProperties": false,
                "properties": {
                  "model": {
                    "type": "string",
                    "enum": [
                      "seedance-2.0",
                      "seedance-2.0-mini",
                      "seedance-2.5",
                      "seedance-1.5-pro",
                      "kling-2.5-turbo-pro",
                      "hailuo-02-standard",
                      "veo-3.1",
                      "veo-3.1-fast",
                      "veo-3.1-lite",
                      "minimax-h3"
                    ],
                    "description": "which video model renders the shot. GET /v1/models for what each one is good at."
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "the shot, in words"
                  },
                  "duration_s": {
                    "type": "integer",
                    "minimum": 4,
                    "maximum": 30,
                    "x-per-model": {
                      "seedance-2.0": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.0-mini": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.5": {
                        "minimum": 4,
                        "maximum": 30
                      },
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      },
                      "kling-2.5-turbo-pro": {
                        "minimum": 5,
                        "maximum": 10,
                        "enum": [
                          5,
                          10
                        ]
                      },
                      "hailuo-02-standard": {
                        "minimum": 6,
                        "maximum": 10,
                        "enum": [
                          6,
                          10
                        ]
                      },
                      "veo-3.1": {
                        "minimum": 4,
                        "maximum": 8,
                        "enum": [
                          4,
                          6,
                          8
                        ]
                      },
                      "veo-3.1-fast": {
                        "minimum": 4,
                        "maximum": 8,
                        "enum": [
                          4,
                          6,
                          8
                        ]
                      },
                      "veo-3.1-lite": {
                        "minimum": 4,
                        "maximum": 8,
                        "enum": [
                          4,
                          6,
                          8
                        ]
                      },
                      "minimax-h3": {
                        "minimum": 5,
                        "maximum": 15
                      }
                    },
                    "description": "seconds, whole numbers only, and the range is per model — seedance-2.0 4-15s; seedance-2.0-mini 4-15s; seedance-2.5 4-30s; seedance-1.5-pro 4-12s; kling-2.5-turbo-pro exactly 5 or 10s; hailuo-02-standard exactly 6 or 10s; veo-3.1 exactly 4 or 6 or 8s; veo-3.1-fast exactly 4 or 6 or 8s; veo-3.1-lite exactly 4 or 6 or 8s; minimax-h3 5-15s; see `x-per-model`, which is each model's list at its default resolution. By resolution: veo-3.1 4, 6 or 8 at 720p; 8 at 1080p or 4k | veo-3.1-fast 4, 6 or 8 at 720p; 8 at 1080p or 4k | veo-3.1-lite 4, 6 or 8 at 720p; 8 at 1080p. Omitted: seedance-2.0 5s at 720p; seedance-2.0-mini 5s at 720p; seedance-2.5 5s at 720p; seedance-1.5-pro 5s at 720p; kling-2.5-turbo-pro 5s at 1080p; hailuo-02-standard 6s at 768p; veo-3.1 8s at 720p; veo-3.1-fast 8s at 720p; veo-3.1-lite 8s at 720p; minimax-h3 5s at 2k."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "21:9",
                      "16:9",
                      "4:3",
                      "1:1",
                      "3:4",
                      "9:16"
                    ],
                    "x-per-model": {
                      "seedance-2.0": [
                        "auto",
                        "21:9",
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16"
                      ],
                      "seedance-2.0-mini": [
                        "auto",
                        "21:9",
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16"
                      ],
                      "seedance-2.5": [
                        "auto",
                        "21:9",
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16"
                      ],
                      "seedance-1.5-pro": [
                        "auto",
                        "21:9",
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16"
                      ],
                      "kling-2.5-turbo-pro": null,
                      "hailuo-02-standard": null,
                      "veo-3.1": [
                        "16:9",
                        "9:16"
                      ],
                      "veo-3.1-fast": [
                        "16:9",
                        "9:16"
                      ],
                      "veo-3.1-lite": [
                        "16:9",
                        "9:16"
                      ],
                      "minimax-h3": [
                        "21:9",
                        "16:9",
                        "4:3",
                        "1:1",
                        "3:4",
                        "9:16"
                      ]
                    },
                    "description": "the frame shape the renderer is told, e.g. 9:16 for vertical. Only models with a verified list take it (see `x-per-model`; null means none — describe the frame in the prompt). Omitted: the renderer's default, which for seedance-1.5-pro is 16:9 landscape whatever the prompt says."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "480p",
                      "720p",
                      "1080p",
                      "768p",
                      "4k",
                      "2k"
                    ],
                    "description": "not every model takes every resolution — seedance-2.0 480p/720p; seedance-2.0-mini 480p/720p; seedance-2.5 480p/720p; seedance-1.5-pro 480p/720p; kling-2.5-turbo-pro 1080p; hailuo-02-standard 768p; veo-3.1 720p/1080p/4k; veo-3.1-fast 720p/1080p/4k; veo-3.1-lite 720p/1080p; minimax-h3 480p/768p/2k/4k. Omitted: the model's default."
                  },
                  "audio": {
                    "type": "boolean",
                    "default": false,
                    "description": "generate a soundtrack. Only seedance-1.5-pro, veo-3.1, veo-3.1-fast, veo-3.1-lite can; asking any other model for audio is a 400."
                  },
                  "image_urls": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https://"
                    },
                    "x-per-model": {
                      "seedance-2.0": {
                        "maxItems": 0
                      },
                      "seedance-2.0-mini": {
                        "maxItems": 0
                      },
                      "seedance-2.5": {
                        "maxItems": 0
                      },
                      "seedance-1.5-pro": {
                        "maxItems": 1
                      },
                      "kling-2.5-turbo-pro": {
                        "maxItems": 0
                      },
                      "hailuo-02-standard": {
                        "maxItems": 0
                      },
                      "veo-3.1": {
                        "maxItems": 1
                      },
                      "veo-3.1-fast": {
                        "maxItems": 1
                      },
                      "veo-3.1-lite": {
                        "maxItems": 1
                      },
                      "minimax-h3": {
                        "maxItems": 1
                      }
                    },
                    "description": "at most one https image, used as the OPENING FRAME of an image-to-video render. Only seedance-1.5-pro, veo-3.1, veo-3.1-fast, veo-3.1-lite, minimax-h3 take it; on any other model a non-empty list is a 400. It must be publicly fetchable: on a paid request it is fetched once before anything is claimed, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  }
                }
              },
              "example": {
                "model": "seedance-2.0-mini",
                "prompt": "a slow dolly through fog",
                "duration_s": 5,
                "resolution": "720p"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the job was accepted and payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url",
                    "model",
                    "price"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "const": "queued"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "GET this to collect the video. Free."
                    },
                    "model": {
                      "type": "string"
                    },
                    "params": {
                      "type": "object"
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "poll": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.058",
            "max": "17.334"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.058",
              "max": "17.334",
              "min_atomic": "58000",
              "max_atomic": "17334000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "upstream acceptance of the render",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "settled at upstream acceptance: one automatic resubmission, then status `failed` with `refund_due` true",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "`refund_due` on GET /v1/jobs/{id}",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "{job_id, status_url} in the 200, then GET /v1/jobs/{id} until status is `completed` or `failed`",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/forms/ugc-product-video": {
      "post": {
        "operationId": "buyUgcProductVideo",
        "summary": "Buy a UGC product video rendered from a brief",
        "description": "A creator-style spot from a brief instead of a prompt. Send the product name and one to five selling points; the service compiles them into a shot — handheld phone framing, natural light, platform-native aspect and pacing, the selling points spoken as beats rather than read as a list — and renders it. You get back the compiled prompt with the job, so the shot is inspectable and reusable. Unpaid: 402 carrying the exact quote for this brief. Paid: the brief is compiled into a prompt, the render is submitted, and you get {job_id, compiled_prompt, status_url} back — poll the status url for the mp4 exactly as you would for /v1/generate. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into the prompt that is rendered, and returns that prompt with the job.",
                "required": [
                  "product_name",
                  "selling_points"
                ],
                "additionalProperties": false,
                "properties": {
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what is being sold, written the way the speaker would say it out loud."
                  },
                  "selling_points": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "one claim per entry, in plain speech. They become spoken beats in the order you send them — the compiler weaves them into a continuous line of dialogue, it does not read them out as a list."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "tiktok",
                    "description": "decides aspect ratio and pacing: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "tone": {
                    "type": "string",
                    "enum": [
                      "casual",
                      "energetic",
                      "deadpan",
                      "luxury"
                    ],
                    "default": "casual",
                    "description": "how the speaker delivers it, which changes the performance direction in the compiled prompt."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 5,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      },
                      "seedance-2.0": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.0-mini": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.5": {
                        "minimum": 4,
                        "maximum": 30
                      }
                    },
                    "description": "seconds of finished video, and the beats are timed to it. 4-12 on the default renderer (seedance-1.5-pro); name another in `model` for its range — seedance-1.5-pro 4-12s; seedance-2.0 4-15s; seedance-2.0-mini 4-15s; seedance-2.5 4-30s."
                  },
                  "image_urls": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https://"
                    },
                    "description": "one publicly fetchable https photo of the product, used as the opening frame: the take opens on the product exactly as photographed, then the phone pulls back and the speaker brings it up, already talking. Only the first frame is pinned. Taken on seedance-1.5-pro only — with another `model` it is a 400 before any charge — and fetched once after payment verifies: a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "seedance-1.5-pro",
                      "seedance-2.0",
                      "seedance-2.0-mini",
                      "seedance-2.5"
                    ],
                    "default": "seedance-1.5-pro",
                    "description": "which catalog model renders the compiled prompt, and therefore what the clip costs and how long it may run — see `per_model` on duration_s. The default is the only one that carries its own spoken audio, which a talking-head spot needs."
                  }
                }
              },
              "example": {
                "product_name": "an insulated steel water bottle",
                "selling_points": [
                  "keeps ice all day",
                  "fits a car cup holder"
                ],
                "platform": "tiktok"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the brief compiled, the job was accepted, and payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url",
                    "model",
                    "compiled_prompt",
                    "price"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "const": "queued"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "GET this to collect the video. Free."
                    },
                    "model": {
                      "type": "string",
                      "description": "the form id the job was bought and priced as"
                    },
                    "compiled_prompt": {
                      "type": "string",
                      "description": "the prompt the brief compiled to, in full. It is what was rendered, and it can be replayed on POST /v1/generate."
                    },
                    "params": {
                      "type": "object",
                      "description": "the brief the price was quoted for, plus the derived render settings"
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "poll": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.32",
            "max": "17.394"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.32",
              "max": "17.394",
              "min_atomic": "320000",
              "max_atomic": "17394000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "upstream acceptance of the render",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "settled at upstream acceptance: one automatic resubmission, then status `failed` with `refund_due` true",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "`refund_due` on GET /v1/jobs/{id}",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "{job_id, status_url} in the 200, then GET /v1/jobs/{id} until status is `completed` or `failed`",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/forms/product-hero-loop": {
      "post": {
        "operationId": "buyProductHeroLoop",
        "summary": "Buy a product hero loop rendered from a brief",
        "description": "A product photo becomes a seamless, silent loop for a product page, an ad or a story. Send one https photo and the product name; the clip opens and closes on that exact photo, with one slow move between — an orbit, a push-in, a float, a light sweep or a parallax drift — so it loops without a seam. You get back the compiled prompt with the job. Unpaid: 402 carrying the exact quote for this brief. Paid: the brief is compiled into a prompt, the render is submitted, and you get {job_id, compiled_prompt, status_url} back — poll the status url for the mp4 exactly as you would for /v1/generate. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into the prompt that is rendered, and returns that prompt with the job.",
                "required": [
                  "image_url",
                  "product_name"
                ],
                "additionalProperties": false,
                "properties": {
                  "image_url": {
                    "type": "string",
                    "maxLength": 2048,
                    "minLength": 1,
                    "format": "uri",
                    "pattern": "^https://",
                    "description": "one publicly fetchable https photo of the product. It is the FIRST AND THE LAST frame of the clip, which is what makes the loop seamless — a clean shot of one product, nothing in hand, works best. Rendered image-to-video on seedance-1.5-pro; fetched once after payment verifies, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what the product is, in plain words. The compiler holds it exactly as photographed — shape, colour, label, proportions."
                  },
                  "motion": {
                    "type": "string",
                    "enum": [
                      "orbit",
                      "push-in",
                      "float",
                      "light-sweep",
                      "parallax"
                    ],
                    "default": "orbit",
                    "description": "the one continuous move, and it always returns to the opening frame: orbit, a slow partial arc around the product; push-in, a slow dolly in and an ease back; float, the product lifts and turns gently; light-sweep, the camera locked while a highlight glides across the surface; parallax, a subtle depth drift."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "1:1",
                      "9:16",
                      "16:9",
                      "3:4",
                      "4:3"
                    ],
                    "default": "auto",
                    "description": "the frame the loop is cut to. auto follows the photo; the others crop to a product page (1:1), a story (9:16) or a banner (16:9)."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 5,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of loop, one continuous move from the photo back to the photo. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "image_url": "https://kino402.com/media/hero-loop-example.jpg",
                "product_name": "an insulated steel water bottle",
                "motion": "orbit",
                "duration_s": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the brief compiled, the job was accepted, and payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url",
                    "model",
                    "compiled_prompt",
                    "price"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "const": "queued"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "GET this to collect the video. Free."
                    },
                    "model": {
                      "type": "string",
                      "description": "the form id the job was bought and priced as"
                    },
                    "compiled_prompt": {
                      "type": "string",
                      "description": "the prompt the brief compiled to, in full. It is what was rendered, and it can be replayed on POST /v1/generate."
                    },
                    "params": {
                      "type": "object",
                      "description": "the brief the price was quoted for, plus the derived render settings"
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "poll": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.19",
            "max": "0.449"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.19",
              "max": "0.449",
              "min_atomic": "190000",
              "max_atomic": "449000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "upstream acceptance of the render",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "settled at upstream acceptance: one automatic resubmission, then status `failed` with `refund_due` true",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "`refund_due` on GET /v1/jobs/{id}",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "{job_id, status_url} in the 200, then GET /v1/jobs/{id} until status is `completed` or `failed`",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/forms/launch-teaser": {
      "post": {
        "operationId": "buyLaunchTeaser",
        "summary": "Buy a launch teaser rendered from a brief",
        "description": "An announcement clip for a product, a release or a feature — what you post the day you ship. Send the name and the one line being announced, plus up to three supporting beats; the service compiles a cinematic reveal — build-up, reveal, payoff — with an off-screen announcer speaking the lines and a music bed that resolves on the reveal, and renders it with its own audio. No on-screen text and no invented product: the voice carries the name and the words, and the reveal is light and motion. Send your logo, a screenshot or a product photo and the clip opens on it and resolves back onto it. Unpaid: 402 carrying the exact quote for this brief. Paid: the brief is compiled into a prompt, the render is submitted, and you get {job_id, compiled_prompt, status_url} back — poll the status url for the mp4 exactly as you would for /v1/generate. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into the prompt that is rendered, and returns that prompt with the job.",
                "required": [
                  "product_name",
                  "announcement"
                ],
                "additionalProperties": false,
                "properties": {
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what is being launched — a product, a release or a feature — the way the announcer will say it. It is spoken, never drawn: without an image_url the clip shows light and motion, not an invented object."
                  },
                  "announcement": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "the one line being announced, spoken by the voice-over as the reveal lands. Spoken, never shown: the clip carries no on-screen text, because video models garble lettering."
                  },
                  "points": {
                    "type": "array",
                    "maxItems": 3,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "up to 3 supporting beats, spoken after the announcement in the order you send them, each over its own payoff shot. The brief has to compile to a prompt of at most 2000 characters with nothing cut — every field at its maximum does not, and is a 400 naming the field to shorten."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "landscape",
                    "description": "the feed it is cut for, which decides the frame: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "tone": {
                    "type": "string",
                    "enum": [
                      "hype",
                      "calm",
                      "playful",
                      "premium"
                    ],
                    "default": "hype",
                    "description": "the energy of the cut, the announcer and the music: hype builds hard to a big hit; calm swells gently; playful bounces; premium is slow, glossy and low."
                  },
                  "image_url": {
                    "type": "string",
                    "maxLength": 2048,
                    "minLength": 1,
                    "format": "uri",
                    "pattern": "^https://",
                    "description": "optional — a logo, a screenshot or a product photo. When sent, it is the first AND the last frame, exactly as given (image-to-video on seedance-1.5-pro): the clip moves off it into the reveal and resolves back onto it. Without one the reveal is abstract light and motion, so send a photo when what you launch is a physical thing. Fetched once after payment verifies, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of teaser; the build-up, the reveal, the payoff and the voice-over lines are timed to it. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "product_name": "kino402",
                "announcement": "finished video from one paid request — no account, no key",
                "duration_s": 10,
                "platform": "landscape",
                "tone": "hype"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the brief compiled, the job was accepted, and payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url",
                    "model",
                    "compiled_prompt",
                    "price"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "const": "queued"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "GET this to collect the video. Free."
                    },
                    "model": {
                      "type": "string",
                      "description": "the form id the job was bought and priced as"
                    },
                    "compiled_prompt": {
                      "type": "string",
                      "description": "the prompt the brief compiled to, in full. It is what was rendered, and it can be replayed on POST /v1/generate."
                    },
                    "params": {
                      "type": "object",
                      "description": "the brief the price was quoted for, plus the derived render settings"
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "poll": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.32",
            "max": "0.838"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.32",
              "max": "0.838",
              "min_atomic": "320000",
              "max_atomic": "838000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "upstream acceptance of the render",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "settled at upstream acceptance: one automatic resubmission, then status `failed` with `refund_due` true",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "`refund_due` on GET /v1/jobs/{id}",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "{job_id, status_url} in the 200, then GET /v1/jobs/{id} until status is `completed` or `failed`",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/forms/faceless-explainer": {
      "post": {
        "operationId": "buyFacelessExplainer",
        "summary": "Buy a faceless explainer rendered from a brief",
        "description": "A narrated explainer short with no presenter — b-roll and voice-over. Send a topic and one to four beats; the service compiles a shot list — one shot per beat, each with its time window, hard cuts, pictures that show the beat through hands, objects, places and processes and never a face — with a narrator delivering each beat over its shot and a low music bed, and renders it with its own audio. Unpaid: 402 carrying the exact quote for this brief. Paid: the brief is compiled into a prompt, the render is submitted, and you get {job_id, compiled_prompt, status_url} back — poll the status url for the mp4 exactly as you would for /v1/generate. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into the prompt that is rendered, and returns that prompt with the job.",
                "required": [
                  "topic",
                  "points"
                ],
                "additionalProperties": false,
                "properties": {
                  "topic": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what the explainer explains, in a phrase. It frames the narration and the look of every shot."
                  },
                  "points": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 4,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "the narrated beats, in order, each written the way the narrator would say it. One shot per beat, each with its own time window, cut hard to the next. The brief has to compile to a prompt of at most 2000 characters with nothing cut — every field at its maximum does not, and is a 400 naming the field to shorten."
                  },
                  "style": {
                    "type": "string",
                    "enum": [
                      "documentary",
                      "cinematic",
                      "macro",
                      "abstract"
                    ],
                    "default": "documentary",
                    "description": "the b-roll's visual language: documentary is observational and unstaged; cinematic is shallow-focus and graded; macro is extreme close-up detail; abstract is light, colour and shape as metaphor."
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "warm",
                      "crisp",
                      "deep",
                      "bright"
                    ],
                    "default": "warm",
                    "description": "the narrator: warm and conversational, crisp and precise, deep and authoritative, or bright and quick."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "shorts",
                    "description": "the feed it is cut for, which decides the frame: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of explainer, divided evenly between the shots — one per beat. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "topic": "how an x402 payment works",
                "points": [
                  "the agent asks for something and gets a price back",
                  "it signs a payment and asks again",
                  "the server checks it and delivers"
                ],
                "duration_s": 10,
                "platform": "shorts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the brief compiled, the job was accepted, and payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url",
                    "model",
                    "compiled_prompt",
                    "price"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "const": "queued"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "GET this to collect the video. Free."
                    },
                    "model": {
                      "type": "string",
                      "description": "the form id the job was bought and priced as"
                    },
                    "compiled_prompt": {
                      "type": "string",
                      "description": "the prompt the brief compiled to, in full. It is what was rendered, and it can be replayed on POST /v1/generate."
                    },
                    "params": {
                      "type": "object",
                      "description": "the brief the price was quoted for, plus the derived render settings"
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "poll": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.32",
            "max": "0.838"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.32",
              "max": "0.838",
              "min_atomic": "320000",
              "max_atomic": "838000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "upstream acceptance of the render",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "settled at upstream acceptance: one automatic resubmission, then status `failed` with `refund_due` true",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "`refund_due` on GET /v1/jobs/{id}",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "{job_id, status_url} in the 200, then GET /v1/jobs/{id} until status is `completed` or `failed`",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/prompts/ugc-product-video": {
      "post": {
        "operationId": "buyUgcProductVideoPrompt",
        "summary": "Buy the compiled prompt for a UGC product video",
        "description": "The prompt, without the video. Send the same brief the UGC form takes — product name, one to five selling points, platform, tone — and get back the compiled shot description plus the render plan it was written for: which model, how many seconds, what resolution, what aspect ratio. It is the identical compiler the form endpoint runs behind its own payment, so the prompt you get is the prompt that would have been rendered. Take it to POST /v1/generate yourself, keep it, or edit it first. A flat $0.008 per call, whatever the brief — no seconds, no resolution, no renderer in the price. Unpaid: 402 carrying that quote. Paid: the brief is compiled and you get {prompt, render_plan, compiler} back in the response, synchronously, with no job to poll and no video produced. It is the same compiler /v1/forms/ugc-product-video runs on the same brief — but that route always re-compiles from the brief and does not accept a pre-compiled prompt; to render THIS prompt, POST it to /v1/generate with the render_plan fields. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged. A GET or HEAD answers a reference 402 for probing; the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into a prompt and returns it synchronously — no job, no render.",
                "required": [
                  "product_name",
                  "selling_points"
                ],
                "additionalProperties": false,
                "properties": {
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what is being sold, written the way the speaker would say it out loud."
                  },
                  "selling_points": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "one claim per entry, in plain speech. They become spoken beats in the order you send them — the compiler weaves them into a continuous line of dialogue, it does not read them out as a list."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "tiktok",
                    "description": "decides aspect ratio and pacing: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "tone": {
                    "type": "string",
                    "enum": [
                      "casual",
                      "energetic",
                      "deadpan",
                      "luxury"
                    ],
                    "default": "casual",
                    "description": "how the speaker delivers it, which changes the performance direction in the compiled prompt."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 5,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      },
                      "seedance-2.0": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.0-mini": {
                        "minimum": 4,
                        "maximum": 15
                      },
                      "seedance-2.5": {
                        "minimum": 4,
                        "maximum": 30
                      }
                    },
                    "description": "seconds of finished video, and the beats are timed to it. 4-12 on the default renderer (seedance-1.5-pro); name another in `model` for its range — seedance-1.5-pro 4-12s; seedance-2.0 4-15s; seedance-2.0-mini 4-15s; seedance-2.5 4-30s."
                  },
                  "image_urls": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https://"
                    },
                    "description": "one publicly fetchable https photo of the product, used as the opening frame: the take opens on the product exactly as photographed, then the phone pulls back and the speaker brings it up, already talking. Only the first frame is pinned. Taken on seedance-1.5-pro only — with another `model` it is a 400 before any charge — and fetched once after payment verifies: a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "seedance-1.5-pro",
                      "seedance-2.0",
                      "seedance-2.0-mini",
                      "seedance-2.5"
                    ],
                    "default": "seedance-1.5-pro",
                    "description": "which catalog model renders the compiled prompt, and therefore what the clip costs and how long it may run — see `per_model` on duration_s. The default is the only one that carries its own spoken audio, which a talking-head spot needs."
                  }
                }
              },
              "example": {
                "product_name": "an insulated steel water bottle",
                "selling_points": [
                  "keeps ice all day",
                  "fits a car cup holder"
                ],
                "platform": "tiktok"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the compiled prompt and the render plan it was written for; payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "prompt",
                    "render_plan",
                    "compiler",
                    "price"
                  ],
                  "properties": {
                    "prompt": {
                      "type": "string",
                      "description": "the compiled shot description, in full. It is a valid `prompt` for POST /v1/generate as it stands."
                    },
                    "render_plan": {
                      "type": "object",
                      "description": "the render the prompt was written for, under the names /v1/generate takes them under. Not a complete request body: add the prompt field from this response, keep aspect_ratio (/v1/generate sends it to the renderer; omitted, seedance-1.5-pro renders 16:9 whatever the prompt says), and drop platform (informational).",
                      "required": [
                        "model",
                        "duration_s",
                        "resolution",
                        "aspect_ratio"
                      ],
                      "properties": {
                        "model": {
                          "type": "string",
                          "description": "the catalog video model the prompt was compiled for"
                        },
                        "duration_s": {
                          "type": "integer"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "description": "the platform's aspect ratio, e.g. 9:16"
                        },
                        "platform": {
                          "type": "string"
                        },
                        "audio": {
                          "type": "boolean"
                        },
                        "image_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "compiler": {
                      "type": "string",
                      "enum": [
                        "template",
                        "llm"
                      ],
                      "description": "which layer wrote it: the deterministic template, or the template after a language model tightened it. Both are complete prompts; the template is the floor and always runs first."
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "render": {
                      "type": "string",
                      "description": "where to take the plan to buy the clip"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.008",
            "max": "0.008"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.008",
              "max": "0.008",
              "min_atomic": "8000",
              "max_atomic": "8000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "delivery of the response body",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "none — settlement is queued only once the product is in the response",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "none",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "the 200 response body, which is the product",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/prompts/product-hero-loop": {
      "post": {
        "operationId": "buyProductHeroLoopPrompt",
        "summary": "Buy the compiled prompt for a product hero loop",
        "description": "The loop's prompt, without the render. Send the same brief the hero-loop form takes — photo URL, product name, motion, aspect — and get back the compiled shot description and the render plan it was written for. Nothing is fetched and nothing is rendered. The plan opens a /v1/generate clip on your photo; the seamless close on the same photo is the form's. A flat $0.006 per call, whatever the brief — no seconds, no resolution, no renderer in the price. Unpaid: 402 carrying that quote. Paid: the brief is compiled and you get {prompt, render_plan, compiler} back in the response, synchronously, with no job to poll and no video produced. It is the same compiler /v1/forms/product-hero-loop runs on the same brief — but that route always re-compiles from the brief and does not accept a pre-compiled prompt; to render THIS prompt, POST it to /v1/generate with the render_plan fields. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged. A GET or HEAD answers a reference 402 for probing; the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into a prompt and returns it synchronously — no job, no render.",
                "required": [
                  "image_url",
                  "product_name"
                ],
                "additionalProperties": false,
                "properties": {
                  "image_url": {
                    "type": "string",
                    "maxLength": 2048,
                    "minLength": 1,
                    "format": "uri",
                    "pattern": "^https://",
                    "description": "one publicly fetchable https photo of the product. It is the FIRST AND THE LAST frame of the clip, which is what makes the loop seamless — a clean shot of one product, nothing in hand, works best. Rendered image-to-video on seedance-1.5-pro; fetched once after payment verifies, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what the product is, in plain words. The compiler holds it exactly as photographed — shape, colour, label, proportions."
                  },
                  "motion": {
                    "type": "string",
                    "enum": [
                      "orbit",
                      "push-in",
                      "float",
                      "light-sweep",
                      "parallax"
                    ],
                    "default": "orbit",
                    "description": "the one continuous move, and it always returns to the opening frame: orbit, a slow partial arc around the product; push-in, a slow dolly in and an ease back; float, the product lifts and turns gently; light-sweep, the camera locked while a highlight glides across the surface; parallax, a subtle depth drift."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "1:1",
                      "9:16",
                      "16:9",
                      "3:4",
                      "4:3"
                    ],
                    "default": "auto",
                    "description": "the frame the loop is cut to. auto follows the photo; the others crop to a product page (1:1), a story (9:16) or a banner (16:9)."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 5,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of loop, one continuous move from the photo back to the photo. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "image_url": "https://kino402.com/media/hero-loop-example.jpg",
                "product_name": "an insulated steel water bottle",
                "motion": "orbit",
                "duration_s": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the compiled prompt and the render plan it was written for; payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "prompt",
                    "render_plan",
                    "compiler",
                    "price"
                  ],
                  "properties": {
                    "prompt": {
                      "type": "string",
                      "description": "the compiled shot description, in full. It is a valid `prompt` for POST /v1/generate as it stands."
                    },
                    "render_plan": {
                      "type": "object",
                      "description": "the render the prompt was written for, under the names /v1/generate takes them under. Not a complete request body: add the prompt field from this response, keep aspect_ratio (/v1/generate sends it to the renderer; omitted, seedance-1.5-pro renders 16:9 whatever the prompt says), and drop platform (informational).",
                      "required": [
                        "model",
                        "duration_s",
                        "resolution",
                        "aspect_ratio"
                      ],
                      "properties": {
                        "model": {
                          "type": "string",
                          "description": "the catalog video model the prompt was compiled for"
                        },
                        "duration_s": {
                          "type": "integer"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "description": "the platform's aspect ratio, e.g. 9:16"
                        },
                        "platform": {
                          "type": "string"
                        },
                        "audio": {
                          "type": "boolean"
                        },
                        "image_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "compiler": {
                      "type": "string",
                      "enum": [
                        "template",
                        "llm"
                      ],
                      "description": "which layer wrote it: the deterministic template, or the template after a language model tightened it. Both are complete prompts; the template is the floor and always runs first."
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "render": {
                      "type": "string",
                      "description": "where to take the plan to buy the clip"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.006",
            "max": "0.006"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.006",
              "max": "0.006",
              "min_atomic": "6000",
              "max_atomic": "6000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "delivery of the response body",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "none — settlement is queued only once the product is in the response",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "none",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "the 200 response body, which is the product",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/prompts/launch-teaser": {
      "post": {
        "operationId": "buyLaunchTeaserPrompt",
        "summary": "Buy the compiled prompt for a launch teaser",
        "description": "The teaser's prompt, without the render. Send the same brief the launch-teaser form takes — name, announcement, supporting beats, platform, tone — and get back the compiled shot description with its beat sheet and voice-over lines, plus the render plan it was written for. Nothing is rendered; take it to POST /v1/generate with audio on, or keep it. A flat $0.005 per call, whatever the brief — no seconds, no resolution, no renderer in the price. Unpaid: 402 carrying that quote. Paid: the brief is compiled and you get {prompt, render_plan, compiler} back in the response, synchronously, with no job to poll and no video produced. It is the same compiler /v1/forms/launch-teaser runs on the same brief — but that route always re-compiles from the brief and does not accept a pre-compiled prompt; to render THIS prompt, POST it to /v1/generate with the render_plan fields. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged. A GET or HEAD answers a reference 402 for probing; the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into a prompt and returns it synchronously — no job, no render.",
                "required": [
                  "product_name",
                  "announcement"
                ],
                "additionalProperties": false,
                "properties": {
                  "product_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what is being launched — a product, a release or a feature — the way the announcer will say it. It is spoken, never drawn: without an image_url the clip shows light and motion, not an invented object."
                  },
                  "announcement": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "the one line being announced, spoken by the voice-over as the reveal lands. Spoken, never shown: the clip carries no on-screen text, because video models garble lettering."
                  },
                  "points": {
                    "type": "array",
                    "maxItems": 3,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "up to 3 supporting beats, spoken after the announcement in the order you send them, each over its own payoff shot. The brief has to compile to a prompt of at most 2000 characters with nothing cut — every field at its maximum does not, and is a 400 naming the field to shorten."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "landscape",
                    "description": "the feed it is cut for, which decides the frame: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "tone": {
                    "type": "string",
                    "enum": [
                      "hype",
                      "calm",
                      "playful",
                      "premium"
                    ],
                    "default": "hype",
                    "description": "the energy of the cut, the announcer and the music: hype builds hard to a big hit; calm swells gently; playful bounces; premium is slow, glossy and low."
                  },
                  "image_url": {
                    "type": "string",
                    "maxLength": 2048,
                    "minLength": 1,
                    "format": "uri",
                    "pattern": "^https://",
                    "description": "optional — a logo, a screenshot or a product photo. When sent, it is the first AND the last frame, exactly as given (image-to-video on seedance-1.5-pro): the clip moves off it into the reveal and resolves back onto it. Without one the reveal is abstract light and motion, so send a photo when what you launch is a physical thing. Fetched once after payment verifies, and a URL that does not answer 200 with a JPEG, PNG or WebP is a 400 with nothing charged."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of teaser; the build-up, the reveal, the payoff and the voice-over lines are timed to it. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "product_name": "kino402",
                "announcement": "finished video from one paid request — no account, no key",
                "duration_s": 10,
                "platform": "landscape",
                "tone": "hype"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the compiled prompt and the render plan it was written for; payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "prompt",
                    "render_plan",
                    "compiler",
                    "price"
                  ],
                  "properties": {
                    "prompt": {
                      "type": "string",
                      "description": "the compiled shot description, in full. It is a valid `prompt` for POST /v1/generate as it stands."
                    },
                    "render_plan": {
                      "type": "object",
                      "description": "the render the prompt was written for, under the names /v1/generate takes them under. Not a complete request body: add the prompt field from this response, keep aspect_ratio (/v1/generate sends it to the renderer; omitted, seedance-1.5-pro renders 16:9 whatever the prompt says), and drop platform (informational).",
                      "required": [
                        "model",
                        "duration_s",
                        "resolution",
                        "aspect_ratio"
                      ],
                      "properties": {
                        "model": {
                          "type": "string",
                          "description": "the catalog video model the prompt was compiled for"
                        },
                        "duration_s": {
                          "type": "integer"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "description": "the platform's aspect ratio, e.g. 9:16"
                        },
                        "platform": {
                          "type": "string"
                        },
                        "audio": {
                          "type": "boolean"
                        },
                        "image_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "compiler": {
                      "type": "string",
                      "enum": [
                        "template",
                        "llm"
                      ],
                      "description": "which layer wrote it: the deterministic template, or the template after a language model tightened it. Both are complete prompts; the template is the floor and always runs first."
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "render": {
                      "type": "string",
                      "description": "where to take the plan to buy the clip"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.005",
            "max": "0.005"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.005",
              "max": "0.005",
              "min_atomic": "5000",
              "max_atomic": "5000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "delivery of the response body",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "none — settlement is queued only once the product is in the response",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "none",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "the 200 response body, which is the product",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/prompts/faceless-explainer": {
      "post": {
        "operationId": "buyFacelessExplainerPrompt",
        "summary": "Buy the compiled prompt for a faceless explainer",
        "description": "The explainer's shot list, without the render. Send the same brief the faceless-explainer form takes — topic, beats, style, voice, platform — and get back the compiled shot list with its time windows and narration, plus the render plan it was written for. Nothing is rendered; take it to POST /v1/generate with audio on, or keep it. A flat $0.009 per call, whatever the brief — no seconds, no resolution, no renderer in the price. Unpaid: 402 carrying that quote. Paid: the brief is compiled and you get {prompt, render_plan, compiler} back in the response, synchronously, with no job to poll and no video produced. It is the same compiler /v1/forms/faceless-explainer runs on the same brief — but that route always re-compiles from the brief and does not accept a pre-compiled prompt; to render THIS prompt, POST it to /v1/generate with the render_plan fields. The compile runs only after payment verifies, and a compile that cannot produce a prompt is a 502 with nothing charged. A GET or HEAD answers a reference 402 for probing; the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "the brief. The service compiles it into a prompt and returns it synchronously — no job, no render.",
                "required": [
                  "topic",
                  "points"
                ],
                "additionalProperties": false,
                "properties": {
                  "topic": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "what the explainer explains, in a phrase. It frames the narration and the look of every shot."
                  },
                  "points": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 4,
                    "items": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": "the narrated beats, in order, each written the way the narrator would say it. One shot per beat, each with its own time window, cut hard to the next. The brief has to compile to a prompt of at most 2000 characters with nothing cut — every field at its maximum does not, and is a 400 naming the field to shorten."
                  },
                  "style": {
                    "type": "string",
                    "enum": [
                      "documentary",
                      "cinematic",
                      "macro",
                      "abstract"
                    ],
                    "default": "documentary",
                    "description": "the b-roll's visual language: documentary is observational and unstaged; cinematic is shallow-focus and graded; macro is extreme close-up detail; abstract is light, colour and shape as metaphor."
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "warm",
                      "crisp",
                      "deep",
                      "bright"
                    ],
                    "default": "warm",
                    "description": "the narrator: warm and conversational, crisp and precise, deep and authoritative, or bright and quick."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "tiktok",
                      "reels",
                      "shorts",
                      "landscape"
                    ],
                    "default": "shorts",
                    "description": "the feed it is cut for, which decides the frame: tiktok 9:16, reels 9:16, shorts 9:16, landscape 16:9."
                  },
                  "duration_s": {
                    "type": "integer",
                    "default": 10,
                    "minimum": 4,
                    "maximum": 12,
                    "x-per-model": {
                      "seedance-1.5-pro": {
                        "minimum": 4,
                        "maximum": 12
                      }
                    },
                    "description": "seconds of explainer, divided evenly between the shots — one per beat. 4-12 on seedance-1.5-pro."
                  }
                }
              },
              "example": {
                "topic": "how an x402 payment works",
                "points": [
                  "the agent asks for something and gets a price back",
                  "it signs a payment and asks again",
                  "the server checks it and delivers"
                ],
                "duration_s": 10,
                "platform": "shorts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the compiled prompt and the render plan it was written for; payment is settling behind this response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "prompt",
                    "render_plan",
                    "compiler",
                    "price"
                  ],
                  "properties": {
                    "prompt": {
                      "type": "string",
                      "description": "the compiled shot description, in full. It is a valid `prompt` for POST /v1/generate as it stands."
                    },
                    "render_plan": {
                      "type": "object",
                      "description": "the render the prompt was written for, under the names /v1/generate takes them under. Not a complete request body: add the prompt field from this response, keep aspect_ratio (/v1/generate sends it to the renderer; omitted, seedance-1.5-pro renders 16:9 whatever the prompt says), and drop platform (informational).",
                      "required": [
                        "model",
                        "duration_s",
                        "resolution",
                        "aspect_ratio"
                      ],
                      "properties": {
                        "model": {
                          "type": "string",
                          "description": "the catalog video model the prompt was compiled for"
                        },
                        "duration_s": {
                          "type": "integer"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "description": "the platform's aspect ratio, e.g. 9:16"
                        },
                        "platform": {
                          "type": "string"
                        },
                        "audio": {
                          "type": "boolean"
                        },
                        "image_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "compiler": {
                      "type": "string",
                      "enum": [
                        "template",
                        "llm"
                      ],
                      "description": "which layer wrote it: the deterministic template, or the template after a language model tightened it. Both are complete prompts; the template is the floor and always runs first."
                    },
                    "price": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "render": {
                      "type": "string",
                      "description": "where to take the plan to buy the clip"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.009",
            "max": "0.009"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.009",
              "max": "0.009",
              "min_atomic": "9000",
              "max_atomic": "9000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "delivery of the response body",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "none — settlement is queued only once the product is in the response",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "none",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "the 200 response body, which is the product",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    },
    "/v1/jobs/{id}": {
      "get": {
        "operationId": "getJob",
        "summary": "Poll a render job until its video is ready",
        "security": [],
        "description": "Free and unauthenticated — knowing the job id is what entitles you to the result. Poll until status is \"completed\" (video_url is set) or \"failed\". Typically 1-6 minutes. The video_url expires.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "the job_id returned by POST /v1/generate",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{8,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the job as it stands",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "model",
                    "price",
                    "created_at",
                    "status_url",
                    "retries"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "running",
                        "completed",
                        "failed"
                      ]
                    },
                    "model": {
                      "type": "string"
                    },
                    "params": {
                      "type": "object",
                      "description": "the parameters the price was quoted for"
                    },
                    "price": {
                      "type": "object",
                      "properties": {
                        "usd": {
                          "type": "string"
                        },
                        "atomic_usdc": {
                          "type": "string"
                        }
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "status_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "retries": {
                      "type": "integer",
                      "description": "0 if it worked first time, 1 if it was resubmitted automatically"
                    },
                    "video_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "present when status is \"completed\". An expiring link — download it promptly."
                    },
                    "refund_due": {
                      "type": "boolean",
                      "description": "present when status is \"failed\""
                    },
                    "note": {
                      "type": "string",
                      "description": "present when status is \"failed\""
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "no such job",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/v1/audio/tts": {
      "post": {
        "operationId": "synthesizeSpeech",
        "summary": "Buy an mp3 speech track synthesised from text",
        "description": "Synchronous. Unpaid: 402 carrying the exact quote for the character count of `text`. Paid: the mp3 is the response body, and settlement runs behind it. A GET or HEAD answers a reference 402 for probing; the sale happens on POST.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "text"
                ],
                "additionalProperties": false,
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "description": "what to say. Priced per character of THIS string — $0.00024 per character."
                  },
                  "voice": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$",
                    "default": "21m00Tcm4TlvDq8ikWAM",
                    "description": "an ElevenLabs voice id. Omitted: 21m00Tcm4TlvDq8ikWAM."
                  }
                }
              },
              "example": {
                "text": "One request, one voice track.",
                "voice": "21m00Tcm4TlvDq8ikWAM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the spoken audio",
            "content": {
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "x-kino-price": {
                "description": "what this call cost, in dollars",
                "schema": {
                  "type": "string"
                }
              },
              "x-kino-characters": {
                "description": "the character count it was priced from",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "the parameters do not price — or, on a paid request, an image they name does not fetch as an image. `field` names the body field and `expected` what it takes. Nothing was charged, even if a payment was presented.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "announcement",
                        "aspect_ratio",
                        "audio",
                        "body",
                        "duration_s",
                        "image_url",
                        "image_urls",
                        "model",
                        "motion",
                        "platform",
                        "points",
                        "product_name",
                        "prompt",
                        "resolution",
                        "selling_points",
                        "style",
                        "text",
                        "tone",
                        "topic",
                        "voice"
                      ],
                      "description": "the body field at fault; `body` when the body itself is not JSON"
                    },
                    "expected": {
                      "type": "string",
                      "description": "what that field accepts, in words"
                    },
                    "did_you_mean": {
                      "type": "string",
                      "description": "the one closest valid value, when one is close. Never applied for you."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri",
                      "description": "the machine catalog: GET /v1/models"
                    },
                    "see_also": {
                      "type": "array",
                      "description": "a related house service, as plain data",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "url",
                          "what"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "what": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "the x402 v2 envelope, standard base64 of JSON. A v1 client ignores it and reads the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "x402Version",
                    "accepts"
                  ],
                  "properties": {
                    "x402Version": {
                      "type": "integer",
                      "const": 1
                    },
                    "error": {
                      "type": "string"
                    },
                    "quote": {
                      "type": "object",
                      "description": "the price in words. The same number as the envelope, from the same call to priceFor().",
                      "properties": {
                        "usd": {
                          "type": "string",
                          "examples": [
                            "$0.42"
                          ]
                        },
                        "atomic_usdc": {
                          "type": "string",
                          "description": "the amount that settles, in USDC base units (6 decimals)"
                        },
                        "asset": {
                          "type": "string",
                          "examples": [
                            "USDC on Base",
                            "USDC on Base or Solana"
                          ]
                        },
                        "formula": {
                          "type": "string",
                          "description": "the rate that reproduces the price"
                        }
                      }
                    },
                    "accepts": {
                      "type": "array",
                      "minItems": 1,
                      "description": "every rail this call can be paid on, best first. Each entry carries the SAME maxAmountRequired — a second rail is a second way to pay, not a second price.",
                      "items": {
                        "type": "object",
                        "required": [
                          "scheme",
                          "network",
                          "maxAmountRequired",
                          "resource",
                          "payTo",
                          "asset"
                        ],
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "const": "exact"
                          },
                          "network": {
                            "type": "string",
                            "enum": [
                              "base",
                              "solana"
                            ]
                          },
                          "maxAmountRequired": {
                            "type": "string",
                            "description": "the quote, in USDC base units. This is the amount that settles."
                          },
                          "resource": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "mimeType": {
                            "type": "string"
                          },
                          "payTo": {
                            "type": "string",
                            "description": "the receiving address on this entry's network"
                          },
                          "maxTimeoutSeconds": {
                            "type": "integer"
                          },
                          "asset": {
                            "type": "string",
                            "description": "the USDC contract or mint on this entry's network"
                          },
                          "extra": {
                            "type": "object",
                            "description": "on Base, the token's EIP-712 domain; on Solana, {feePayer} — the account the facilitator will pay the transaction fee from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "the request body is larger than the 16 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "payments cannot be verified right now, so nothing was produced and nothing was charged. Retry in a few minutes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "what went wrong, in prose"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-payment-info": {
          "protocols": [
            {
              "x402": {}
            }
          ],
          "price": {
            "mode": "dynamic",
            "currency": "USD",
            "min": "0.001",
            "max": "1.20"
          }
        },
        "x-billing-terms": {
          "billable_unit": {
            "unit": "one call",
            "price": {
              "currency": "USD",
              "min": "0.001",
              "max": "1.20",
              "min_atomic": "1000",
              "max_atomic": "1200000",
              "quote": "the unpaid 402 answering the body sent"
            },
            "metered": false,
            "settles_at": "delivery of the response body",
            "note": "One call. A single signed authorization buys exactly one call at the amount that call's own 402 quoted, and the whole quoted amount settles or nothing does — there is no partial, metered or per-second billing and no charge is ever split across a retry. kino402 prices are parametric, so the band published here is the floor and the ceiling this resource can quote; the unpaid 402 answering the body you actually sent is the authority on the number, and it is the number that settles."
          },
          "hold": {
            "held": false,
            "note": "None. Verification is a read at the facilitator (verifyPayment in worker/kino.js), so nothing is reserved, escrowed or held: the signed authorization moves no funds until it is submitted at settle, which runs in ctx.waitUntil after the response has already been sent. An authorization that never reaches settle is simply never submitted, and no balance of yours was ever encumbered while it was outstanding."
          },
          "idempotency": {
            "key": "sha256(signed authorization: network + payer + nonce on EVM, network + transaction on Solana)",
            "headers": [
              "PAYMENT-SIGNATURE",
              "X-PAYMENT"
            ],
            "idempotency_key_header": null,
            "replay": {
              "status": 402,
              "error": "payment_already_used"
            },
            "note": "There is no idempotency-key header. The key is the signed authorization itself, read out of the payment header — PAYMENT-SIGNATURE for x402 v2, X-PAYMENT for x402 v1, and PAYMENT-SIGNATURE is the one read when a request carries both: on Base the SHA-256 of the network, the payer address and the EIP-3009 nonce, on Solana of the network and the serialized transaction's decoded bytes (claimKeyOf in worker/kino.js). Re-encoding the same authorization — whitespace, key order, the other protocol version, a respelled base64 transaction — is therefore the same key, and a payment missing its network's authorization field is refused 402 `malformed_payment_header` before anything is claimed. The key is claimed single-use by claimPaymentOnce after the payment verifies and before any work is ordered. A second request carrying the same authorization, concurrently or an hour later, is answered 402 with invalidReason `payment_already_used` and the live terms re-offered: it submits no render, compiles no prompt, synthesises no audio and settles nothing. Sign a fresh authorization, with a fresh nonce, to buy another call."
          },
          "post_payment_error": {
            "settles": false,
            "before_settlement": "authorization released — the same header can be presented again",
            "after_settlement": "none — settlement is queued only once the product is in the response",
            "note": "No exit before settlement charges anything, and none of them keeps the single-use claim — an exit before the claim never took it, an exit after it hands it back — so the very same header can be presented again: a body that does not price, a payment the facilitator refuses, a facilitator that cannot be reached at all (503), an image URL that does not fetch as an image, an upstream queue that will not take the job, a brief that will not compile, a synthesis that returns no audio, a job row that cannot be written. After that point the answer depends on how the route delivers. The synchronous routes settle behind a response that already carries the product, so there is no window in which you have paid and have nothing. The asynchronous routes settle when the upstream ACCEPTS the render rather than when the file lands, so a render that fails afterwards has already been paid for: it is resubmitted once automatically on the same job row, and a second failure sets status `failed` with `refund_due` true."
          },
          "refund": {
            "path": "none",
            "dispute": "none",
            "automatic": false,
            "flagged_as": "none",
            "contact": "support@kino402.com",
            "note": "No automatic refund and no self-service one. There is no refund endpoint, no credit, no dispute endpoint and no reversal of a settled payment anywhere in this service. The mechanism is non-charge rather than refund: an authorization for work that was never accepted is never submitted, so no funds move at all. The single case where money moved and no product exists — an asynchronous render that failed twice — is reported as `refund_due` on the free GET /v1/jobs/{id} and refunded by hand against that job id, by mail to support@kino402.com. Anything else is that same address and a conversation, not a guaranteed remedy."
          },
          "acceptance_observer": {
            "observer": "the buyer",
            "observed_from": "the 200 response body, which is the product",
            "third_party_attestation": "none",
            "note": "The buyer, from the 200 this service returns. No third party attests, no oracle is consulted and nothing has to be signed back: on the asynchronous routes the 200 carries {job_id, status_url} and the free, unauthenticated GET /v1/jobs/{id} is where you watch the render reach `completed` with its video_url or `failed` with its reason, and on the synchronous routes the 200 body IS the product — the compiled prompt as JSON, or the mp3. kino402 keeps its own settlement ledger, but that is an operator's record for reconciliation and it is not offered to the buyer as evidence."
          },
          "silence_window": {
            "window": "none",
            "seconds": null,
            "accepted_by_silence": false,
            "note": "None. Nothing on this service becomes accepted by the passage of time: settlement is queued at delivery on the synchronous routes and at upstream acceptance on the asynchronous ones, and no timer anywhere converts a buyer's silence into acceptance, closes a complaint or finalises a charge that would otherwise be open. A job that failed after payment keeps reporting `refund_due` on every poll — that flag has no expiry, and not polling does not spend it."
          }
        }
      }
    }
  }
}
