MindVideo API
Models / Video generation / happyhorse-1-0

Happyhorse 1.0

HappyHorse 1.0 supports text input, image input, and video editing, making it suitable for multi-mode video creation.

Text to videoImage to videoVideo editing
1

Calling the API

Submit a task to MindVideo with your platform model slug. The response includes a request ID, task ID, normalized status, and estimated cost.

For production retries, send a unique Idempotency-Key per business request. Reusing the same key with the same payload returns the original task without charging again; reusing it with different input returns 409.

Submit a request

curl -X POST https://api.mindvideo.ai/api/v1/tasks \
  -H "Authorization: Bearer mv_live_xxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: task_$(date +%s)" \
  -d '{
  "model": "happyhorse-1-0",
  "input": {
    "prompt": "一个小女孩走在路上,电影感画面",
    "size": "16:9",
    "resolution": "1080P",
    "duration": 5
  }
}'
2

Authentication

Every server-side request must include an API key in the Authorization header. Keys can be created, disabled, and deleted from the dashboard.

Keep API keys server-sideDo not expose production API keys in browser code. Route user requests through your own backend before calling MindVideo.
3

Queue and polling

The platform maps runtime states into queued, processing, succeeded, failed, or cancelled so clients do not depend on model-specific fields.

Submit a request

Create an async generation task and poll the task endpoint for terminal status updates.

Fetch status

curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model \
  -H "Authorization: Bearer mv_live_xxx"

Fetch task events

curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model/events \
  -H "Authorization: Bearer mv_live_xxx"

Read the result

{
  "request_id": "req_demo_model",
  "task_id": "task_demo_model",
  "status": "succeeded",
  "cost_estimate": 0.25875,
  "cost_actual": 0.25875,
  "output": {
    "videos": [
      {
        "url": "https://example.com/output/demo.mp4"
      }
    ]
  }
}
4

Files

Inputs can reference hosted files or compact data URIs depending on model constraints. Production apps should prefer stable hosted URLs.

Data URI

Useful for small test assets and local playground experiments.

Hosted URL

Recommended for production workloads, retries, and larger image or video inputs.

5

Schema

Input

{
  "type": "object",
  "required": [],
  "properties": {
    "seed": {
      "type": "integer",
      "title": "Seed",
      "maximum": 2147483647,
      "minimum": 0
    },
    "size": {
      "enum": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4"
      ],
      "type": "string",
      "title": "Aspect ratio",
      "default": "16:9"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "maxLength": 2500,
      "minLength": 1,
      "description": "Video content description.",
      "x-playground": {
        "rows": 6,
        "widget": "textarea"
      }
    },
    "duration": {
      "type": "integer",
      "title": "Duration",
      "default": 5,
      "maximum": 15,
      "minimum": 3
    },
    "video_url": {
      "type": "string",
      "title": "Source video",
      "description": "Source video URL for edit mode. Can be used with image_urls as style references.",
      "x-playground": {
        "accept": "video/*",
        "widget": "file-upload",
        "advanced": true,
        "uploadKind": "video"
      }
    },
    "watermark": {
      "type": "boolean",
      "title": "Watermark",
      "default": false
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Reference images",
      "maxItems": 9,
      "description": "Reference image URLs or data URI images. In edit mode with video_url, at most 5 images are allowed.",
      "x-playground": {
        "accept": "image/*",
        "widget": "file-upload",
        "advanced": true,
        "multiple": true,
        "uploadKind": "image"
      }
    },
    "resolution": {
      "enum": [
        "720P",
        "1080P"
      ],
      "type": "string",
      "title": "Resolution",
      "default": "1080P"
    },
    "audio_setting": {
      "enum": [
        "auto",
        "origin"
      ],
      "type": "string",
      "title": "Audio setting",
      "default": "auto",
      "description": "Audio setting for edit mode only.",
      "x-playground": {
        "advanced": true
      }
    },
    "first_frame_image": {
      "type": "string",
      "title": "First frame image",
      "description": "First-frame image URL or data URI for image-to-video. Cannot be used with image_urls or video_url.",
      "x-playground": {
        "accept": "image/*",
        "widget": "file-upload",
        "advanced": true,
        "uploadKind": "image"
      }
    }
  },
  "additionalProperties": false
}

Output example

{
  "request_id": "req_demo_model",
  "task_id": "task_demo_model",
  "status": "succeeded",
  "cost_estimate": 0.25875,
  "cost_actual": 0.25875,
  "output": {
    "videos": [
      {
        "url": "https://example.com/output/demo.mp4"
      }
    ]
  }
}