Skip to main content

Quickstart

With your agent

Paste this into your coding agent, whether Claude Code, Codex, Cursor or any other that takes skills. Or read the skill first, at faces-sh/skill.

By hand

The rest of this page walks through the API directly: register an account, create a face, upload a source document, compile it, and ask the face what it would do.

Prerequisites

  • API base URL: https://api.faces.sh
  • Replace YOUR_API_KEY with a real key obtained in step 2.

1. Register

If you already have an account, skip to step 2.
Register with email and password:
name and username are optional: without a username, one is made from the email. The password needs 8 to 64 characters, with at least one uppercase letter, one lowercase letter and one digit.
Use data.token as a Bearer token for subsequent requests, or create an API key (step 2).
A new account starts with a **$0 balance**, so compiling and asking a face answer `402` until it has credit. Open `activation_checkout_url` to add your first $5 (you can choose more on the payment page). See Billing.

2. Create an API key

API keys are created with the JWT from step 1. An API key cannot create, list or change keys.
Store this key. All examples below use YOUR_API_KEY.

3. Create a face

Your account already has one face, me: it is you, created with the account. Compile your own writing into it to make a face of yourself. See Your me face. For this walkthrough, make a new one:

4. Upload a source document

Upload a plain-text file the face wrote, such as an essay or a journal. Say what kind of writing it is with medium: it is required, and a document without one is refused with 422:
medium, perspective and type are query parameters, not form fields. medium is what the text is, one of the 25 names GET /v1/media lists (essay, email, speech, journal entry, …). perspective is first-person when the face wrote the text and third-person (the default) when it is about the face.
You can also upload PDF and Word (.docx) files, audio, or video; see Faces guide.
A document is the face’s own writing. An interview, transcript or any other exchange between speakers is a thread: upload it with type=thread&face_speaker=Alice so only Alice’s turns are used. See Uploading threads.

5. Compile

Trigger compilation of the uploaded document, using the document_id from step 4:
Compilation is asynchronous (returns 202). Poll the document status until it completes:
When status is compiled, the face is ready. While finishing is true the compile is still in hand, so keep polling and offer no action. See Compile.

6. Ask the face

Describe a situation and ask a question. model is the face and its maestro, @alice:maestro-1 (see Naming a model):
The face proposes the options it would weigh, strongest first. Leave instructions out and it proposes the question it would ask instead. See Choices. To have the face answer in its own words on any chat model, name the model after a /:
See Chat.
For a situation longer than 3,000 tokens, or one your agent keeps building, put it in a state and send its id as state_id.

Next steps