Skip to main content

Fidelity

A fidelity run is ten blind turns on a face you own. Each turn you write a message and get two answers, a and b, in random order: one from your face, one from a competitor model. You pick the one that sounds more like the person, then accept it or correct it with what the person would actually have said. The run scores the face out of 10. Whatever you settle on for a turn, the answer you accepted or your correction, is that turn’s reply in the conversation both sides answer next.

Start a run

competitor is the model you are up against. competitor_texts is how many of the face’s own source texts the competitor was given as examples. estimated_usd is the part of the run paid from credits: see Cost.

Play a turn

Which label is your face changes from turn to turn, and is not shown until the run is finished. A new turn waits for a pick on the last one: until then it is a 409 fidelity_choice_pending.

Pick, then accept or correct

pick is a or b. Leave correction out to accept the answer as it is.
After the tenth pick, done is true and the response carries fidelity, the run’s score.

Speed

A turn, or a choice with a correction, can take a while. Set your client timeout to at least 60 seconds. Past about 40 seconds the response is held open: a 200 with the header X-Headwaters-Held: 1, and whitespace before the JSON. A failure after that point comes back inside the 200 as an error body, with detail and an error object carrying the real status. When X-Headwaters-Held is set, check for error first.

Scoring

The fidelity score is the sum over the ten turns, out of 10.

Review a run

status is active until the tenth pick, then done. next says what the run is waiting for: {"turn": n, "awaiting": "message"} or {"turn": n, "awaiting": "choice"}, and null once it is done. score is null until then. Each turn shows your message, both answers, and once picked your pick, correction and score. face, the label that was your face, and grade, how much your correction changed it (small, mid or major, null when there was none), appear only once the run is finished.

Save the run as a thread

A finished run can be saved as a thread on the face:
The thread holds your ten messages, each followed by the reply you settled on: your correction where you made one, otherwise the answer you accepted. The answer you did not pick is left out. Compile it like any other thread with POST /v1/compile/threads/{thread_id}/make. Calling it again returns the same thread, with created: false. Before the run is finished it is a 409 fidelity_run_open.

The score on the face

When a run finishes, its score is saved on the face. GET /v1/faces/{alias} carries it for the owner:
A new run overwrites it. It is never shown on a published face or to anyone a face is shared with.

Cost

On Connect or Pro with ChatGPT linked, your face’s and the competitor’s answers on Codex-eligible models run on your ChatGPT plan. Everything else is paid from your credits at the normal rates:
  • answers on any other model;
  • grading each correction you make to your face’s answer;
  • your face’s steering beyond your plan’s allowance, and on Free, all of it.
estimated_usd covers the credit part only. Grading is always paid from credits, so a run on a linked account still needs a balance to start. If your ChatGPT link stops working during a run, a turn answers 422, asking you to link it again or to allow paying from credits (the api_fallback preference). Then send the turn again.

Errors

Errors carry an error_code and a message under detail:
Refused at the start, with nothing charged: During a run: