6 image models · capabilities and pricing in one placeSee pricing →
API documentationExport usage CSV

OGA DEVELOPER CENTER

API v1 · Last verified 2026-08-15

Export usage CSV

Export usage records scoped to the current API key.

GET/api/v1/account/usage.csv
Browse common endpoints

Overview

The successful response is a text/csv file rather than the JSON envelope. The download is private and no-store and is best saved by a controlled backend or local command.

Authentication: Bearer API key

Request

This endpoint has no path, query, or request-body parameters.

Response

A successful response is a CSV file; errors still use the standard JSON error envelope.

HTTPMeaning
200Request succeeded
401Missing or invalid API key
403API key disabled or access forbidden
500Internal service error

Success response type

text/csv; charset=utf-8

Important boundaries

  • This endpoint returns a file and is not executed by the JSON-only explorer.

Open the machine-readable OpenAPI

Code & API explorer

GET · /api/v1/account/usage.csv

curl -X GET "$OGA_BASE_URL/api/v1/account/usage.csv" \
  -H "Authorization: Bearer <YOUR_OGA_API_KEY>" \
  -H "X-Request-Id: <UUID_V4>" \
  -H "Accept-Language: en-US"