Skip to content

Ask AI

I answer questions about Radeon Cloud from these docs and link to the pages I used.

Answers are generated from the docs by a model on Token Factory and can be wrong; the docs are authoritative. Don't enter API keys or other secrets here.

Authentication

AMD Radeon Cloud uses three kinds of credential. Which one you need depends on what you call.

CredentialLooks likeUse it for
API keyrc- + 48 hex charactersToken Factory
CLI tokenrcc_...Radeon Cloud CLI: instances, credits, resources
Session cookieSet when you sign in to the consoleThe console and the Platform API

To automate instances from a script, use the CLI. The Platform API endpoints serve the console and accept only a browser session.

A key looks like this:

rc-4f8a19c7e02b6d3a5c81f70e9b2d4a6c38e5b1907f2c4d8a

Send it as a bearer token:

Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/models \
-H "Authorization: Bearer $RADEON_API_KEY"

Token Factory also accepts the key in the x-api-key header, which is how Anthropic SDKs authenticate. Send anthropic-version with it when calling /v1/messages:

Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/messages \
-H "x-api-key: $RADEON_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"DeepSeek-V4-Flash","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

If both headers are present, Authorization is used. Only Token Factory reads x-api-key.

Open Token Factory. Your key is on the Your API key card at the top; click Copy. The key is created the first time you open Token Factory.

Accounts that are still under review don’t get a key. If yours is missing, check whether your account has been approved.

A model service on your instance has its own key, starting with sk-, shown on its instance card. See Model service endpoints.

The new console has no button for this yet. Switch to the classic interface (Settings → Interface → Use classic), open Profile and click Regenerate Key. See Classic interface.

The old key stops working immediately, so update every client that uses it at the same time.

Rotate when a key may have leaked.

rcc auth login signs the CLI in through your browser and stores a token that starts with rcc_. It manages your account and instances, and doesn’t work with Token Factory. See Sign-in and accounts.

Signing in to the console sets a session cookie. There’s no endpoint that creates a session from a password, so a script can’t get one.

The session ends when you sign out, when the identity provider’s sign-in expires, or when it’s revoked by an administrator.

EndpointAPI keyCLI tokenSession
Token Factory (/api/v1/...)YesNoOnly to list models
Model services on instances (/inference/...)The sk- key on its cardNoNo
CLI endpoints (/api/cli/...)NoYesNo
Platform API: instances, templates, accountNoNoYes
Browse public templates (GET /api/templates)OptionalNoOptional
JupyterLab and other apps (/instances/...)NoNoYes

A model service accepts only the key shown on its own card.

401 means the credential is missing, malformed or not recognised. Sending an API key to a Platform API endpoint also returns 401, with Login required.

403 with "code": "account_not_verified" means you’re signed in but your account is still under review. The response includes a redirect to the review page.

403 on an instance path means the instance isn’t yours.

See Errors for the full list.