{
  "openapi": "3.1.0",
  "info": {
    "title": "displayhome API",
    "version": "0.1.0",
    "description": "The displayhome services for real-estate listings: photo analysis, video shot generation, film assembly, photo editing. Private beta."
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/v1/video/teasers": {
      "post": {
        "operationId": "teaser",
        "summary": "From photos to teaser, in one call",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_ids": {
                    "minItems": 2,
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "description": "Identifiers of the uploaded photos."
                  },
                  "resolution": {
                    "default": "720p",
                    "type": "string",
                    "enum": [
                      "720p",
                      "1080p",
                      "2k",
                      "4k"
                    ],
                    "description": "Resolution of the shot: 2k = 1440p, 4k = 2160p."
                  },
                  "aspect_ratio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ],
                    "description": "The format: 16:9 for a website, 9:16 for social feeds."
                  },
                  "duration_seconds": {
                    "default": 6,
                    "description": "Requested duration; the duration kept is returned in the response.",
                    "type": "integer",
                    "minimum": 3,
                    "maximum": 6
                  },
                  "title": {
                    "default": "Teaser",
                    "type": "string",
                    "maxLength": 200,
                    "description": "The title shown at the opening."
                  },
                  "target_duration_seconds": {
                    "default": 30,
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 30
                      },
                      {
                        "type": "number",
                        "const": 38
                      }
                    ],
                    "description": "Target duration of the film, in seconds."
                  },
                  "max_clips": {
                    "default": 6,
                    "description": "Maximum number of clips in the teaser.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 8
                  },
                  "max_corrections": {
                    "default": 2,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2,
                    "description": "Maximum number of corrections per clip rejected at review."
                  },
                  "max_candidates": {
                    "default": 60,
                    "description": "Cap on the candidate pairs that are checked.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 300
                  }
                },
                "required": [
                  "image_ids"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    },
                    "video": {
                      "type": "object",
                      "required": [
                        "resolution",
                        "aspect_ratio",
                        "effective_duration_seconds"
                      ],
                      "properties": {
                        "resolution": {
                          "type": "string",
                          "enum": [
                            "720p",
                            "1080p",
                            "2k",
                            "4k"
                          ]
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "enum": [
                            "16:9",
                            "9:16"
                          ]
                        },
                        "effective_duration_seconds": {
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Finds the pairs of photos that link, generates each clip, checks it, corrects it if needed, then edits the teaser. The result follows every step; at the end, the assembled film is a media item."
      }
    },
    "/v1/image-link-analyses": {
      "post": {
        "operationId": "analyze_links",
        "summary": "Analyse the links between photos",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_ids": {
                    "minItems": 2,
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "description": "Identifiers of the uploaded photos."
                  },
                  "resume_from_job_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Resume a completed or partial analysis on the same photos: the steps that succeeded are reused."
                  },
                  "verify_within_spaces": {
                    "default": true,
                    "type": "boolean",
                    "description": "Also check the pairs within the same place."
                  },
                  "space_groups": {
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "minItems": 1,
                      "maxItems": 60,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "description": "Your places, if you corrected them: each group gathers the photos of one place, and every photo appears."
                  },
                  "concurrency": {
                    "default": 4,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4,
                    "description": "Comparisons run in parallel during the analysis."
                  },
                  "detection_draws": {
                    "default": 3,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3,
                    "description": "Number of independent readings of the whole set of photos. The more there are, the fewer links are missed."
                  },
                  "max_candidates": {
                    "default": 30,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1770,
                    "description": "Cap on the candidate pairs that are checked."
                  }
                },
                "required": [
                  "image_ids"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Compares all the photos of the listing and returns the pairs a camera move can link, with the direction of travel and the proposed move."
      }
    },
    "/v1/image-pair-evaluations": {
      "post": {
        "operationId": "evaluate_pair",
        "summary": "Check a pair",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "first_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The starting photo: the first frame of the shot."
                  },
                  "last_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The ending photo: the last frame of the shot."
                  },
                  "kind": {
                    "default": "transition",
                    "type": "string",
                    "enum": [
                      "visite",
                      "transition"
                    ],
                    "description": "visite: a move within one place; transition: the passage from one place to another."
                  },
                  "movement": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move to check, in plain language (optional)."
                  }
                },
                "required": [
                  "first_frame_image_id",
                  "last_frame_image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Says whether two photos you provide can be linked by a camera move, and which one."
      }
    },
    "/v1/video/transition-preparations": {
      "post": {
        "operationId": "prepare_transition",
        "summary": "Prepare a move",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "first_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The starting photo: the first frame of the shot."
                  },
                  "last_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The ending photo: the last frame of the shot."
                  },
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  },
                  "kind": {
                    "default": "transition",
                    "type": "string",
                    "enum": [
                      "visite",
                      "transition"
                    ],
                    "description": "visite: a move within one place; transition: the passage from one place to another."
                  }
                },
                "required": [
                  "first_frame_image_id",
                  "last_frame_image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Returns the move the service proposes between two photos, without generating: review it before you spend."
      }
    },
    "/v1/video/single-image-generations": {
      "post": {
        "operationId": "single_image",
        "summary": "Generate a shot from one photo",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "resolution": {
                    "default": "1080p",
                    "description": "Resolution of the shot: 2k = 1440p, 4k = 2160p.",
                    "type": "string",
                    "enum": [
                      "720p",
                      "1080p",
                      "2k",
                      "4k"
                    ]
                  },
                  "aspect_ratio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ],
                    "description": "The format: 16:9 for a website, 9:16 for social feeds."
                  },
                  "duration_seconds": {
                    "default": 5,
                    "type": "number",
                    "minimum": 2,
                    "maximum": 15,
                    "description": "Requested duration; the duration kept is returned in the response."
                  },
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  },
                  "path_hint": {
                    "description": "A hint about the path, for preparing the move (for example \"towards the terrace\").",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000
                  },
                  "amplitude": {
                    "default": "borne",
                    "type": "string",
                    "enum": [
                      "borne",
                      "libre",
                      "creatif"
                    ],
                    "description": "When the service prepares the move: borne stays within what the photo shows, libre and creatif go further."
                  }
                },
                "required": [
                  "image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    },
                    "video": {
                      "type": "object",
                      "required": [
                        "resolution",
                        "aspect_ratio",
                        "effective_duration_seconds"
                      ],
                      "properties": {
                        "resolution": {
                          "type": "string",
                          "enum": [
                            "720p",
                            "1080p",
                            "2k",
                            "4k"
                          ]
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "enum": [
                            "16:9",
                            "9:16"
                          ]
                        },
                        "effective_duration_seconds": {
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "A camera move within a single photo. Without an instruction, the service prepares the move itself."
      }
    },
    "/v1/video/transitions": {
      "post": {
        "operationId": "transition",
        "summary": "Generate a shot between two photos",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "first_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The starting photo: the first frame of the shot."
                  },
                  "last_frame_image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The ending photo: the last frame of the shot."
                  },
                  "resolution": {
                    "default": "1080p",
                    "description": "Resolution of the shot: 2k = 1440p, 4k = 2160p.",
                    "type": "string",
                    "enum": [
                      "720p",
                      "1080p",
                      "2k",
                      "4k"
                    ]
                  },
                  "aspect_ratio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ],
                    "description": "The format: 16:9 for a website, 9:16 for social feeds."
                  },
                  "duration_seconds": {
                    "default": 5,
                    "type": "number",
                    "minimum": 2,
                    "maximum": 15,
                    "description": "Requested duration; the duration kept is returned in the response."
                  },
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  },
                  "path_hint": {
                    "description": "A hint about the path, for preparing the move (for example \"towards the terrace\").",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000
                  }
                },
                "required": [
                  "first_frame_image_id",
                  "last_frame_image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    },
                    "video": {
                      "type": "object",
                      "required": [
                        "resolution",
                        "aspect_ratio",
                        "effective_duration_seconds"
                      ],
                      "properties": {
                        "resolution": {
                          "type": "string",
                          "enum": [
                            "720p",
                            "1080p",
                            "2k",
                            "4k"
                          ]
                        },
                        "aspect_ratio": {
                          "type": "string",
                          "enum": [
                            "16:9",
                            "9:16"
                          ]
                        },
                        "effective_duration_seconds": {
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "The passage from one photo to the other: the first and the last frame of the shot are yours."
      }
    },
    "/v1/video/film-plans": {
      "post": {
        "operationId": "plan_film",
        "summary": "Plan the film",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "analysis_job_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a completed or partial analysis job."
                  },
                  "target_duration_seconds": {
                    "default": 38,
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 30
                      },
                      {
                        "type": "number",
                        "const": 38
                      },
                      {
                        "type": "number",
                        "const": 90
                      }
                    ],
                    "description": "Target duration of the film, in seconds."
                  }
                },
                "required": [
                  "analysis_job_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "From a completed analysis, orders the confirmed links into a walkthrough."
      }
    },
    "/v1/video/reviews": {
      "post": {
        "operationId": "review_video",
        "summary": "Review a video",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "video_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of an uploaded or produced video."
                  },
                  "image_ids": {
                    "minItems": 1,
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "description": "Identifiers of the uploaded photos."
                  },
                  "instruction": {
                    "default": "Respecter les photographies du bien",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  },
                  "sample_frames": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "video_id",
                  "image_ids"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Compares a generated shot with its source photos and flags what is not faithful to them."
      }
    },
    "/v1/photo/enhancements": {
      "post": {
        "operationId": "enhancement",
        "summary": "Enhance a photo",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  },
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  }
                },
                "required": [
                  "image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Light, sharpness, verticals. An optional instruction refines the request."
      }
    },
    "/v1/photo/home-staging": {
      "post": {
        "operationId": "home_staging",
        "summary": "Furnish a room",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  },
                  "style": {
                    "default": "contemporary",
                    "type": "string",
                    "enum": [
                      "contemporary",
                      "scandinavian",
                      "mediterranean",
                      "classic"
                    ],
                    "description": "The furniture style."
                  }
                },
                "required": [
                  "image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Virtual home staging in the requested style."
      }
    },
    "/v1/photo/decluttering": {
      "post": {
        "operationId": "decluttering",
        "summary": "Empty a room",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  }
                },
                "required": [
                  "image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Removes movable furniture and objects."
      }
    },
    "/v1/photo/time-of-day": {
      "post": {
        "operationId": "time_of_day",
        "summary": "Change the time of day",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  },
                  "time": {
                    "type": "string",
                    "enum": [
                      "day",
                      "golden",
                      "twilight",
                      "night"
                    ],
                    "description": "The time of day."
                  }
                },
                "required": [
                  "image_id",
                  "time"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "The same place in daylight, at golden hour, at dusk or at night."
      }
    },
    "/v1/photo/seasons": {
      "post": {
        "operationId": "seasons",
        "summary": "Change the season",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  },
                  "season": {
                    "type": "string",
                    "enum": [
                      "spring",
                      "summer",
                      "autumn",
                      "winter"
                    ],
                    "description": "The season."
                  }
                },
                "required": [
                  "image_id",
                  "season"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "The same place in spring, summer, autumn or winter."
      }
    },
    "/v1/photo/custom-edits": {
      "post": {
        "operationId": "custom_edits",
        "summary": "Free edit",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "format": {
                    "default": "closest",
                    "type": "string",
                    "enum": [
                      "closest",
                      "1:1",
                      "3:2",
                      "2:3",
                      "4:3",
                      "3:4",
                      "16:9",
                      "9:16"
                    ],
                    "description": "The framing of the produced photo; closest keeps the ratio nearest to the original."
                  },
                  "quality": {
                    "default": "medium",
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "description": "Rendering quality level."
                  },
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8000,
                    "description": "The move or the edit you want, in plain language."
                  }
                },
                "required": [
                  "image_id",
                  "instruction"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Applies your instruction, written in plain language."
      }
    },
    "/v1/video/photo-animations": {
      "post": {
        "operationId": "photo_animation",
        "summary": "Animate a photo",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "image_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of a photo uploaded with POST /v1/media."
                  },
                  "aspect_ratio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ],
                    "description": "The format: 16:9 for a website, 9:16 for social feeds."
                  },
                  "duration_seconds": {
                    "default": 5,
                    "type": "number",
                    "minimum": 1,
                    "maximum": 20,
                    "description": "Requested duration; the duration kept is returned in the response."
                  },
                  "motion": {
                    "default": "push-in",
                    "type": "string",
                    "enum": [
                      "push-in",
                      "pull-out",
                      "static"
                    ],
                    "description": "The framing move."
                  }
                },
                "required": [
                  "image_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "A simple framing move (push in, pull out) with no AI generation. Instant, with no generation cost."
      }
    },
    "/v1/video/gifs": {
      "post": {
        "operationId": "gif",
        "summary": "Extract a GIF",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "video_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of an uploaded or produced video."
                  },
                  "start_seconds": {
                    "default": 0,
                    "type": "number",
                    "minimum": 0,
                    "description": "Start of the excerpt, in seconds."
                  },
                  "duration_seconds": {
                    "default": 4,
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 10,
                    "description": "Requested duration; the duration kept is returned in the response."
                  },
                  "width": {
                    "default": 600,
                    "type": "integer",
                    "minimum": 120,
                    "maximum": 1000,
                    "description": "Width of the GIF, in pixels."
                  }
                },
                "required": [
                  "video_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "A GIF taken from a video, for an email or a thumbnail."
      }
    },
    "/v1/video/assemblies": {
      "post": {
        "operationId": "assembly",
        "summary": "Assemble a film",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "clips": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "video_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "label": {
                          "default": "",
                          "type": "string",
                          "maxLength": 200
                        },
                        "reversed": {
                          "default": false,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "video_id"
                      ],
                      "additionalProperties": false
                    },
                    "description": "The shots, in film order: video_id, an optional label, reversed to play a shot backwards."
                  },
                  "title": {
                    "default": "",
                    "type": "string",
                    "maxLength": 500,
                    "description": "The title shown at the opening."
                  },
                  "aspect_ratio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ],
                    "description": "The format: 16:9 for a website, 9:16 for social feeds."
                  },
                  "preset": {
                    "default": "nu",
                    "type": "string",
                    "enum": [
                      "nu",
                      "generique",
                      "sobre",
                      "riche",
                      "magazine"
                    ],
                    "description": "The film preset."
                  },
                  "speed": {
                    "default": 1,
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 3,
                    "description": "Playback speed of the shots."
                  },
                  "music_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Identifier of an uploaded music track."
                  }
                },
                "required": [
                  "clips"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Traitement accepté",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "job_id",
                    "status",
                    "status_url"
                  ],
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string"
                    },
                    "status_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Paramètres invalides"
          },
          "401": {
            "description": "Clé API absente ou invalide"
          },
          "402": {
            "description": "Budget de réservation dépassé"
          },
          "409": {
            "description": "Conflit d’idempotence"
          },
          "422": {
            "description": "Paramètres incompatibles"
          },
          "503": {
            "description": "Exécution ou fournisseur indisponible"
          }
        },
        "description": "Puts the shots end to end in the given order, with a preset, a title and optional music."
      }
    },
    "/v1/media": {
      "post": {
        "operationId": "upload_media",
        "summary": "Upload a file",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "image/jpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/png": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/webp": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "video/mp4": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "video/webm": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "audio/mpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "audio/mp4": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "audio/wav": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "audio/ogg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "mime",
                    "bytes",
                    "sha256",
                    "metadata",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "mime": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "Fichier trop volumineux"
          },
          "422": {
            "description": "Média illisible"
          }
        },
        "description": "Sends a photo, a video or a music track as raw binary, with its Content-Type. The response gives the identifier, the fingerprint and the measured dimensions or duration."
      }
    },
    "/v1/media/{id}": {
      "get": {
        "operationId": "get_media",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "mime",
                    "bytes",
                    "sha256",
                    "metadata",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "mime": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable pour ce client"
          }
        },
        "summary": "Read a media item",
        "description": "The metadata of a media item in your workspace."
      }
    },
    "/v1/media/{id}/content": {
      "get": {
        "operationId": "download_media",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "header",
            "name": "Range",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fichier binaire"
          },
          "206": {
            "description": "Intervalle du fichier"
          },
          "404": {
            "description": "Ressource introuvable pour ce client"
          },
          "416": {
            "description": "Intervalle invalide"
          }
        },
        "summary": "Download a media item",
        "description": "The file itself. Partial reads (Range) are accepted, to stream a video."
      }
    },
    "/v1/jobs/{id}": {
      "get": {
        "operationId": "get_job",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "service",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "service": {
                      "type": "string",
                      "enum": [
                        "teaser",
                        "analyze-links",
                        "evaluate-pair",
                        "prepare-transition",
                        "single-image",
                        "transition",
                        "plan-film",
                        "review-video",
                        "enhancement",
                        "home-staging",
                        "decluttering",
                        "time-of-day",
                        "seasons",
                        "custom-edits",
                        "photo-animation",
                        "gif",
                        "assembly"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "running",
                        "completed",
                        "partial",
                        "failed",
                        "needs_attention"
                      ]
                    },
                    "result": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "object",
                          "required": [
                            "link_count",
                            "has_links",
                            "links",
                            "unpaired_image_ids"
                          ],
                          "properties": {
                            "link_count": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Nombre total de liaisons confirmées avant composition du film"
                            },
                            "has_links": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "null lorsque la recherche est incomplète sans liaison confirmée"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "link_id",
                                  "first_frame_image_id",
                                  "last_frame_image_id",
                                  "relationship",
                                  "movement"
                                ],
                                "properties": {
                                  "link_id": {
                                    "type": "string"
                                  },
                                  "first_frame_image_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "last_frame_image_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "relationship": {
                                    "type": "string"
                                  },
                                  "movement": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "unpaired_image_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "truncated_candidate_count": {
                              "type": "integer"
                            },
                            "pending_verification_count": {
                              "type": "integer"
                            },
                            "exhaustive": {
                              "type": "boolean"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "description": "Plan issu d’une génération individuelle ou d’une transition",
                          "required": [
                            "media",
                            "resolution",
                            "aspect_ratio",
                            "requested_duration_seconds",
                            "effective_duration_seconds"
                          ],
                          "properties": {
                            "media": {
                              "type": "object",
                              "required": [
                                "id",
                                "mime",
                                "bytes",
                                "sha256",
                                "metadata",
                                "url"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "mime": {
                                  "type": "string"
                                },
                                "bytes": {
                                  "type": "integer"
                                },
                                "sha256": {
                                  "type": "string"
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "url": {
                                  "type": "string"
                                }
                              }
                            },
                            "resolution": {
                              "type": "string",
                              "enum": [
                                "720p",
                                "1080p",
                                "2k",
                                "4k"
                              ]
                            },
                            "aspect_ratio": {
                              "type": "string",
                              "enum": [
                                "16:9",
                                "9:16"
                              ]
                            },
                            "requested_duration_seconds": {
                              "type": "number"
                            },
                            "effective_duration_seconds": {
                              "type": "number"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "description": "Teaser : avancement durable. `completed` avec `media` quand toutes les paires sont acceptées ; `partial` avec `failure_kind` et `reason` quand le parcours s’arrête. Les prises acceptées restent référencées.",
                          "required": [
                            "workflow",
                            "stage",
                            "pairs"
                          ],
                          "properties": {
                            "workflow": {
                              "const": "pairs-teaser-v2"
                            },
                            "stage": {
                              "type": "string",
                              "enum": [
                                "analyzing",
                                "planning",
                                "generating",
                                "reviewing",
                                "correcting",
                                "assembling",
                                "ready",
                                "blocked"
                              ]
                            },
                            "failure_kind": {
                              "type": "string",
                              "enum": [
                                "no_pairs",
                                "analysis_incomplete",
                                "visual_rejected",
                                "provider_failed",
                                "critique_unreadable",
                                "correction_unusable",
                                "pair_unpreparable"
                              ]
                            },
                            "reason": {
                              "type": "string"
                            },
                            "selection": {
                              "type": "object",
                              "properties": {
                                "clip_cap": {
                                  "type": "integer"
                                },
                                "planned_pairs": {
                                  "type": "integer"
                                },
                                "omitted_pairs": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                }
                              }
                            },
                            "pairs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "index",
                                  "from_image_id",
                                  "to_image_id",
                                  "reversed",
                                  "state",
                                  "attempts"
                                ],
                                "properties": {
                                  "index": {
                                    "type": "integer"
                                  },
                                  "from_image_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "to_image_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "first": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "last": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "reversed": {
                                    "type": "boolean"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "visite",
                                      "transition"
                                    ]
                                  },
                                  "label": {
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "type": "number"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "pending",
                                      "preparing",
                                      "generating",
                                      "reviewing",
                                      "correcting",
                                      "accepted",
                                      "blocked",
                                      "skipped"
                                    ]
                                  },
                                  "failure": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "no_pairs",
                                          "analysis_incomplete",
                                          "visual_rejected",
                                          "provider_failed",
                                          "critique_unreadable",
                                          "correction_unusable",
                                          "pair_unpreparable"
                                        ]
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "attempts": {
                                    "type": "array",
                                    "description": "Chaque génération : prompt, réponse du correcteur, contrôle technique, critique et verdict.",
                                    "items": {
                                      "type": "object"
                                    }
                                  }
                                }
                              }
                            },
                            "media": {
                              "type": "object",
                              "required": [
                                "id",
                                "mime",
                                "bytes",
                                "sha256",
                                "metadata",
                                "url"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "mime": {
                                  "type": "string"
                                },
                                "bytes": {
                                  "type": "integer"
                                },
                                "sha256": {
                                  "type": "string"
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "url": {
                                  "type": "string"
                                }
                              }
                            },
                            "usage": {
                              "type": "object",
                              "description": "Appels effectivement soumis (mesure), pas une facture.",
                              "properties": {
                                "analysis_calls": {
                                  "type": "integer"
                                },
                                "video_generations": {
                                  "type": "integer"
                                }
                              }
                            },
                            "timings": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "number"
                              },
                              "description": "Millisecondes mesurées dans le worker, par étape."
                            }
                          }
                        },
                        {
                          "type": "object",
                          "description": "Résultat spécifique au service, média produit ou rapport"
                        }
                      ]
                    },
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Ressource introuvable pour ce client"
          }
        },
        "summary": "Read a job",
        "description": "The status of the job and, once it is done, its result: the media produced or the service data."
      }
    },
    "/v1/jobs/{id}/resume": {
      "post": {
        "operationId": "resume_job",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Reprise des étapes connues"
          },
          "409": {
            "description": "État incompatible"
          },
          "503": {
            "description": "IA désactivée"
          }
        },
        "summary": "Resume a job",
        "description": "Restarts the tracking of a job marked needs_attention, without submitting twice."
      }
    },
    "/v1/capabilities": {
      "get": {
        "operationId": "get_capabilities",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ai_execution": {
                      "type": "boolean"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "video_generation": {
                      "type": "object",
                      "properties": {
                        "automatic_preparation": {
                          "type": "boolean"
                        },
                        "resolutions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "720p",
                              "1080p",
                              "2k",
                              "4k"
                            ]
                          }
                        },
                        "aspect_ratios": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "16:9",
                              "9:16"
                            ]
                          }
                        },
                        "durations_seconds": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Read the capabilities",
        "description": "The services active on your workspace, and the available resolutions, formats and durations."
      }
    },
    "/v1/budget": {
      "get": {
        "operationId": "get_budget",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "budget_usd": {
                      "type": "number"
                    },
                    "allocated_estimate_usd": {
                      "type": "number"
                    },
                    "basis": {
                      "const": "conservative_reservations"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Read the budget",
        "description": "The budget of your workspace and what running jobs have reserved."
      }
    },
    "/health/live": {
      "get": {
        "operationId": "health",
        "responses": {
          "200": {
            "description": "Résultat",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Service status",
        "description": "Answers 200 when the API is up. No authentication."
      }
    }
  },
  "servers": [
    {
      "url": "https://api.displayhome.ai"
    }
  ]
}