Skip to content

Create Custom Template Job

FreshPOST
POST https://api.creatify.ai/api/custom_template_jobs/

Create a video using a custom template. Provide the template ID and the parameter values to populate the template.

Credit Cost

5 credits per 30 seconds of video

Request Body

NameTypeRequiredDescription
template_idstringYesThe custom template ID to use
parametersobjectYesKey-value pairs matching the template's parameter schema
aspect_ratiostringNoOutput aspect ratio

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/custom_template_jobs/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "template_id": "template-001",
    "parameters": {
      "headline": "Introducing Our Latest Product",
      "product_image": "https://example.com/product.jpg",
      "cta_text": "Shop Now"
    },
    "aspect_ratio": "16:9"
  }'

Response

json
{
  "id": "job-001",
  "template_id": "template-001",
  "status": "pending",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Job created successfully
400Bad request -- missing required template parameters
401Unauthorized -- invalid API credentials
402Insufficient credits
404Template not found
429Rate limit exceeded
500Internal server error

TIP

Check the template's parameters with GET /api/custom_templates/{id}/ before creating a job to ensure you provide all required values.