Partner API FAQ

Practical answers about account keys, usage, rotation, and callbacks.

Partner API FAQ

What is the difference between the API KEY and a Model API key?

The account-level API KEY (mg_partner_...) manages Model API keys and retrieves async results through https://panel.model-gate.com/api. A Model API key (mg_live_...) authenticates inference requests through https://api.model-gate.com.

Which counter enforces spend_limit?

The resettable usage counter. POST /keys/{id}/reset-usage clears it. total_spent is lifetime accounting and never resets.

Does every key have a separate balance?

No. All keys spend from the account balance. Per-key limits control usage without splitting money into child balances.

What happens when a key is rotated?

The old secret stops working immediately. The response contains the new plaintext secret once.

How are callbacks configured?

Set callback_url and rotate callback_secret in the profile. Async completion results are always sent when a callback URL exists. Low-key-limit and low-account-balance events are optional.

How long can an async result be retrieved?

24 hours through GET https://panel.model-gate.com/api/v1/requests/{request_public_id}. After expiration, the stored request and response are deleted and the endpoint returns 404.