APIGet started
The 10xvid API
Make video ads from your own code: what the API does, its base address, how to authenticate, and the resources you can use.
What it does
The API makes the same videos as the app. One request with a link reads the site, writes the Format DNA and makes a video in each style you ask for. You can make more videos from a format later, make image ads, list the styles, and read your balance. Finished files come back as links you can pass straight to an ad account.
Base address
https://10xvid.com/api/v1
Every request and answer is JSON. Send Content-Type: application/json with a body.
Authentication
Send your API key with every request, as Authorization: Bearer tenx_.... Make keys on the API keys page of the app. See Authentication and keys.
Resources
| Resource | What you do with it | Reference |
|---|---|---|
| Formats | Make one from a link, read it, list them, delete one | Formats API |
| Videos | Make more videos from a format, read one, list them | Videos API |
| Image ads | Make image ads from a format, read them | Image ads API |
| Styles | List the hundred styles and Pure | Styles API |
| Account | Read your credits, balance, prices and limits | Account API |
How a request goes
POST /formatswith a link answers at once with the format,"status": "reading".- The site is read, then the Format DNA is written:
"status": "writing", then"ready". - The videos start by themselves, each
"status": "making", then"done"with its files, or"failed"with what it cost given back. - Ask for the format again with
GET /formats/{id}, or let a webhook tell your server as each step ends.