{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clipugc-com/json-schema/clipugc-com-character-schema.json",
  "title": "Character",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clipugc-com-openapi.yml#/components/schemas/Character",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "full_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "display_name": {
      "type": "string",
      "description": "The name to show: `full_name`, or \"AI Influencer #id\" when it has none."
    },
    "age": {
      "type": [
        "integer",
        "null"
      ]
    },
    "gender": {
      "type": [
        "string",
        "null"
      ]
    },
    "nationality": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": [
        "string",
        "null"
      ]
    },
    "vibe": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "pending, processing, completed or failed."
    },
    "dna": {
      "type": [
        "object",
        "null"
      ],
      "description": "The structured appearance that keeps the face the same. Null until the first look is designed.",
      "additionalProperties": {}
    },
    "visibility": {
      "type": "object",
      "properties": {
        "is_public": {
          "type": "boolean",
          "description": "Shared in the public cast."
        },
        "is_featured": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "is_active": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "is_public",
        "is_featured",
        "is_active"
      ]
    },
    "owner": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "is_own": {
          "type": "boolean",
          "description": "True when the character is yours."
        }
      },
      "required": [
        "user_id",
        "is_own"
      ]
    },
    "reference_image_count": {
      "type": "integer"
    },
    "picture_count": {
      "type": "integer",
      "description": "Completed looks."
    },
    "video_count": {
      "type": "integer",
      "description": "Clips you can see. On a public character that counts every completed clip."
    },
    "is_locked": {
      "type": "boolean",
      "description": "A public character your plan does not unlock. Its playable clip URLs are withheld."
    },
    "cover_image": {
      "type": [
        "object",
        "null"
      ],
      "description": "The cover look as a small thumbnail.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "thumbnail_url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "thumbnail_url"
      ]
    },
    "preview_clip": {
      "type": [
        "object",
        "null"
      ],
      "description": "A clip to preview the character with: your newest, else the owner's. `clip_url` is null when locked.",
      "properties": {
        "id": {
          "type": "string"
        },
        "clip_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "preview_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "clip_thumbnail_url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "clip_url",
        "preview_url",
        "clip_thumbnail_url"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "reference_images": {
      "type": "array",
      "description": "Only when creating: the first look, still pending.",
      "items": {
        "$ref": "#/$defs/Look"
      }
    },
    "character_video": {
      "description": "Only when creating with `make_video`: the queued clip.",
      "anyOf": [
        {
          "$ref": "#/$defs/Clip"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "full_name",
    "display_name",
    "age",
    "gender",
    "nationality",
    "location",
    "vibe",
    "status",
    "dna",
    "visibility",
    "owner",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "Clip": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "ai_character_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "character_reference_image_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "is_owned": {
          "type": "boolean",
          "description": "True when you created this clip. Only your own clips can be retried or deleted."
        },
        "mode": {
          "type": [
            "string",
            "null"
          ],
          "description": "image_to_video, motion_control or scene_replace."
        },
        "engine": {
          "type": [
            "string",
            "null"
          ],
          "description": "Motion engine: kling or wan. Null on image to video clips."
        },
        "resolution": {
          "type": [
            "string",
            "null"
          ],
          "description": "Output tier on wan clips: 480p, 580p or 720p."
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "pending, processing, completed or failed."
        },
        "prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "duration": {
          "type": [
            "string",
            "null"
          ],
          "description": "Length in seconds. Motion clips follow the driver video."
        },
        "aspect_ratio": {
          "type": [
            "string",
            "null"
          ]
        },
        "merged_video_id": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Your newest finished video made from this clip, if any. Follow it at `GET /merged-videos/{id}`."
        },
        "ai_character": {
          "type": [
            "object",
            "null"
          ],
          "description": "The character's id and display name.",
          "properties": {
            "id": {
              "type": "integer"
            },
            "display_name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "display_name"
          ]
        },
        "media": {
          "type": "object",
          "properties": {
            "clip_url": {
              "type": [
                "string",
                "null"
              ],
              "description": "The full-quality MP4, for downloading. Signed and expires."
            },
            "preview_url": {
              "type": [
                "string",
                "null"
              ],
              "description": "A small MP4 for playback. Signed and expires."
            },
            "clip_thumbnail_url": {
              "type": [
                "string",
                "null"
              ],
              "description": "A still frame of the clip."
            },
            "has_clip": {
              "type": "boolean"
            }
          },
          "required": [
            "clip_url",
            "preview_url",
            "clip_thumbnail_url",
            "has_clip"
          ]
        },
        "is_ready_for_use": {
          "type": "boolean",
          "description": "Completed and has a video, so it can become a finished video."
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "ai_character_id",
        "character_reference_image_id",
        "is_owned",
        "mode",
        "engine",
        "resolution",
        "status",
        "prompt",
        "duration",
        "aspect_ratio",
        "merged_video_id",
        "media",
        "is_ready_for_use",
        "created_at",
        "updated_at"
      ],
      "title": "Clip"
    },
    "Look": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "ai_character_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "is_owned": {
          "type": "boolean",
          "description": "True when you created this look. Only your own looks can be retried or deleted."
        },
        "shot_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "frontal, three_quarter, profile or back."
        },
        "angle_degrees": {
          "type": [
            "integer",
            "null"
          ]
        },
        "prompt_template": {
          "type": [
            "string",
            "null"
          ]
        },
        "scene_prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "aspect_ratio": {
          "type": [
            "string",
            "null"
          ]
        },
        "resolution": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "pending, processing, completed or failed."
        },
        "media": {
          "type": "object",
          "properties": {
            "image_url": {
              "type": [
                "string",
                "null"
              ],
              "description": "The full-resolution PNG. Signed and expires."
            },
            "thumbnail_url": {
              "type": [
                "string",
                "null"
              ],
              "description": "A small JPEG for lists and previews. Signed and expires."
            },
            "has_image": {
              "type": "boolean"
            },
            "width": {
              "type": [
                "integer",
                "null"
              ]
            },
            "height": {
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "required": [
            "image_url",
            "thumbnail_url",
            "has_image",
            "width",
            "height"
          ]
        },
        "is_ready_for_use": {
          "type": "boolean",
          "description": "Completed and has a picture, so it can be animated."
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "ai_character_id",
        "is_owned",
        "shot_type",
        "angle_degrees",
        "prompt_template",
        "scene_prompt",
        "aspect_ratio",
        "resolution",
        "status",
        "media",
        "is_ready_for_use",
        "created_at",
        "updated_at"
      ],
      "title": "Look"
    }
  }
}