INNER CODE UNIT · Python

_endpoint_kind

SamurAIGPT/Seedance-2.5-API · seedance_api.py:83

    def _endpoint_kind(endpoint):
        if endpoint.endswith("video-edit") or "video-edit-" in endpoint:
            return "video-edit"
        if endpoint.endswith("video-extend") or "video-extend-" in endpoint:
            return "video-extend"
        if endpoint.endswith("image-to-video") or "image-to-video-" in endpoint:
            return "image-to-video"
        if endpoint.endswith("first-last-frame") or "first-last-frame-" in endpoint:
            return "first-last-frame"
        if endpoint.endswith("omni-reference") or "omni-reference-" in endpoint:
            return "omni-reference"
        return "text-to-video"

    def generate(
        self,
        endpoint,
        prompt,
        aspect_ratio="16:9",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…