• STATUS
  • BALANCE
  • USAGE
  • HUMAN

How to verify API key usage and credits with your AI

Connect Unkey API Management to your AI client. Once connected, you can check key status and balances through chat.

Ask AI about this page

Short answer

Can I check my API key status and credits in chat?

Yes. You can ask your agent to check if a specific key is valid and see its remaining credit balance. You'll get the following details.

The outcomes

What you'll find in chat

The AI pulls real-time data from Unkey to answer your questions.

STATUS

Key validity checks

The AI confirms if a key is active or revoked. You'll know immediately if a key is still usable.

BALANCE

Remaining credit counts

Your agent retrieves the current credit balance for a specific key. This shows exactly how much usage is left.

USAGE

Key identification

The AI identifies which specific key you are asking about. You get clarity on which credentials are being used.

HUMAN

Manual management

The AI cannot create or delete keys. You must use the Unkey dashboard for those administrative tasks.

The workflow

What your AI does when you ask about keys.

The AI acts as a bridge between your chat and the Unkey API.

  1. Target the key

    Your agent identifies the specific API key you want to inspect from your request.

    verify_api_key
  2. Check status

    The AI checks if the key is active or if it has been disabled.

    verify_api_key
  3. Read credits

    The agent pulls the current credit balance associated with that key.

    verify_api_key
  4. Report results

    The AI provides a plain text summary of the key's validity and its remaining balance.

    verify_api_key

Try it

Copy these to start.

Use these prompts to get immediate answers from your agent.

Starting points

Swap the placeholder key strings for your actual Unkey API keys.

Unkey Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_yjns51tu1Zuz7DUjeNeGeF2BKD96k4G9BaUoTlA0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Unkey capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "unkey-api-management-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_yjns51tu1Zuz7DUjeNeGeF2BKD96k4G9BaUoTlA0/mcp"
    }
  }
}
Copy into chat04
  • Is the API key 'sk_live_4455' still valid?

  • How many credits are left on my 'prod_key_99'?

  • Check the status and balance for key 'test_key_abc'.

  • Tell me if 'user_key_123' is active.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Unkey API Management once, then ask.

Connect your account with one click. Your login stays encrypted on our side, and you can start using the tools immediately.

Connect Unkey API Management to your AI

FAQ

How this task behaves

  • 01

    Can the AI create new API keys?

    No. The AI can only check the status and balance of existing keys.

  • 02

    Can I delete a key through chat?

    No. You must log in to your Unkey dashboard to delete or rotate keys.

  • 03

    Can the AI change my credit limits?

    No. The AI only reads the current balance; it cannot modify limits.

  • 04

    Does the AI see my full account details?

    No. The AI only accesses the specific data required to verify the key you mention.

  • 05

    How do I know if the key is valid?

    The AI will tell you directly if the key is active or revoked based on the API response.

  • More questions about Unkey API Management? The Connector page answers them. See everything the Unkey API Management Connector can do

Connect Unkey to Claude, Cursor, ChatGPT & more