I purchased credits on Claude Console and issued an API key.

I purchased credits on Claude Console and issued an API key.

When validating an iOS library, I found that a Claude API key was required, and discovered that API credits needed to be purchased in advance through the Claude Console. I summarized the steps from selecting an amount on the billing page, entering address and card information, confirming the purchase, and creating an API key, as well as how to handle cases where the purchase button cannot be clicked.
2026.07.31

This page has been translated by machine translation. View original

When validating "ClaudeForFoundationModels", a library for using Apple's Foundation Models in iOS apps via the Claude API, a Claude API key was needed. When attempting to issue an API key in the Claude Console, it turned out that API credits needed to be purchased in advance.

This article introduces the steps for purchasing API credits in the Claude Console and issuing an API key.

Verification Environment

  • Claude Console (Web version)
  • Date confirmed: July 31, 2026

Prerequisites

  • A Claude Console account must already be created
  • Have a credit card ready for payment

Purchasing Credits

Step 1: Access the billing page

Accessing https://platform.claude.com/settings/billing will display the "Billing" screen. When no credits have been purchased yet, a "Purchase credits to get started" message is displayed along with a "Purchase credits" button.

Credits are consumed by usage in the API, Claude Code, and Workbench. You can purchase credits directly or set an auto-recharge threshold.

Claude Console billing page showing a message to purchase credits to get started and a Purchase credits button

Step 2: Enter the amount and billing address

Pressing the "Purchase credits" button displays a modal.

The purchase amount can be selected from $5 / $20 / $100 / other, and this time $20, the recommended amount, was selected. Next, expand "Billing address" and enter the address.

Screen showing the Purchase credits modal with $20 selected and the billing address being entered

Step 3: Enter card information and confirm the purchase details

After entering the billing address, the card information input field expands. Enter the credit card information. "Shipping address is the same as billing address" is ON by default and is used for tax purposes. "Business tax ID" is an optional field; enter it here if you are a business tax registrant.

Once entry is complete, a summary of the purchase details is displayed.

  • Credits used: $20.00
  • Estimated tax: $2.00
  • Total amount: $22.00

Confirm the details and press the "Purchase $20 of credits" button.

Screen showing the Purchase credits modal with card information entered, the purchase summary, and the purchase button displayed

Step 4: Wait for the purchase to process

After pressing the purchase button, a modal saying "Processing purchase..." is displayed.

Modal indicating that credit purchase is being processed

Step 5: Confirm purchase completion

When processing is complete, a modal saying "You're all set!" is displayed. Selecting "View console" takes you to a screen where you can create and evaluate prompts in the Claude console, and selecting "Get started with API" takes you to a screen where you can start using the Claude API or client SDK.

The credit balance on the billing page is also reflected with the purchase amount ($20.00), and a purchase record ($22.00 · Paid) is added to the billing history.

Modal showing that credit purchase is complete with a "You're all set!" message, displaying options for View console and Get started with API

Creating an API Key

Step 6: Navigate to the API keys page

Opening "API Keys" from the left menu shows the state where no keys exist yet.

API keys are owned by the workspace and remain valid even after the creator is deleted

Proceed to creation from the "Create key" button in the upper right.

Claude Console API keys page showing no keys yet with the Create key button displayed

Step 7: Create an API key

In the modal, select the workspace to associate the key with (in this case Default), set a name that indicates its purpose, and select the expiration period from the dropdown.

This time, for validation of this library, the name was set to ios-foundationmodels-test and the expiration was set to the short duration of "3 hours". Since it is not ideal from a security standpoint to keep issuing long-lived keys for validation purposes, it is recommended to set a short expiration so that the key expires as soon as the purpose is complete.

Screen showing the Create API key modal with workspace, name, and expiration being configured

Step 8: Save the API key

Pressing "Add" issues the key and displays the "Save your API key" modal. Once this modal is closed, the API key cannot be viewed again. Since the full key can only be viewed on this screen, be sure to copy it and store it in a safe place (such as 1Password or Keychain).

After viewing, close the modal with "Done".

Save API key modal showing the issued key, a copy key button, and a Done button

Summary

The flow from purchasing credits to issuing an API key in the Claude Console is as follows.

  1. Purchase credits on the billing page (select amount → billing address → card information → confirm purchase)
  2. Create a key on the API keys page (workspace → name → expiration)
  3. Copy the key on the screen immediately after issuance and store it safely

For validation purposes, setting a short expiration on API keys provides peace of mind. I hope this serves as a helpful reference for anyone else struggling with issuing API keys in the Claude Console.

References


Claudeならクラスメソッドにお任せください

クラスメソッドは、Anthropic社とリセラー契約を締結しています。各種製品ガイドから、業種別の活用法、フェーズごとのお悩み解決などサービス支援ページにまとめております。まずはご覧いただき、お気軽にご相談ください。

サービス詳細を見る

Share this article

AI白書