Account
Get your profile
Section titled “Get your profile”
GET
/api/me
Session or API key
{ "id": 1042, "email": "you@example.com", "credits": 24, "verified": true, "is_editor": false, "provider": "email", "api_token": "rc-4f8a19c7e02b6d3a5c81f70e9b2d4a6c38e5b1907f2c4d8a", "ssh_public_key": "ssh-ed25519 AAAAC3Nz... you@example.com"}| Field | Description |
|---|---|
credits | Balance available for launching instances. |
verified | Whether the account has cleared review. Unverified accounts can’t launch instances or hold an API key. |
is_editor | Whether you can publish templates publicly. |
provider | How the account signs in. |
api_token | Your current API key. |
ssh_public_key | The key installed into instances, or null. |
Set your SSH public key
Section titled “Set your SSH public key”
POST
/api/profile/ssh-key
Session or API key
| Parameter | Type | Description | |
|---|---|---|---|
ssh_public_key | string | Required | An OpenSSH public key on a single line. Pass an empty string to remove it. |
curl -X POST https://radeon-global.anruicloud.com/api/profile/ssh-key \ -H "Authorization: Bearer $RADEON_API_KEY" \ -H "Content-Type: application/json" \ -d "{\"ssh_public_key\": \"$(cat ~/.ssh/id_ed25519.pub)\"}"The key must start with a recognised type — ssh-ed25519, ssh-rsa, ecdsa-sha2-, ssh-dss, or an sk- hardware variant — fit on one line, and stay under 8192 characters. Anything else is rejected with 400.
The new key applies to instances launched afterwards, not to one already running.
Rotate your API key
Section titled “Rotate your API key”
POST
/api/profile/api-token
Session or API key
Issues a new key and revokes the old one immediately. See Authentication.
Redeem a coupon
Section titled “Redeem a coupon”
POST
/api/credits/redeem
Session or API key
| Parameter | Type | Description | |
|---|---|---|---|
coupon | string | Required | The coupon code you were issued. |
{ "credits_added": 50, "credits": 74 }400 if the code is invalid, already redeemed, or issued to a different account. 503 if redemption is currently closed.
Model API usage
Section titled “Model API usage”Consumption and quota for the shared model APIs are reported separately — see Usage and quota. Credits and model API spend are distinct budgets.