Get API

GET API · Developer integrations

How to create and use a Get API key safely

After registering or signing in to Get API, create a key on the API Keys page, give it a recognizable name, and select the group that matches the target tool or model. A complete key may only be shown once, so store it immediately in a server-side secret manager or controlled local environment variable; never place a production key in browser code, screenshots, public repositories, or logs.

The name organizes keys; the group scopes access

A key name separates development, testing, and production use. Its group determines the models or tools that the key can reach. A group is not a social group, and its label should not be treated as a permanent model promise; review the live catalog and current UI before creating the key.

  • Use separate keys for separate environments
  • Choose the group that matches the target tool or model
  • Treat the current console as authoritative for access

Keep the credential in a controlled environment

Browser bundles, public repositories, screenshots, and ordinary logs can expose credentials. Server applications should read a key from secret storage or an environment variable; desktop tools should use their protected configuration surface.

  • Do not use a production key in client-exposed build variables
  • Log a redacted identifier only
  • Disable a suspected key before creating its replacement

Start with one minimum request

For the first check, use one current model identifier from the live catalog and a minimal messages request. Add streaming, tools, images, or structured output one feature at a time after authentication and routing work.

  • Use https://relay-api.getapi.pro/v1 as the Base URL
  • Send chat requests to /chat/completions
  • Copy the model identifier from the live catalog

Create and verify a key in the console

This flow never requires publishing a real key; screenshots show only navigation and empty fields.

  1. Register or sign in to Get API

    Complete account access on the main site. New users can use /register; existing users can go directly to the console.

  2. Open the API Keys page

    Select API Keys in the console navigation to reach the list where keys are managed.

    API Keys navigation entry in the Get API console
    Open the API Keys page from the console navigation. The reference UI is shown in Chinese.
  3. Enter a name and select a group

    Choose Create Key, enter a recognizable name, and select the group that matches the target tool or model.

    Name and group fields used to create a Get API key
    Name and group are the core fields. Options in the current console remain authoritative; the reference UI is shown in Chinese.
  4. Copy and store it safely

    Copy the complete key immediately and place it in server-side secret storage or a controlled local environment variable. Do not assume the full value will remain visible later.

  5. Send one minimum validation request

    Copy a currently available model identifier from the live catalog and validate Bearer authentication, the Base URL, and the minimum chat request.

A request that avoids writing the key into shell history

Read the environment variable without echoing it, then send a minimum request with a placeholder model. Windows can set the same variable in a controlled environment.

read -s GETAPI_API_KEY
export GETAPI_API_KEY
curl https://relay-api.getapi.pro/v1/chat/completions \
  -H "Authorization: Bearer $GETAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"your-model-name","messages":[{"role":"user","content":"Hello"}]}'

API key troubleshooting

Observe the HTTP or console state first, change one variable, and test again.

SymptomLikely causeActionSuccess check
401 or authentication failureIncomplete, expired, or disabled key; malformed Authorization headerRead the key from secure storage and keep one space between Bearer and the keyThe minimum request no longer returns an authentication error
Key is disabledAdministrative action, risk control, or intentional rotationStop retrying the old key and create a replacement when authorizedThe replacement is available in the console
Model is absent from the groupThe key group does not include the target modelReview the live catalog and the current group optionsThe selected model is visible to the key
Balance or quota messageCurrent balance, plan, or usage state prevents the requestReview live balance, plan, and usage in the console without assuming a fixed thresholdThe console state permits a test request
404 or route mismatchMissing /v1, duplicated path, or wrong endpointSet the Base URL to https://relay-api.getapi.pro/v1 and append the chat path onceThe request reaches the protocol endpoint

Frequently asked questions

Which fields are required to create a Get API key?

Enter a recognizable name and select the group that matches the target tool or model. The current console remains authoritative for available groups and access.

Can a Get API key be stored in browser code?

Do not store a production key there. Browser code and client-exposed environment variables can be read by users; use server-side storage or a protected desktop-tool setting.

Why does a request return 401?

Common causes are an incomplete, expired, or disabled key, or an Authorization header that does not use the Bearer format. Diagnose with a minimum request and never print the full key in logs.

Can one key call every model?

Do not assume so. The key group, account permission, live catalog, and current service state determine its accessible models.

Business inquiries: business@honeykid.cn