{"openapi":"3.1.0","info":{"title":"Aitachyon API","version":"1.0.0","description":"Generate images, video, avatars, voiceovers and carousels from your own code.\n\nAuthentication is a personal API token created at https://aitachyon.com/settings, sent as `Authorization: Bearer ait_...`. There is no API-key header. (MCP clients on /api/mcp may also sign in with OAuth 2.1: https://aitachyon.com/docs/mcp.)\n\nRequest bodies are not fully modelled in this document yet; the enum values each generation endpoint accepts are listed under components.x-enums, and /api/models returns the same data at runtime.","contact":{"url":"https://aitachyon.com/docs/api"}},"servers":[{"url":"https://aitachyon.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A personal API token. It starts with ait_ and is shown once, at creation."}},"x-enums":{"images/generate.provider":["nanobanana","seedream","recraft","openai","flux","z-image","grok"],"images/generate.quality":["fast","standard","ultra"],"images/edit.op":["remove-bg","upscale","enhance","vectorize","replace-bg","inpaint"],"scenes/generate.engine":["seedance","seedance-2.5","kling-4","kling","wan","hailuo","grok","omni"],"scenes/generate.mode":["fast","hd"],"scenes/generate.ratio":["9:16","16:9","1:1"],"scenes/generate.resolution":["480p","720p","1080p","4k"],"avatar/generate.model":["omnihuman","kling","heygen","h3-lipsync"],"avatar/generate.resolution":["480p","768p","1080p"],"voiceover/generate.provider":["google","fish_audio","elevenlabs"],"three-d/generate.engine":["tripo","trellis","hunyuan"],"videos/upscale.resolution":["1080p","4k"]}},"paths":{"/api/me":{"get":{"tags":["Account"],"summary":"Your credit balance, plan, projects and available avatars.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/credits/ledger":{"get":{"tags":["Account"],"summary":"Every spend and refund, each linked to the job that caused it.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/usage/summary":{"get":{"tags":["Account"],"summary":"What you pay and what you owe, in your own prices: how the account pays, your price for every action and model, the period's usage by action and model (?period=this_month|last_month|30d, or unpaid for invoiced accounts), and your last 50 jobs.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/generations":{"get":{"tags":["Account"],"summary":"Your library, newest first. Every item has a typed ref (img_, scn_, avt_, vo_, vjob_); page with ?before=next_before.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/tokens":{"get":{"tags":["Account"],"summary":"Your active API tokens (no secrets). Signed-in session only: a token cannot list or mint tokens.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"post":{"tags":["Account"],"summary":"Create a token; returned once. Signed-in session only. Optional: spend_cap_usd with cap_window day|month (jobs past it get a 402 KEY_SPEND_CAP), customer_ref (recorded on every charge), expires_in_days, can_mint (a platform key).","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/mcp":{"post":{"tags":["Account"],"summary":"The MCP server over streamable HTTP. Point any MCP client here with your bearer token; nothing to install.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/generations/{ref}":{"get":{"tags":["Account"],"summary":"One item by its ref, in any status: poll a job and fetch its result with the same call.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"delete":{"tags":["Account"],"summary":"Delete one item for good: its file, then its library entry (the charge stays on your ledger). 200 { deleted, ref, file_deleted }; 404 if it is not yours, or outside the project a project-bound key is tied to; 409 JOB_RUNNING while a job is still pending or processing.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/keys":{"post":{"tags":["Keys for your customers"],"summary":"With a platform key: create a key for one of your customers, with name, customer_ref, spend_cap_usd, cap_window (day|month) and expires_in_days. Returned once.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"get":{"tags":["Keys for your customers"],"summary":"With a platform key: its active child keys, each with calls and billed USD over a range (?from=&to=, default this month), filterable by ?customer_ref=.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"delete":{"tags":["Keys for your customers"],"summary":"With a platform key: revoke one child key (?id=).","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/wallet/open":{"get":{"tags":["Prepaid wallet"],"summary":"Whether this account can switch to prepaid, and at what rate.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"post":{"tags":["Prepaid wallet"],"summary":"Switch to prepaid. For an account with no subscription and no credits left.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/wallet":{"get":{"tags":["Prepaid wallet"],"summary":"Balance, spend today/7d/30d, burn per day, days left, spend by action, every charge with its cost.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}},"put":{"tags":["Prepaid wallet"],"summary":"Automatic top-up: recharge X when the balance falls under Y. Signed-in session only: a token cannot change when your card is charged.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/wallet/topup":{"post":{"tags":["Prepaid wallet"],"summary":"A Stripe checkout for the amount you choose. The card is kept for automatic top-ups.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/images/generate":{"post":{"tags":["Images"],"summary":"Generate an image. Providers differ in price; a people shot may add a finishing pass.","description":"Costs 4 credit(s) (1-4 depending on provider, +3 for the skin finish).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/images/edit":{"post":{"tags":["Images"],"summary":"Remove background, upscale, vectorize, replace background or inpaint.","description":"Costs 2 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/images/director-preview":{"post":{"tags":["Images"],"summary":"See the art-directed prompt before spending anything.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/images/ideas":{"post":{"tags":["Images"],"summary":"Image concepts for a brand or product.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/scenes/generate":{"post":{"tags":["Video"],"summary":"Generate a b-roll clip. Eight engines; flat-priced on the default tier, per-second on the others.","description":"Costs 3 credit(s) (3 fast, 89 hd, or per second by engine). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/scenes/status/{taskId}":{"get":{"tags":["Video"],"summary":"Poll a scene until the mp4 is ready.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/scenes/director-preview":{"post":{"tags":["Video"],"summary":"Preview the art-directed video prompt, free.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/upscale":{"post":{"tags":["Video"],"summary":"Upscale a finished video to 1080p or 4K.","description":"Costs 1 credit(s) (per second of output). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/reframe":{"post":{"tags":["Video"],"summary":"Reframe to another aspect ratio, generatively.","description":"Costs 6 credit(s) (per second). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/motion":{"post":{"tags":["Video"],"summary":"Transfer the motion and camera of a driving clip onto a still.","description":"Costs 3 credit(s) (per second). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/lipsync":{"post":{"tags":["Video"],"summary":"Retrofit lipsync onto an existing clip.","description":"Costs 4 credit(s) (per second). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/dub":{"post":{"tags":["Video"],"summary":"Dub a video into another language.","description":"Costs 24 credit(s) (per minute, rounded up). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/matte":{"post":{"tags":["Video"],"summary":"Remove the background, green-screen output.","description":"Costs 2 credit(s). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/videos/analyze":{"post":{"tags":["Video"],"summary":"Score a finished video for virality before you post it.","description":"Costs 5 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/export/assemble":{"post":{"tags":["Video"],"summary":"Assemble clips, voiceover and captions into a finished mp4.","description":"Costs 1 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/avatar/generate":{"post":{"tags":["Avatars and presenters"],"summary":"Avatar video from an avatar and a voiceover.","description":"Costs 4 credit(s) (per second, minimum 24). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/avatar/status/{predictionId}":{"get":{"tags":["Avatars and presenters"],"summary":"Poll an avatar render.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"predictionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/avatars/persona":{"post":{"tags":["Avatars and presenters"],"summary":"Create a reusable persona from a description.","description":"Costs 4 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/avatars/twin":{"post":{"tags":["Avatars and presenters"],"summary":"Build a likeness of yourself from reference photos.","description":"Costs 4 credit(s) (+108 to train a LoRA).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/creator/presenter":{"post":{"tags":["Avatars and presenters"],"summary":"A presenter shot matched to your brand.","description":"Costs 4 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/creator/plan":{"post":{"tags":["Avatars and presenters"],"summary":"Plan a creator-style shoot, free.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/voiceover/generate":{"post":{"tags":["Audio"],"summary":"Voiceover from a script.","description":"Costs 1 credit(s) (1-5 per 450 characters by provider).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/voiceover/voices":{"get":{"tags":["Audio"],"summary":"Every voice you can use.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/voiceover/sample":{"post":{"tags":["Audio"],"summary":"Hear a voice before committing, free.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/voices/clone":{"post":{"tags":["Audio"],"summary":"Clone a voice from a sample; returns a reusable voice id.","description":"Costs 81 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/voices/speak":{"post":{"tags":["Audio"],"summary":"Speak with a cloned voice.","description":"Costs 3 credit(s) (per 450 characters).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/music/generate":{"post":{"tags":["Audio"],"summary":"A background track.","description":"Costs 10 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/sfx/generate":{"post":{"tags":["Audio"],"summary":"A short sound effect.","description":"Costs 2 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/brand/reference-kit":{"post":{"tags":["Brand and copy"],"summary":"Read a URL for its logo, colours, fonts and usable imagery. Free, and nothing is created.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/brand/scrape":{"post":{"tags":["Brand and copy"],"summary":"Analyse a website into a brand kit.","description":"Costs 6 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/brand/create":{"post":{"tags":["Brand and copy"],"summary":"Create a brand kit by hand.","description":"Costs 6 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/brand/logo":{"post":{"tags":["Brand and copy"],"summary":"Generate a logo.","description":"Costs 4 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/scripts/generate":{"post":{"tags":["Brand and copy"],"summary":"An ad script from a brief.","description":"Costs 3 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/copy":{"post":{"tags":["Brand and copy"],"summary":"Headlines, CTAs and captions, free.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/content/generate-captions":{"post":{"tags":["Brand and copy"],"summary":"Platform-sized captions.","description":"Costs 2 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/campaigns/angles":{"post":{"tags":["Brand and copy"],"summary":"Distinct campaign angles for one product.","description":"Costs 2 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/design-carousel/generate":{"post":{"tags":["Brand and copy"],"summary":"A code-rendered carousel on your real brand theme.","description":"Costs 3 credit(s).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/three-d/generate":{"post":{"tags":["3D and assets"],"summary":"An image turned into a downloadable GLB.","description":"Costs 22 credit(s). Asynchronous: returns a task id to poll.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/three-d/status/{jobId}":{"get":{"tags":["3D and assets"],"summary":"Poll a 3D job.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/upload":{"post":{"tags":["3D and assets"],"summary":"Upload an image, video or audio file to your account. Returns path, a signed url and a ref (upl_...) to delete it with.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/uploads/{ref}":{"delete":{"tags":["3D and assets"],"summary":"Delete for good one file POST /api/upload stored, by the ref it returned. 200 { deleted }; 404 if it is not yours, already gone, or outside the project a project-bound key is tied to. A pinned copy is a library image: delete it with DELETE /api/generations/img_<id>.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/signed-url":{"post":{"tags":["3D and assets"],"summary":"A signed URL for one of your assets.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/inspiration/search":{"post":{"tags":["3D and assets"],"summary":"Search reference imagery, free.","description":"Free: this call spends no credits.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Missing or invalid token"},"402":{"description":"Insufficient credits (code INSUFFICIENT_CREDITS, with hint, topup_url and pricing_url for switching to prepaid), or insufficient balance on a prepaid wallet (code INSUFFICIENT_BALANCE, with balance_usd)"},"422":{"description":"Validation failed; the body names the offending field"}}}},"/api/pricing":{"get":{"tags":["Discovery"],"summary":"The price grid in dollars. No authentication.","security":[],"responses":{"200":{"description":"Success"}}}},"/api/models":{"get":{"tags":["Discovery"],"summary":"Every engine you can name, with the exact value to send. No authentication.","security":[],"responses":{"200":{"description":"Success"}}}},"/api/capabilities":{"get":{"tags":["Discovery"],"summary":"Everything this API can do, in one call. No authentication.","security":[],"responses":{"200":{"description":"Success"}}}},"/api/costs":{"get":{"tags":["Discovery"],"summary":"The ids you can price.","security":[],"responses":{"200":{"description":"Success"}}},"post":{"tags":["Discovery"],"summary":"Price a set of items before calling anything. Spends nothing.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","quantity"],"properties":{"id":{"type":"string"},"quantity":{"type":"number","minimum":0}}}}}}}}},"responses":{"200":{"description":"Success"},"400":{"description":"Unknown id or bad quantity"}}}}}}