APIGet started

Quickstart

Make your first video through the API: create a key, check what pays for it, send a link, and get back the finished video with its files.

Your first video through the API

This guide takes you from no key to a finished video. You need a 10xvid account.

1. Create an API key

Open the API keys page in the app and press Create key. Give it a name, and leave it unrestricted for now. The key is shown once: copy it and keep it on your server, for example in a .env file.

TENX_API_KEY=tenx_your_key_here

2. Make sure something pays for it

An API call is paid from your plan's credits first. With no plan, or with its credits spent, it is paid from the top up balance: open the API side of Subscription and press Add funds. See API pricing.

Make a format from a website or an App Store page. Ask for styles by their ids from the styles, or for none to get the site's own look.

curl https://10xvid.com/api/v1/formats \
  -H "Authorization: Bearer $TENX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"link": "https://apps.apple.com/app/id1234567890", "styles": ["whiteboard"]}'

The answer comes at once, with the format's id and "status": "reading".

4. Get the video

The site is read, the Format DNA is written and the video is made by itself. That takes a while. Ask for the format now and then until its videos are done, or add a webhook so your server is told.

curl https://10xvid.com/api/v1/formats/FORMAT_ID \
  -H "Authorization: Bearer $TENX_API_KEY"

Each finished video has its files, one for each shape, with a url that works on its own for seven days.

{
  "id": "MV40XXRN514AA9",
  "object": "video",
  "style": "whiteboard",
  "status": "done",
  "files": [
    {
      "video_id": "MV40XXRN514AA9-V1",
      "aspect": "9:16",
      "url": "https://10xvid.com/files/brands/.../final.mp4?dl=...",
      "duration": 15.04
    }
  ]
}

Next steps