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:vak_ and carry one or more scopes:
Run a batch
1
Upload a master
Send the image as base64. The response includes its Uploading the same file again returns the same master with
master_id and the profile Adapt read from it."reused": true.2
Estimate
Pass a The response includes
pack_id or a list of placement_ids, or both.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
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
?placement_id=instagram_story to download one placement only.Endpoints
Errors
Errors return a JSON body with anerror 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 receivebatch.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).