MiniMax-01 icon indicating copy to clipboard operation
MiniMax-01 copied to clipboard

Minimax platfrom create ey token istead of sj and getting error 2049 invalid API key

Open djiso opened this issue 1 year ago • 0 comments

Basic Information - Models Used

embo-02

Basic Information - Scenario Description

API key created as ey and not sk and return with error code 2049

Is this badcase known and solvable?

Information about environment

when creating new API key from the Minimax -setting API keys - Created key is Jwt while minimax agent generated curl to use SK im stuck and cannot use the System BTW using other LLM provide like Open AI the token is valid with minimax connector this is the curl that minimax suggested to run : curl -X POST "https://api.minimax.chat/v1/text/chatcompletion_v2"
-H "Authorization: Bearer YOUR_MINIMAX_API_KEY_HERE"
-H "Content-Type: application/json"
-d '{ "model": "minimax-m3", "messages": [ { "role": "user", "content": "Hello, this is a test message. Please respond briefly to confirm the API is working." } ], "max_tokens": 100, "temperature": 0.7 }' but the generated token is start with ey as JWT and not SK

Call & Execution Information

API Calll Using this Curl : curl --location 'https://api.minimax.chat/v1/text/chatcompletion'
--header 'Authorization: Bearer eyJhb..............'
--header 'Content-Type: application/json'
--data '{ "model": "embo-01", "messages": [ { "role": "user", "content": "Hello, this is a test message. Please respond briefly to confirm the API is working." } ], "max_tokens": 100, "temperature": 0.7 }'

Description

tep-by-Step API Key Generation Instructions Step 1: Access MiniMax Platform 1. Go to the official MiniMax platform: https://platform.minimax.io/ 2. Click on "Login" or "Sign Up" in the top right corner Step 2: Create Account (If New User) 1. If you don't have an account, click "Sign Up" 2. Fill in your registration details: Email address Password Confirm password 3. Verify your email if required 4. Complete the registration process Step 3: Login to Your Account 1. If you already have an account, click "Login" 2. Enter your email and password 3. Click "Sign In" Step 4: Generate API Key 1. Navigate to API Keys section: In the left navigation menu, click "Settings" Then click "API Keys" Or go directly to: https://platform.minimax.io/user-center/basic-information/interface-key 2. Create New API Key: Click "Create New Secret Key" button Enter a name for your API key (e.g., "My Test Key") Click "Create" 3. Important - Save Your Key: A dialog box will appear displaying your new API key CRITICAL: Copy the key immediately using the copy icon Store it securely - it will NOT be displayed again after you confirm The key should look like: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx But im getting ey....

and when calling this CUrl : curl -X POST "https://api.minimax.chat/v1/text/chatcompletion_v2"
-H "Authorization: Bearer YOUR_MINIMAX_API_KEY"
-H "Content-Type: application/json"
-d '{ "model": "minimax-m3", "messages": [ { "role": "user", "content": "Hello, this is a test message. Please respond briefly to confirm the API is working." } ], "max_tokens": 100, "temperature": 0.7 }'

im getting this message { "base_resp": { "status_code": 2049, "status_msg": "invalid api key" } }

djiso avatar Nov 17 '25 09:11 djiso