v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
openai-compat

Codex Session Savings

Return cumulative routing savings for one Codex session.

Args: session_id: Codex session id (the request prompt_cache_key). auth: Authenticated request context; the billing team it resolves is applied as the read scope so sessions are not cross-team readable.

Returns: Cumulative savings for the session, or a found=False payload when nothing has accumulated.

get/v1/codex/session-savings/{session_id}

Path parameters

session_idstring required

Response

Successful Response

foundboolean required

Whether any savings have accumulated for the session.

savings_usdnumber

Cumulative dollars saved this session vs the frontier.

baseline_modelstring nullable

Frontier reference model the savings are measured against.