Skip to content

Avatars, live call and AI media Coming soon

Coming soon: avatars, live call and AI media – built, still behind switches.

As Markdown (for AI)OpenAPI

Contents and all reference pages

Coming soon: this feature is not available yet. Here is how it will work.

Three studio areas of the API are built but not switched on yet – they are coming soon: your own avatars, AI assistants for phone and website (live call) and AI media (images, short clips, print photos). Each area has its own switch. While it is off, the endpoints answer 404.

AI media are billed in tokens and only start with an explicit price confirmation. This page describes fields, flows and limits as they run once switched on.

State and switches

Avatars and live call need a customer account behind the API account (otherwise 403 customer_account_required). You tick avatars:write, live:read and live:write one by one when creating the key – they are never in the default set.

AreaEndpointsScopeState
Avatars/avatars…avatars:writecoming soon – switch “API: voice clone/avatar”
Live call/live/agents…, /live/connectionslive:read, live:writecoming soon – switch “live call via the API”
AI media/media, /media/estimate, /media/{id}videos:write, videos:readcoming soon – switch “AI media”; costs tokens

Your own avatars: /avatars

Same flow as the voice clone, but with video: create with name, person_name and optionally language – the answer contains consent_url once (7 days). The person consents themselves and records a sentence with a random code. Then you upload material, have it counted and send it for review.

EndpointPurpose
GET /avatarslist
POST /avatarscreate; answer with consent_url
GET /avatars/{id}state
DELETE /avatars/{id}withdraw; all files are deleted
POST /avatars/{id}/uploadscontent_type video/mp4, video/quicktime or video/webm → file_id and PUT address (15 minutes, up to 400 MB per file)
POST /avatars/{id}/uploads/{file_id}/completesend seconds; file type and size are checked (up to 600 seconds in total, at most 20 files)
POST /avatars/{id}/submitneeds consent, voice check and at least 60 seconds of material → in_review

Note: Avatars always carry a visible AI notice (ai_label: "required") and a watermark. At most 5 per company. Status values as for the voice clone: awaiting_consent, in_review, approved, declined, withdrawn.

Live call assistants: /live/agents

An assistant answers calls or talks on your website. On the phone it says in the first sentence that it is an AI – this cannot be switched off (ai_disclosure: "first_sentence").

Credentials of phone or AI providers never go through the API. Connecting only works on the website (setup_url).

EndpointPurpose
GET /live/agentslist
POST /live/agentscreate (201): name, industry, website, knowledge, voice_id, greeting, language, handoff_number, monthly_cap_cents, privacy_url
GET /live/agents/{id}one assistant
PATCH /live/agents/{id}the same fields without website, plus active (switch on or pause) and consumer_consent; knowledge adds knowledge
POST /live/agents/{id}/estimateprice per minute, free
POST /live/agents/{id}/testlink to a free test call in the browser (after sign-in, up to 3 minutes, 5 per day)
GET /live/agents/{id}/callscalls (limit up to 50): duration, cost, outcome, summary, link to the transcript
POST /live/agents/{id}/phone_numberassign a number from a connected phone provider: connection_id, number
DELETE /live/agents/{id}/phone_numberremove the number
curl
# create an agent
curl -X POST https://flow-marketing.org/api/turbo/v1/live/agents \
  -H "Authorization: Bearer $FLOW_API_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Empfang Praxis Muster", "industry": "praxis", "language": "de", "knowledge": "Sprechzeiten: Mo–Fr 8–12 Uhr ...", "privacy_url": "https://praxis-muster.example/datenschutz"}'

# price per minute (free)
curl -X POST https://flow-marketing.org/api/turbo/v1/live/agents/AGENT_ID/estimate -H "Authorization: Bearer $FLOW_API_KEY"

# activate (consumers additionally send consumer_consent)
curl -X PATCH https://flow-marketing.org/api/turbo/v1/live/agents/AGENT_ID \
  -H "Authorization: Bearer $FLOW_API_KEY" -H "Content-Type: application/json" \
  -d '{"active": true, "monthly_cap_cents": 5000}'
