An API Key authenticates requests to the Token Market unified gateway. Keys belong to the current workspace, and the complete Key is shown only once, immediately after creation.
https://api.tokensmarket.ai/v1GET /modelsThe endpoint remains fixed. Use the parameter documentation on this page to replace the model ID and request data.
${base_url}/modelsOpen the API Keys page in the console. When creating a Key, you must enter a name and select an enabled token group available to the current workspace. You can also set the Key to never expire, choose an expiration of 1 month, 1 day, or 1 hour, or set a custom expiration date and time. Additional controls include quota, model restrictions, and an IP allowlist.
Enter a nonnegative quota with no more than 6 decimal places. Leaving it blank or entering 0 during creation means there is no quota limit. Leaving model restrictions blank allows all models. The IP allowlist accepts comma-separated or line-separated IP/CIDR values; leaving it blank allows requests from any source. If your service runs on a Serverless platform with dynamic egress IPs, such as Vercel or AWS Lambda, do not enable an IP allowlist. Use model restrictions and quota controls instead.
The list shows each masked Key, status, usage and quota, token group, creation time, and most recent use. You can view details, change the name and access restrictions, adjust the quota separately, enable or disable the Key, or delete it. Deletion cannot be undone.
The complete Key appears only once, immediately after creation. Copy it right away and store it in a server-side environment variable or secrets manager. Never put it in frontend code, repositories, logs, or public support tickets. If someone exposes a Key, first disable or delete it, then create a replacement.
The examples use placeholders. Replace them with a currently available model ID from the model details page, and keep your API Key in a server-side environment variable.
export TOKEN_MARKET_API_KEY="<YOUR_API_KEY>"
export TOKEN_MARKET_BASE_URL="https://api.tokensmarket.ai/v1"
# Verify the credential with a real model ID from the model catalog
curl "$TOKEN_MARKET_BASE_URL/models" \
-H "Authorization: Bearer $TOKEN_MARKET_API_KEY"