CLI

The faceless CLI (npm package faceless-cli) wraps the whole API in commands that work for humans and for scripts and agents.

Install

bash
npm install -g faceless-cli
faceless --version

The command is faceless (alias fcl). Without installing, use npx -y faceless-cli <command>.

Authenticate

Three options:

  • faceless login: signs in with OAuth in your browser (PKCE on a http://127.0.0.1:<port>/callback loopback); no key to paste. The tokens are stored in ~/.faceless/config.json (mode 0600) and refreshed automatically. faceless login --manual (or --api-key fl_live_...) saves an API key instead.
  • FACELESS_API_KEY environment variable: nothing to store; ideal for CI and agents.
  • faceless signup: an agent with no account and no browser opens its own workspace (see below).

Verify with faceless whoami. Global flags on every command: --json (raw API envelope output), --api-key (override the key for one call) and --api-url (point at another deployment, also via FACELESS_API_URL).

An agent with no account runs faceless signup (optional --name, --email): it opens a Faceless workspace, saves its key and prints a claim link for the human. Run by an agent (no terminal attached) with no credential at all, any command signs up first, except the ones that need no key (faceless estimate, faceless voices, faceless options). A [SIGNUP_CHALLENGE] line asks one question; answer with faceless signup --answer "<word>". faceless agent status and faceless agent claim-link show the claim state and mint a fresh link. The claim link is shown prominently: a framed ACTION FOR YOUR HUMAN: claim ... block on stderr, and signup (claimUrl, claimCode, expiresAt) in the command's JSON answer. The new workspace has 0 credits, so nothing is spent until someone pays. FACELESS_NO_AUTO_SIGNUP=1 turns self-signup off (FACELESS_AUTO_SIGNUP=false still works).

Paying from the CLI: faceless checkout create --pack pack_10 prints a Stripe Checkout link for the person (a card, no wallet needed); faceless checkout get <id> polls it. faceless buy-credits --pack pack_10 --token spt_... pays with a Link wallet's Shared Payment Token.

Commands

Every API operation is a command, plus login, logout, signup and mcp (the local stdio MCP server, see MCP). The table is generated from the API registry. faceless-cli and the API share one version number (GET /health shows the API's; faceless --version the CLI's); an older CLI lacks the newer commands, so update it with npm install -g faceless-cli@latest.

CommandWhat it doesEndpoint
faceless whoamiIdentify the callerGET /me
faceless signupOpen a workspace as an AI agent (no key needed)POST /agent/signup
faceless agent statusClaim and expiry status of this workspaceGET /agent/account
faceless agent claim-linkMint a fresh claim link for your humanPOST /agent/claim-link
faceless defaultsRead the team's video defaultsGET /video-defaults
faceless defaults setSet the team's video defaultsPATCH /video-defaults
faceless creditsCredit balance and historyGET /credits
faceless buy-creditsBuy a credit pack (MPP, a payment token, or a checkout link)POST /credits
faceless checkout createCreate a checkout link a person paysPOST /checkout-sessions
faceless checkout getCheck whether a checkout link was paidGET /checkout-sessions/{id}
faceless estimatePrice requests before making themPOST /estimates
faceless videos createCreate a faceless video from a scriptPOST /videos
faceless videos captionsCaption an existing video or audio filePOST /videos/captions
faceless videos from-audioCreate a faceless video from your own voiceover recordingPOST /videos/audio
faceless videos listList the team's videosGET /videos
faceless videos getGet one videoGET /videos/{id}
faceless videos updateUpdate a video's name or post metadataPATCH /videos/{id}
faceless videos get-captionsRead what each platform posts for a videoGET /videos/{id}/captions
faceless videos set-captionsSet each platform's caption for a video, posted exactly as writtenPATCH /videos/{id}/captions
faceless videos select-thumbnailChoose which thumbnail a video usesPOST /videos/{id}/thumbnail
faceless videos statusPoll video generation progressGET /videos/{id}/status
faceless videos renderRender a video to MP4POST /videos/{id}/render
faceless videos place-imagesPlace your own pictures in a videoPOST /videos/{id}/images
faceless videos shotsList a video's shotsGET /videos/{id}/shots
faceless videos redo-shotRedo one shot of a videoPOST /videos/{id}/shots
faceless videos clean-audioClean the recorded voice of an Audio to Visuals video againPOST /videos/{id}/clean-audio
faceless videos framesSee frames of a video's renderGET /videos/{id}/frames
faceless videos sound-reportHear what a video sounds like, item by itemGET /videos/{id}/sound-report
faceless videos mute-voiceMute stretches of a video's voicePOST /videos/{id}/mute-voice
faceless videos set-coverSet a video's cover (thumbnail)POST /videos/{id}/cover
faceless videos deleteDelete a videoDELETE /videos/{id}
faceless renders getPoll render progressGET /renders/{id}
faceless series createCreate an automated video seriesPOST /series
faceless series listList the team's seriesGET /series
faceless series getGet one seriesGET /series/{id}
faceless series updateUpdate a seriesPATCH /series/{id}
faceless series deleteDelete a seriesDELETE /series/{id}
faceless series generateGenerate the next episode nowPOST /series/{id}/generate
faceless series episodesList a series' episodesGET /series/{id}/episodes
faceless posts publishPublish a rendered video to a platform nowPOST /posts
faceless posts scheduleSchedule a video to one or more platformsPOST /posts/schedule
faceless posts nowPost a scheduled video now instead of at its scheduled timePOST /posts/post-now
faceless posts cancelCancel a scheduled postDELETE /posts/{id}
faceless calendarPosting calendarGET /calendar
faceless accountsList connected social accountsGET /accounts
faceless connect linkCreate a link a human opens to connect a social accountPOST /accounts/connect-links
faceless connect statusCheck whether a connect link has been usedGET /accounts/connect-links/{id}
faceless voicesList TTS voicesGET /voices
faceless optionsList content option catalogsGET /options
faceless assets createRegister a media asset by URLPOST /assets
faceless assets upload-imageUpload your own imagePOST /assets/images
faceless assets listList the team's media libraryGET /assets
faceless analyticsCross-platform posting analyticsGET /analytics
faceless fast-track listList Fast Track video types, categories and scriptsGET /fast-track
faceless fast-track buyGet a Fast Track videoPOST /fast-track
faceless edits createEdit your own video with the AI Video EditorPOST /edits
faceless edits getFollow an AI Video Editor jobGET /edits/{id}
faceless edits changeAsk for a change to an editPOST /edits/{id}/notes
faceless ads searchSearch Meta ads shown in the EU and UKGET /ads/search
faceless ads savedList the team's saved adsGET /saved-ads
faceless ads saveSave an ad from a searchPOST /saved-ads
faceless ads unsaveRemove a saved adDELETE /saved-ads/{id}
faceless ads briefWrite an ad brief for your brand from a competitor's adPOST /ads/briefs
faceless webhooks listList webhook endpointsGET /webhooks
faceless webhooks createCreate a webhook endpointPOST /webhooks
faceless webhooks getGet a webhook endpointGET /webhooks/{id}
faceless webhooks updateUpdate a webhook endpointPATCH /webhooks/{id}
faceless webhooks deleteDelete a webhook endpointDELETE /webhooks/{id}
faceless webhooks deliveriesWebhook delivery logGET /webhooks/{id}/deliveries
faceless webhooks testSend a test event to a webhook endpointPOST /webhooks/{id}/test
faceless webhooks redeliverRedeliver a webhook eventPOST /webhooks/{id}/redeliver

Scripting and agents: --json

Always pass --json when running from a script or agent, and parse the success field. The output is the raw API envelope, so the API reference documents every field.

bash
faceless videos create --script "Did you know..." --voice-id EXAVITQu4vr4xnSDxMaL \
  --model storyboard --wait --json
faceless posts publish --video-id <videoId> --platform youtube --json

The CLI sends an Idempotency-Key automatically on every mutating command, so a timed-out command is safe to re-run without double credit charges.

--wait and --timeout

Asynchronous operations (videos create, videos captions, videos render, series generate) accept --wait: the CLI polls status at the recommended cadence and exits when the operation reaches a terminal state, printing the final resource. Cap the polling with --timeout <seconds>. Without --wait, poll yourself with faceless videos status <id> --json or faceless renders get <id> --json.

bash
faceless videos create --script "..." --voice-id <voiceId> --wait --timeout 900 --json
faceless videos render <videoId> --wait --json

Exit codes

  • 0: success
  • 2: authentication failed (unauthorized); re-run faceless login or fix FACELESS_API_KEY
  • 3: insufficient_credits; top up at https://faceless.so/billing
  • 4: rate_limited; wait and retry (respect Retry-After)
  • 1: any other error