Skip to main content
The Adapt API runs the same batches as the web app, with the same checks, stored layouts and spending limit. Use it to run Adapt from a DAM, a campaign tool or your own pipeline.

Prerequisites

  • An Adapt API key. A workspace admin creates one on the Connections page under API keys, or with POST /api/adapt/keys.
  • Base URL: https://adapts.tryvinci.com

Authentication

Send your key as a bearer token on every request:
Keys start with vak_ and carry one or more scopes:

Run a batch

1

Upload a master

Send the image as base64. The response includes its master_id and the profile Adapt read from it.
Uploading the same file again returns the same master with "reused": true.
2

Estimate

Pass a pack_id or a list of placement_ids, or both.
The response includes est_usd, est_seconds, the layouts it will make (ratios), the number of outputs, and how much of your monthly limit is left (remaining_micro_usd).
3

Start the batch

The response returns batch_id. Optional fields: placement_ids and rules, for example {"lock_price": false}.
4

Poll for status

per_master[].state moves from queued to leased to done (or failed). Each item in outputs has its placement_id, size, review_state (passed, needs_review or approved) and its checks, each with id, passed and reason.
5

Download the export

Add ?placement_id=instagram_story to download one placement only.

Endpoints

Errors

Errors return a JSON body with an error code, for example {"error": "body_base64_required"}. A batch that would go past your monthly spending limit is refused before anything is spent.

Webhooks

Instead of polling, you can register a webhook URL to receive batch.completed, output.needs_review and output.approved events, signed with your workspace secret (available on enterprise only).

Advanced

  • Bring your own model keys: run layouts on your own image-model account and billing (available on enterprise only).
  • Private storage: write outputs straight to your own bucket (available on enterprise only).
  • Higher limits: more concurrent layouts and larger batches for catalogue-scale runs (available on enterprise only).