ToAPIs
    InícioToAPIs
    Geração de imagensGPT Image 2.6, Gemini, FLUX…Geração de vídeoSeedance, Veo, Kling, Sora…Chat e escritaGPT-5.6, Claude, DeepSeek…Voz e músicaLocuções, TTS, áudio
    NovidadeSeedance 2.5
    PreçosDocumentação da APIMCP
    BlogAlternativas
    EntrarComece grátis
    Todos os modelosPreçosDocumentação da APIMCPBlogAlternativas
    EntrarComece grátis

    Idioma

    1. Início
    2. Blog
    3. Tutorial
    4. HappyHorse 1.1 Video API: Lightweight Video Generation for High-Frequency Workloads
    Voltar a todos os artigos
    tutorial2026-11-266 min de leitura

    HappyHorse 1.1 Video API: Lightweight Video Generation for High-Frequency Workloads

    A production guide to the ToAPIs HappyHorse 1.1 Video Generation API. The documented ID is happyhorse-1.1 (dot, not happyhorse-1-1). Cover action modes, 720P/1080P, polling, and why the 2026-11-26 credit rate is not a cheapest-in-catalog claim.

    ToAPIs Engineering & Evaluation Team
    HappyHorseVideo APITutorialPythonImage-to-Video
    TL;DR - Principais conclusões
    • The documented public model name is happyhorse-1.1 (with a dot). The draft alias happyhorse-1-1 is not the documented ID. The official reference is HappyHorse 1.1 Video Generation. The live model-guide URL is /model-guide/happyhorse-1-1 (the dotted slug /model-guide/happyhorse-1.1 returned HTTP 404 on 2026-11-26).
    • Use action to choose text-to-video, image-to-video, reference-to-video, or video-edit. If action is omitted, a first-frame image is treated as image-to-video; otherwise the request is text-to-video. Duration is 3-15 seconds (default 5). Resolution is 720P or 1080P (default 1080P, capital P as documented).
    • image_urls is the first-frame field for image-to-video (only the first image is used). reference_images is required for reference-to-video (1-9 images) and optional for video-edit (up to 5). url is required for video-edit. audio_setting (auto or origin) applies only to video-edit. watermark defaults to true. No official loop: true field was published on the pages checked today.
    • Submit to POST https://toapis.com/v1/videos/generations with Authorization: Bearer <API_KEY>, poll GET /v1/videos/generations/{task_id}, and on completed read result.data[0].url. Videos are retained for 30 days.
    • The 2026-11-26 model-guide snapshot is 17.1428 credits/second — higher than viduq3 at 8.5714 credits/second. Do not call HappyHorse 1.1 the cheapest commercial video API, and do not reuse draft claims such as $0.010/s, 10-14 second turnaround, 100 parallel generations, or a 99.95% SLA.

    HappyHorse 1.1 Video API: Lightweight Video Generation for High-Frequency Workloads

    Target model: happyhorse-1.1
    Inference endpoint: https://toapis.com/v1/videos/generations
    Related: Vidu Q3 API developer guide · Vidu Q3 Drama Mode API · Wan 2.6 image-to-video pipeline · HappyHorse 1.1 Video Generation · happyhorse-1.1 model guide


    1. TL;DR & Performance Overview

    The schedule title calls HappyHorse 1.1 a lightweight generator for high-frequency workloads. On the pages checked on 2026-11-26, that is a positioning statement, not a measured SLA. The official HappyHorse 1.1 Video Generation reference (HTTP 200) documents a compact, action-based contract — text-to-video, image-to-video, reference-to-video, and video-edit — with a 3–15 second duration window. It does not document 10–14 second turnaround, 100 parallel generations, sub-12-second latency, a 99.95% SLA, or a loop: true field.

    The documented public model name is happyhorse-1.1 (dot). The draft alias happyhorse-1-1 is not the documented ID. The live model guide is /model-guide/happyhorse-1-1 (title uses happyhorse-1.1). /model-guide/happyhorse-1.1 returned HTTP 404; /model-guide/happyhorse was a soft 404 (“Model Guide Not Found”).

    What is documented:

    • action — text-to-video, image-to-video, reference-to-video, or video-edit. If action is omitted, a first-frame image means image-to-video; otherwise the request is text-to-video.
    • Duration 3–15 seconds, default 5. Resolution 720P or 1080P, default 1080P (capital P, as in the official examples).
    • Auth and poll — Authorization: Bearer <API_KEY>. POST /v1/videos/generations, then GET /v1/videos/generations/{task_id} (the HappyHorse page shows this path). Ordinary tasks may also be queried with GET /v1/tasks/{id}. Official examples use https://toapis.com (mainland China: https://toapis.cn). On completed, read result.data[0].url. Videos are retained for 30 days.
    • Prices — the 2026-11-26 model-guide snapshot is 17.1428 credits/second, which is higher than viduq3 at 8.5714 credits/second. Do not call this the cheapest commercial video API.

    2. Official ID, Actions, and Field Rules

    Send model: "happyhorse-1.1". The official page lists that value as required and as the default.

    actionWhat it doesRequired extrasNotes
    text-to-videoGenerate from a promptprompt requiredaspect_ratio applies (16:9, 9:16, 1:1, 4:3, 3:4; default 16:9). Compatible alias: size.
    image-to-videoAnimate a first frameimage_urls (only the first image is used)prompt is optional but recommended for motion and style. I2V uses the first-frame dimensions for aspect.
    reference-to-videoGenerate from 1–9 reference imagesprompt and reference_images (1–9, required)Do not rely on action auto-detect; set reference-to-video explicitly.
    video-editEdit an input videoprompt and url (required); reference_images optional, up to 5audio_setting is auto or origin (default auto) and applies only to this action.

    Compatible first-frame aliases for image-to-video: input_reference, images, image, or image_with_roles[{ role: "first_frame" }]. Image requirements on the official page: JPEG / JPG / PNG / BMP / WEBP, up to 10MB, at least 300px, aspect ratio between 1:2.5 and 2.5:1. Use public HTTP(S) URLs; upload local files with the Upload Image API or Upload Video API first. Do not pass base64 in image_urls.

    Other documented fields: seed, and watermark (default true). If you need a clean output, set watermark to false explicitly — the default is the opposite of several Vidu Q3 Multi-Model examples.

    Resolution strings on this page are 720P and 1080P. Official examples use the capital P. Do not silently rewrite them to 720p unless you have confirmed that the same page also accepts the lowercase form; the examples do not.

    The official field list checked today does not include loop. Do not document looping. fps is also not in that field list, so “720p 24fps as a unique selling point” is a draft claim, not an official differentiator. The documented default is 1080P.

    Four HappyHorse action tiles feed the official generation path and a poll orbit, then a single output frame

    Figure 1: Choose a documented action (text-to-video, image-to-video, reference-to-video, or video-edit), submit POST /v1/videos/generations, poll GET /v1/videos/generations/{task_id}, and read result.data[0].url on completed.


    3. Production Implementation: cURL & Python

    Official examples use https://toapis.com. Mainland China should use https://toapis.cn. Persist the returned task id before you poll.

    Step 1: cURL for text-to-video

    bash
    curl --request POST \
      --url https://toapis.com/v1/videos/generations \
      --header "Authorization: Bearer YOUR_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "model": "happyhorse-1.1",
        "action": "text-to-video",
        "prompt": "At night under an urban railway bridge, a graffiti teenager comes alive from a concrete wall and performs a high-energy English rap.",
        "duration": 10,
        "resolution": "1080P",
        "aspect_ratio": "16:9",
        "seed": 42,
        "watermark": true
      }'
    

    Step 2: cURL for image-to-video and reference-to-video

    bash
    curl --request POST \
      --url https://toapis.com/v1/videos/generations \
      --header "Authorization: Bearer YOUR_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "model": "happyhorse-1.1",
        "action": "image-to-video",
        "prompt": "Animate the character naturally while preserving the original visual style.",
        "image_urls": ["https://example.com/first-frame.png"],
        "duration": 5,
        "resolution": "1080P"
      }'
    
    bash
    curl --request POST \
      --url https://toapis.com/v1/videos/generations \
      --header "Authorization: Bearer YOUR_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "model": "happyhorse-1.1",
        "action": "reference-to-video",
        "prompt": "The character from image 1 runs through the scene in image 2, then picks up the prop from image 3. Keep a 3D cartoon style.",
        "reference_images": [
          "https://example.com/image-01.jpg",
          "https://example.com/image-02.png",
          "https://example.com/image-03.jpeg"
        ],
        "duration": 5,
        "resolution": "1080P",
        "aspect_ratio": "16:9",
        "watermark": false
      }'
    

    Video-edit uses "action": "video-edit", a required "url" for the input video, optional reference_images (up to 5), and "audio_setting": "origin" or "auto".

    Step 3: Python with a bounded poller

    python
    import os
    import time
    import random
    import requests
    
    BASE = "https://toapis.com"  # mainland China: https://toapis.cn
    HEADERS = {
        "Authorization": f"Bearer {os.environ['TOAPIS_API_KEY']}",
        "Content-Type": "application/json",
    }
    
    
    def submit_happyhorse(payload: dict) -> str:
        body = {"model": "happyhorse-1.1", **payload}
        response = requests.post(
            f"{BASE}/v1/videos/generations",
            headers=HEADERS,
            json=body,
            timeout=30,
        )
        response.raise_for_status()
        return response.json()["id"]
    
    
    def poll_video_task(task_id: str, max_wait: int = 600, interval: int = 10) -> dict:
        """Poll until completed or failed, honoring Retry-After on 429."""
        time.sleep(5)
        start = time.time()
        current = interval
        while time.time() - start < max_wait:
            response = requests.get(
                f"{BASE}/v1/videos/generations/{task_id}",
                headers=HEADERS,
                timeout=30,
            )
            if response.status_code == 429:
                retry_after = int(response.headers.get("Retry-After", current))
                time.sleep(retry_after + random.uniform(0, 1))
                current = min(current * 2, 60)
                continue
            response.raise_for_status()
            data = response.json()
            status = data.get("status")
            if status == "completed":
                return data
            if status == "failed":
                raise RuntimeError(data.get("error") or data)
            time.sleep(current + random.uniform(0, 1))
        raise TimeoutError(f"task {task_id} still running after {max_wait}s; query before resubmitting")
    
    
    if __name__ == "__main__":
        task_id = submit_happyhorse(
            {
                "action": "text-to-video",
                "prompt": "At night under an urban railway bridge, a graffiti teenager comes alive from a concrete wall and performs a high-energy English rap.",
                "duration": 10,
                "resolution": "1080P",
                "aspect_ratio": "16:9",
                "seed": 42,
                "watermark": True,
            }
        )
        result = poll_video_task(task_id)
        print(result["result"]["data"][0]["url"])
        print("expires_at", result.get("expires_at"))
    

    The official HappyHorse “Query Task” snippet uses GET /v1/videos/generations/{task_id}. Shared status semantics come from Get Video Task Status: initial wait 5 seconds, 10-second interval, 600-second ceiling, jitter, and Retry-After on 429. Prefer Task Webhooks in production and keep polling as a fallback.


    4. Error Handling & Status Matrix

    A successful HTTP submit is not a completed video. Always read task status.

    HTTP or task stateCommon categoryRecommended action
    400Unknown model (happyhorse-1-1), missing url on video-edit, missing reference_images on reference-to-video, duration outside 3–15, or an invented loop fieldSend happyhorse-1.1 and the documented fields for the chosen action
    400First-frame image that fails format, size, or aspect rulesUse JPEG/JPG/PNG/BMP/WEBP, ≤10MB, ≥300px, aspect 1:2.5–2.5:1
    401Missing or invalid API keyConfirm Authorization: Bearer <API_KEY>. Official HappyHorse pages do not document extra OAuth scopes
    429Rate or concurrency limitHonor Retry-After; back off with jitter. Do not assume a documented “100 parallel” cap
    5xx or client timeoutTemporary gateway or upstream issueQuery the existing task id before resubmitting
    status: queued or in_progressNot an errorContinue polling on GET /v1/videos/generations/{task_id}
    status: failedGeneration did not succeedRead error.message. Official docs do not state that failed tasks are always unbilled

    WaitTime=min⁡(MaxWait,BaseInterval×2attempt)+Uniform(0,1)\text{WaitTime} = \min(\text{MaxWait}, \text{BaseInterval} \times 2^{\text{attempt}}) + \text{Uniform}(0, 1)WaitTime=min(MaxWait,BaseInterval×2attempt)+Uniform(0,1)


    5. Pricing & FinOps ROI

    The official generation page does not publish a USD table for HappyHorse 1.1. The live model guide checked on 2026-11-26 lists a pricing reference of 17.1428 credits/second.

    At the same-day /pricing statement 1 credit ≈ $0.005 ($1 = 200 credits), that snapshot is about $0.0857 / second — roughly 85.7 credits (≈ $0.43) for a 5-second clip, or 171.4 credits (≈ $0.86) for a 10-second clip. Unauthenticated GET /api/v1/pricing returned 401; confirm with the pricing catalog and the actual cost fields on the completed task.

    This rate is not cheaper than the same-day viduq3 / viduq3-turbo snapshot of 8.5714 credits/second. Draft claims such as $0.010/s or “the most cost-effective commercial video API” were not on the official pages checked today. Choose HappyHorse 1.1 when you need its documented action set (especially reference-to-video and video-edit), not because a planning draft called it cheap.

    Treat every figure as a dated snapshot. Confirm the ID and the live quote with GET /v1/models?type=video and your account catalog before you forecast a high-frequency batch. Official pages checked today do not document a latency or concurrency SLA, so size your poller and queue from observed account limits, not from draft “100 parallel / sub-12s” numbers.


    6. Frequently Asked Questions

    See the FAQ block in frontmatter. Summary: send happyhorse-1.1, not happyhorse-1-1; set action explicitly for reference-to-video and video-edit; use capital-P resolution strings; do not document loop; poll GET /v1/videos/generations/{task_id} and read result.data[0].url; treat 17.1428 credits/second as a 2026-11-26 snapshot, not a cheapest-in-catalog claim.


    7. Action Checklist

    • Confirm happyhorse-1.1 appears for your key via GET /v1/models?type=video — do not send happyhorse-1-1.
    • Set action to a documented value. For reference-to-video send 1–9 reference_images; for video-edit send url (and optional audio_setting).
    • Use resolution 720P or 1080P (default 1080P) and duration 3–15. Set watermark explicitly if you do not want the default true.
    • Upload local media first; pass HTTPS URLs only. Do not send base64, and do not invent loop: true.
    • Submit to POST /v1/videos/generations on https://toapis.com (or https://toapis.cn in mainland China). Poll GET /v1/videos/generations/{task_id}; read result.data[0].url only after completed. Download before expires_at (30-day retention).
    • Quote prices only from the live account catalog. Do not forecast batches on $0.010/s or a “cheapest API” claim.
    • Next: Vidu Q3 developer guide for documented subjects / multi-reference consistency, or Vidu Q3 Drama Mode for narrative reference clips.

    Explore os modelos mencionados neste artigo

    UnknownVIDEO

    happyhorse-1.1

    Taxa atual: 17.1428 credits /second
    Guia do modeloTestar no consoleObter chave de API

    Artigos relacionados

    tutorial2026-11-26T10:00:00+08:008 min de leitura

    Creating Multi-Scene Short Dramas via Vidu Q3 Drama Mode API

    How to build multi-scene short dramas on ToAPIs with the documented viduq3-drama contract: reference video plus image, explicit audio, and 1080P. Draft screenplay arrays are not official fields. Includes cURL, a Python poller, and a 2026-11-26 pricing snapshot.

    TO
    ToAPIs Engineering & Evaluation Team
    #Vidu Q3
    tutorial2026-11-26T10:00:00+08:008 min de leitura

    Vidu Q3 API Developer Guide: Ultra-Dynamic Video Generation with Dual Character Consistency

    A production guide to ToAPIs Vidu Q3 IDs viduq3-pro, viduq3-turbo, and viduq3. Use documented subjects and @name references for multi-character consistency — not draft fields such as character_a. Includes cURL, a Python poller, and a 2026-11-26 pricing snapshot.

    TO
    ToAPIs Engineering & Evaluation Team
    #Vidu Q3
    tutorial2026-11-24T10:00:00+08:007 min de leitura

    Google Veo 3 & Veo 3.1 Fast API: Setup Guide for ComfyUI and Python Workflows

    A production setup guide for ToAPIs Veo 3.1 models in Python and ComfyUI: documented IDs veo3.1-fast and veo3.1-lite versus the official Vertex-connected family, 720p limits, polling, and the absence of a first-party ComfyUI node.

    TO
    ToAPIs Engineering & Evaluation Team
    #Veo 3.1
    ToAPIs
    InícioToAPIs
    Gateway empresarial de API de IA. Acesse GPT-5, Claude, Gemini e mais de 200 modelos por uma única API unificada.

    Modelos populares

    • Seedance 2.5 API
    • Seedance 2.0 API
    • Veo 3.1 Fast API
    • Kling 3.0 Turbo API
    Mostrar maisMostrar menos
    • GPT Image 2 API
    • Claude Opus 4.8 API
    • Nano Banana 2 API
    • Seedance 2 Mini API
    • Todos os modelos

    Categorias de API

    • API de imagem com IA
    • API de vídeo com IA
    • API de texto para vídeo
    • API de imagem para vídeo
    Mostrar maisMostrar menos
    • API de edição de imagens com IA
    • API de LLM e raciocínio
    • Todas as ferramentas de API →

    Alternativas

    Alternativas
    • Alternativa ao Kie.ai
    • Alternativa ao Fal.ai
    • Alternativa ao OpenRouter
    • Alternativa ao Replicate
    • Alternativa ao Wavespeed AI
    • Todas as comparações →

    Guias em destaque

    Guias em destaque
    • Preços do Seedance 2.0 e 2.5
    • Guia da API Seedance mais barata
    • Guia de integração do MiniMax H3
    • Chave de API gratuita do Seedance 2
    • Início rápido da API Seedance 2
    • Todos os artigos técnicos →

    Desenvolvedores e plataforma

    Desenvolvedores e plataforma
    • Documentação da API
    • MCP
    • Preços
    • Playground de modelos
    • LLMs.txt
    • Falar com o suporte
    • Diretório de guias de modelos
    Entidade operadora:
    鯨樞智能科技有限公司
    JINGSHU INTELLIGENT LIMITED
    Sede social:
    ROOM 5042, 5/F, YAU LEE CENTRE, NO.45, HOI YUEN ROAD, KWUN TONG, KOWLOON, HONG KONG
    PrivacidadeTermosUso aceitávelExclusão de dadosRetenção de dadosSubprocessadores e regiõesCobrança e reembolsosPolítica de CookiesMapa do siteSobre

    © 2026 ToAPIs. Todos os direitos reservados.