API reference · Recorder
Replay a captured request
POST/api/traces/replaySigned in session
Runs the captured request again, against the same model or another one, and returns both answers with their costs and latencies. A replay is a real request through the one dispatch path: it is metered and charged. With quote: true nothing runs: the answer is the most the replay could be billed, the gateway's own worst case for that request on that model.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| traceIdrequired | string | 32 hex characters. |
| model | string | Optional. A different world. |
| quote | boolean | Price it; run nothing. |
Example
{
"traceId": "string",
"model": "antimatter/auto",
"quote": false
}Answer 200
The two answers side by side, or with quote the replay's price.
| Field | Type | What it is |
|---|---|---|
| traceId | string | |
| original | ReplaySide | |
| original. | string | |
| original. | string or null | |
| original. | integer | |
| original. | integer or null | |
| original. | integer or null | |
| original. | integer | |
| original. | integer | |
| original. | integer | |
| original. | string or null | Untrusted text. Render escaped. |
| original. | boolean | |
| original. | string or null | |
| replay | ReplaySide | |
| replay. | string | |
| replay. | string or null | |
| replay. | integer | |
| replay. | integer or null | |
| replay. | integer or null | |
| replay. | integer | |
| replay. | integer | |
| replay. | integer | |
| replay. | string or null | Untrusted text. Render escaped. |
| replay. | boolean | |
| replay. | string or null |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.