ABcontents

n8n

Automate video creation with n8n

Make narrated videos from your documents inside any n8n workflow. No custom node — ABContents is a REST API, so n8n’s HTTP Request node calls it directly.

Get an API keyFull API reference →

  1. Get an API key

    Buy a prepaid pack on the API page — the key (abc_…) is the wallet, no account needed. Store it as an n8n credential and reuse it across workflows.

  2. Create the video from an HTTP Request node

    Add an HTTP Request node, POST to /api/v1/videos as multipart/form-data with your files and the video options. You get back an order id. Styles come from GET /api/v1/styles, voices from GET /api/v1/voices.

    POST https://abcontents.com/api/v1/videos
    Authorization: Bearer abc_your_key
    Content-Type: multipart/form-data
    
    files=@brochure.pdf
    kind=marketing
    lang=en
    voice=f
    style=kinetic-type
    durationS=60
    brief=Launch offer: 20% off in November
    clientRef={{ $execution.id }}
    
    -> { "id": "ord_...", "status": "queued" }
  3. Get the finished video — webhook (recommended)

    Register your n8n Webhook node URL once. ABContents then POSTs video.done and video.failed to it, signed with X-ABC-Signature (HMAC-SHA256). Recompute the signature in a Function node and reject anything older than ~5 minutes.

    POST https://abcontents.com/api/v1/webhook
    Authorization: Bearer abc_your_key
    { "url": "https://your-n8n.example.com/webhook/abc" }
    
    # then every video.done / video.failed arrives as:
    # POST {id, type, created, data}  header: X-ABC-Signature: t=<unix>,v1=<hmac-sha256>
  4. Or poll for the status

    If you prefer not to expose a webhook, loop a GET on the order until status is done; downloadUrl then has the mp4. Add a Wait node between checks.

    GET https://abcontents.com/api/v1/videos/ord_...
    Authorization: Bearer abc_your_key
    
    -> { "status": "done", "downloadUrl": "https://.../video.mp4" }
  5. Safe retries with clientRef

    Send clientRef (for example the n8n execution id) on create. Repeating the same clientRef within 24 hours returns the existing order instead of creating — and charging for — another, so a retried run never bills twice.

  6. For AI-agent workflows (MCP)

    n8n AI Agent nodes can use the MCP server at POST /api/mcp instead of raw HTTP: list_styles, list_voices, get_quote, create_video, get_video, get_balance. The key goes in the Authorization header; files as base64.