Skip to main content
POST
/
api
/
v1
/
client
/
job
/
CreateTask
Edit video using HappyHorse 1.0 video edit
curl --request POST \
  --url https://api.crun.ai/api/v1/client/job/CreateTask \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "happyhorse-1-0-video-edit",
  "callback_url": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "Transform the scene into a snowy mountain trail while preserving the subject motion.",
    "video_url": "https://example.com/input-video.mp4",
    "img_urls": [
      "https://example.com/reference-style.jpg"
    ],
    "resolution": "720P",
    "region": "global",
    "audio_setting": "auto"
  }
}
'
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "task_12345678"
  }
}

Query Task Status

After submitting a task, use the unified query endpoint to check progress and retrieve results:

Get Task Info

Learn how to query task status and retrieve generation results
For production use, we recommend using the callback_url parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.

Models Overview

Explore all available models

Common API

Check credits and account usage

Authorizations

x-api-key
string
header
required

All APIs require authentication via API Key.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header:

x-api-key: YOUR_API_KEY

Body

application/json
model
enum<string>
required

The model name to use for generation. Required field.

  • Must be happyhorse-1-0-video-edit for this endpoint
Available options:
happyhorse-1-0-video-edit
input
object
required

Input parameters for the HappyHorse 1.0 video editing task.

callback_url
string<uri>

Optional. Callback URL for receiving task completion notifications.

Example:

"https://your-domain.com/api/callback"

Response

Request successful

code
enum<integer>

Response status code

Available options:
200,
401,
402,
404,
422,
429,
455,
500,
501,
505
message
string

Response message, error description when failed

Example:

"success"

data
object