Skip to main content

Per-call headers

Every inference response carries: Send x-predev-project-id: <projectId> on a request to attribute it to one of the workspace’s projects. Ids of projects the workspace does not own are ignored.

GET /v1/usage

Returns totals for the last days days (1–90, default 30), broken down by model and path.
The usage read is not charged.

GET /v1/generation

Returns OpenRouter’s generation metadata for one call, by the id from the response body (gen-…). Only generations this workspace made are visible.
The body is OpenRouter’s; see the OpenRouter docs for its fields. Use it to inspect the provider, latency, and native token counts behind a specific charge.