ABcontents

Acesso à API

Compre um pack de vídeos e receba um código. Use no formulário ("Tenho um pack") ou do seu app com a API. O código é o saldo: sem conta.

Packs de vídeos

5 videos

US$12 · US$2.40 each · economize 20%

10 videos

US$21 · US$2.10 each · economize 30%

A one-minute 2D video is one video; a 3D one or one over a minute uses more, rounded up. The key holds the balance — no account.

Referência

GET /api/v1/styles
Lista de estilos e seus ids.
GET /api/v1/voices?language=<en|es|pt|fr>
Narrators for a language, each with a sample mp3. No key needed.
GET /api/v1/quote?style=<id>&duration=<s>
Videos, tokens, price and estimated wait (current queue included). No key needed.
POST /api/v1/videos
Creates a video and debits the tokens. Multipart: logo (optional), files (up to 9: PDF, DOCX, XLSX, PPTX, ODT/ODS/ODP, CSV, TXT, MD, PNG, JPG, WebP, GIF, HEIC), kind, lang, voice (characters f, f2…f10 and m, m2…m9, plus accent ids such as far/mar, fuk/muk, fpt/mpt, fqc/mqc; GET /api/v1/voices (or list_voices on the MCP) returns all with samples), music (none by default, auto, own + musicFile, ambient, chip, cine, funk, lofi, lux, pop, quirky, synth, tension), style, durationS (30–300), brief, brandName, brandSay (how the brand is pronounced, optional), email (optional: we mail the order link and the finished video), format (9:16 default, 4:5, 1:1, 16:9), siteUrl (optional: a public website to make the video from) and siteLogo (auto = use the best logo found on it). At least one file or a brief is required.
GET /api/v1/videos/<id>
Status: status, stage, progress, etaSeconds, videosAhead e downloadUrl quando estiver pronto.
GET /api/v1/balance
Videos and tokens left on the key.
POST /api/mcp
Servidor MCP (Streamable HTTP) para agentes de IA: list_styles, list_voices, list_music, get_quote, create_video, get_video, get_balance. A chave vai no cabeçalho Authorization; os arquivos em base64.
curl -X POST https://abcontents.com/api/v1/videos \
  -H "Authorization: Bearer $ABC_KEY" \
  -F logo=@logo.png \
  -F files=@brochure.pdf -F files=@photo.jpg \
  -F kind=marketing -F lang=en -F voice=f \
  -F style=kinetic-type -F durationS=60 \
  -F brief="Launch offer: 20% off in November"

Erros: 401 invalid_key, 402 insufficient_balance (com balance e needed), 400 com o campo que falhou, 429 rate_limited.