Start a credit top-up
Creates a Stripe Checkout Session. Redirect the user to url; credits are added when
the payment succeeds (usually seconds later). A paid invoice is emailed for each top-up.
Requires the billing:write scope.
bearerAuthAuthorizationBearer <token>API key, e.g. rf_live_3f9k2q_….
Idempotency-Key?stringRetries with the same key and body within 24 h return the original response.
length <= 255application/json- body
amount_micros*integerWhole cents, $10 to $10,000. For example 25000000 is $25.
int6410000000 <= value <= 10000000000success_url*stringWhere Checkout returns after payment. HTTPS.
uricancel_url*stringWhere Checkout returns if the user cancels. HTTPS.
urisave_payment_method?booleanSave the card for auto-recharge.
trueCheckout Session created.
application/json- response
object*unknownid*stringStripe Checkout Session id.
url*stringuriamount_micros*integerint64curl -X POST 'https://api.rawframe.dev/v1/account/topups' \ -H 'Content-Type: application/json' \ -d '{ "amount_micros": 10000000, "success_url": "http://example.com", "cancel_url": "http://example.com"}'{ "object": "checkout_session", "id": "string", "url": "http://example.com", "amount_micros": 0}API reference
Every endpoint and webhook event, generated from the OpenAPI spec.
Export usage as CSV GET
One row per generation created between `start` and `end` (inclusive, UTC dates), oldest first. Columns: `generation_id, created_at, completed_at, model, served_by, type, mode, status, error_code, billed_unit, billed_quantity, charge_micros, charge_usd, api_key_id, metadata`. At most 100,000 rows; narrow the range if you get `range_too_large`. Requires `account:read`.