Skip to main content
GET
/
api
/
v1
/
client
/
job
/
bytedance-templates
Query ByteDance AI effect template list
curl --request GET \
  --url https://api.crun.ai/api/v1/client/job/bytedance-templates \
  --header 'x-api-key: <api-key>'
{
  "code": 200,
  "message": "success",
  "data": {
    "total": 280,
    "templates": [
      {
        "MediaId": "7642552612302307355",
        "Title": "战斗游戏",
        "Cover": "https://muse.console.volcengine.com/api/storage/objects/media/7642552364255297590_transcode_image_jpeg_480p/example.jpeg",
        "Duration": 10123,
        "PreviewVideo": "https://muse.console.volcengine.com/api/storage/objects/media/7642552612302307355_transcode_video_mp4_480p_h264.mp4",
        "Tags": [
          "🔥Seedance2.0模型"
        ],
        "ServiceId": "217677058",
        "TemplateId": "104909826",
        "TemplateType": "BEGIN_END_FRAME",
        "InputRequirement": "SINGLE_PERSON",
        "InputNum": 1,
        "ReleaseOnlineTime": 1779421051,
        "ConsumeItems": [
          {
            "Resolution": "480p",
            "Credit": 166.5
          },
          {
            "Resolution": "720p",
            "Credit": 355.2
          }
        ],
        "Title_en": "Battle Game",
        "Tags_en": [
          "🔥Seedance2.0 Model"
        ],
        "CoverAspectRatio": "9:16",
        "SupportAspectRatio": "9:16,1:1,16:9,4:3,3:4"
      }
    ]
  }
}

Overview

Use this endpoint to query the available ByteDance AI effect templates exposed by Crun. This endpoint is designed for developers who want to integrate all ByteDance templates with a single API connection. It returns template metadata, cover assets, preview videos, input image requirements, supported aspect ratios, supported resolutions, and Crun-normalized credit costs.
Developers can use this endpoint as the source of truth for ByteDance template IDs and per-template capabilities, then pass the selected TemplateId directly into bytedance/template for one-click integration of all supported templates.

Use Cases

  1. Build a ByteDance template marketplace or template picker UI
  2. Synchronize the latest template list on a scheduled basis
  3. Query a single template by passing the optional template_id parameter
  4. Drive dynamic form rendering based on InputNum, InputRequirement, TemplateType, and ConsumeItems
You can also open the official ByteDance template gallery, choose a template, and copy its template ID:

ByteDance Template Video

Submit a ByteDance template video generation task with the selected template and image inputs.

Get Task Info

Query generation status and retrieve final results after task submission.

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

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Query Parameters

page
integer
default:1

Page number. Ignored when template_id is provided.

Required range: x >= 1
page_size
integer
default:20

Number of templates per page. Maximum value is 50. Ignored when template_id is provided.

Required range: x <= 50
template_id
string
default:""

Optional template ID. When provided, the API returns only the matching template.

Response

Request successful

code
enum<integer>

Response status code

  • 200: Success - Request has been processed successfully
  • 401: Unauthorized - Authentication credentials are missing or invalid
  • 402: Insufficient Credits - Account does not have enough credits to perform the operation
  • 404: Not Found - The requested resource or endpoint does not exist
  • 422: Validation Error - The request parameters failed validation checks
  • 429: Rate Limited - Request limit has been exceeded for this resource
  • 455: Service Unavailable - System is currently undergoing maintenance
  • 500: Server Error - An unexpected error occurred while processing the request
  • 501: Generation Failed - Content generation task failed
  • 505: Feature Disabled - The requested feature is currently disabled
Available options:
200,
401,
402,
404,
422,
429,
455,
500,
501,
505
message
string

Response message, error description when failed

Example:

"success"

data
object