JavaScript
const BASE = 'https://flow-marketing.org/api/turbo/v1/live/agents'
const H = { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' }

const agent = await (await fetch(BASE, {
  method: 'POST',
  headers: H,
  body: JSON.stringify({ name: 'Empfang Praxis Muster', industry: 'praxis', language: 'de', knowledge: 'Sprechzeiten: ...', privacy_url: 'https://praxis-muster.example/datenschutz' }),
})).json()
const est = await (await fetch(BASE + '/' + agent.id + '/estimate', { method: 'POST', headers: H })).json()
console.log(est.cost.cents, est.cost.per, est.free)
const test = await (await fetch(BASE + '/' + agent.id + '/test', { method: 'POST', headers: H })).json()
console.log('test call in the browser:', test.url)
Python
import os, requests

BASE = "https://flow-marketing.org/api/turbo/v1/live/agents"
H = {"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]}

agent = requests.post(BASE, headers=H, json={
    "name": "Empfang Praxis Muster", "industry": "praxis", "language": "de",
    "knowledge": "Sprechzeiten: ...", "privacy_url": "https://praxis-muster.example/datenschutz",
}, timeout=30).json()
est = requests.post(BASE + "/" + agent["id"] + "/estimate", headers=H, timeout=30).json()
print(est["cost"]["cents"], est["cost"]["per"], est["free"])
test = requests.post(BASE + "/" + agent["id"] + "/test", headers=H, timeout=30).json()
print("test call in the browser:", test["url"])

Fields of an assistant

Only call minutes cost money. Connecting, assigning a number and the test call are free on our side; your phone provider bills number and line directly. POST /live/agents/{id}/estimate gives the price per minute (cost.cents, per: "minute", net).

FieldMeaning
industrypraxis, handwerk, hotel, shop or immobilien
status, activedraft, active or paused
privacy_urlprivacy page; required before the assistant goes active
consumer_consentfor consumers when switching on: {"immediate_start": true, "compensation": true}
monthly_cap_centsmonthly cap in cents
knowledgeknowledge as text; in the answer a list with id, type, title, chars
websitestored as a source; the page is not read yet
phone_number, connection_id, sip_address, handoff_numberphone details and handover to a human
pricingper_minute_cents and ai (flow or own_key)
retention_days, legal_notice, consumer, consumer_consent_current, setup_urlretention period, legal notice, consumer details, setup link

Connections: GET /live/connections

Shows connected phone and AI providers, read only: id, type (phone or ai), provider, provider_name, status, key_hint (last characters only), numbers, setup (automatic or guide), checked_at and setup_url. You create new connections on the website.

AI media: /media

Creates AI images, short clips and print photos. Price first, then start with confirmation: POST /media/estimate is free and returns cost_tokens. POST /media only starts with confirm_tokens equal to that price (missing: 422). If the price changed: price_changed. If tokens are not enough: 402 insufficient_tokens.

FieldMeaning
typerequired: image, clip or print_photo
promptrequired: description
aspect_ratiofor example 16:9, 9:16, 1:1; default 16:9, 3:4 for print photos
seconds, audioclip only: length (default 5) and sound (default on)
resolutionclip for example 1080p (default), image 1k, 2k (default) or 4k
variantsimage only: number of variants (default 4)
formatprint photo only: a4 or a3
confirm_tokensonly for POST /media: the confirmed price in tokens
curl
# 1. price (free) – no tokens are used
curl -X POST https://flow-marketing.org/api/turbo/v1/media/estimate \
  -H "Authorization: Bearer $FLOW_API_KEY" -H "Content-Type: application/json" \
  -d '{"type": "image", "prompt": "Heller Arbeitsplatz mit Laptop, Morgenlicht", "aspect_ratio": "16:9"}'

# 2. start with the confirmed price (cost_tokens from step 1)
curl -X POST https://flow-marketing.org/api/turbo/v1/media \
  -H "Authorization: Bearer $FLOW_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"type": "image", "prompt": "Heller Arbeitsplatz mit Laptop, Morgenlicht", "aspect_ratio": "16:9", "confirm_tokens": 40}'

# 3. status and download links
curl https://flow-marketing.org/api/turbo/v1/media/MEDIA_ID -H "Authorization: Bearer $FLOW_API_KEY"
JavaScript
import { randomUUID } from 'node:crypto'

const BASE = 'https://flow-marketing.org/api/turbo/v1/media'
const H = { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' }
const wish = { type: 'clip', prompt: 'Kaffeetasse dampft auf Holztisch', seconds: 5, aspect_ratio: '9:16' }

const est = await (await fetch(BASE + '/estimate', { method: 'POST', headers: H, body: JSON.stringify(wish) })).json()
// show est.cost_tokens to a human, then confirm exactly this price:
let job = await (await fetch(BASE, { method: 'POST', headers: { ...H, 'Idempotency-Key': randomUUID() }, body: JSON.stringify({ ...wish, confirm_tokens: est.cost_tokens }) })).json()
while (job.status === 'processing') {
  await new Promise((r) => setTimeout(r, 5000))
  job = await (await fetch(BASE + '/' + job.id, { headers: H })).json()
}
console.log(job.status, job.files.map((f) => f.url))
Python
import os, time, uuid, requests

BASE = "https://flow-marketing.org/api/turbo/v1/media"
H = {"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]}
wish = {"type": "clip", "prompt": "Kaffeetasse dampft auf Holztisch", "seconds": 5, "aspect_ratio": "9:16"}

est = requests.post(BASE + "/estimate", headers=H, json=wish, timeout=30).json()
# show est["cost_tokens"] to a human, then confirm exactly this price:
job = requests.post(BASE, headers={**H, "Idempotency-Key": str(uuid.uuid4())}, json={**wish, "confirm_tokens": est["cost_tokens"]}, timeout=30).json()
while job["status"] == "processing":
    time.sleep(5)
    job = requests.get(BASE + "/" + job["id"], headers=H, timeout=30).json()
print(job["status"], [f["url"] for f in job["files"]])

AI media: answers

media_estimate: cost_tokens, max_tokens, rights, data_location, notes, provider, fallback, livemode. In test mode the price is 0.

media: id, type, status (processing, succeeded, rejected, failed), cost_tokens, charged_tokens, reason, ai_label, rights and files (index, content_type, bytes, sha256, c2pa, url). Results carry a C2PA label. GET /media lists jobs without pages, GET /media/{id} shows state and download links.

Your own source images do not work through the API yet – only in the tool, with a consent step. Send an Idempotency-Key, then a repeat does not start a second job.

Typical answers before the switch-on

  • 404 not_found: the switch is off.
  • 403 missing_scope: the key lacks the scope.
  • 403 customer_account_required: avatars and live call need a customer account.
  • 409 limit_reached: at most 5 avatars per company.

Did this help?

Still have a question?

Mo is an AI and answers right away from these articles. A person on our team replies within 24 hours on business days.

Some services degraded
Create a videoNo subscription needed · cancel any time