Select 10M, 30M, or 60M Tokens above.

Claude Code API Key
Claude Code API access. Packages: 10M $1.99, 30M $4.99, 60M $7.99. Compatible with Claude Code supported models.
Purchase
Login to purchaseHow to use your API key
After your payment is completed, your API key is delivered securely with your order. Use the official API endpoint shown below, then copy an example directly into your project.
Claude Β· Use a model supported by your keyx-api-key: ANTHROPIC_API_KEYapi.anthropic.com/v1/messagesAfter payment, open My Account β Order and open your delivery.
Keep your key private. Never put it directly in frontend code.
Copy one of the examples below and replace the placeholders.
ααααΎα Package 10M / 30M / 60M Tokens αααα’αααα αααα·αα
αααααΆααααΈααΌααΆαααααααα α αΌα My Account β Order α αΎαααΎα Delivery ααΎααααΈ Copy API Key α αΎαααααΎ Official API endpoint ααΆααααααα
αααααΆ API Key αα
αααα»α Environment Variable ααΌα
ααΆ API_KEYα αα»αααΆαα Key αα
αααα»α HTML α¬ JavaScript αααα’αΆα
α±ααα’αααααααΎααΎαααΎαα
Claude ααααΎ POST /v1/messages, header x-api-key, αα·α anthropic-version: 2023-06-01α ααααΎα model ααα API key ααααα’αααααΆααααα
import os
from anthropic import Anthropic
client = Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
message = client.messages.create(
model="YOUR_CLAUDE_MODEL",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello from AngkorDev Store!"}
],
)
for block in message.content:
if block.type == "text":
print(block.text)Install: pip install anthropic. Replace YOUR_CLAUDE_MODEL with a model supported by your key.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY
});
const message = await client.messages.create({
model: "YOUR_CLAUDE_MODEL",
max_tokens: 1024,
messages: [
{ role: "user", content: "Hello from AngkorDev Store!" }
]
});
console.log(message.content[0].text);Install: npm install @anthropic-ai/sdk.
curl https://api.anthropic.com/v1/messages \\
-H "content-type: application/json" \\
-H "x-api-key: $ANTHROPIC_API_KEY" \\
-H "anthropic-version: 2023-06-01" \\
-d '{
"model": "YOUR_CLAUDE_MODEL",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello from AngkorDev Store!"}
]
}'Official Anthropic Messages endpoint: POST /v1/messages.
<?php
$apiKey = getenv('ANTHROPIC_API_KEY');
$url = 'https://api.anthropic.com/v1/messages';
$payload = json_encode([
'model' => 'YOUR_CLAUDE_MODEL',
'max_tokens' => 1024,
'messages' => [[
'role' => 'user',
'content' => 'Hello from AngkorDev Store!'
]]
]);
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'content-type: application/json',
'x-api-key: ' . $apiKey,
'anthropic-version: 2023-06-01'
],
CURLOPT_POSTFIELDS => $payload,
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);
curl_close($ch);import java.net.URI;
import java.net.http.*;
String apiKey = System.getenv("ANTHROPIC_API_KEY");
String json = "{\"model\":\"YOUR_CLAUDE_MODEL\",\"max_tokens\":1024,\"messages\":[{\"role\":\"user\",\"content\":\"Hello from AngkorDev Store!\"}]}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.anthropic.com/v1/messages"))
.header("content-type", "application/json")
.header("x-api-key", apiKey)
.header("anthropic-version", "2023-06-01")
.POST(HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{"model":"YOUR_CLAUDE_MODEL","max_tokens":1024,"messages":[{"role":"user","content":"Hello from AngkorDev Store!"}]}`)
req, _ := http.NewRequest("POST", "https://api.anthropic.com/v1/messages", bytes.NewBuffer(body))
req.Header.Set("content-type", "application/json")
req.Header.Set("x-api-key", os.Getenv("ANTHROPIC_API_KEY"))
req.Header.Set("anthropic-version", "2023-06-01")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(string(data))
}using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("ANTHROPIC_API_KEY"));
client.DefaultRequestHeaders.Add("anthropic-version", "2023-06-01");
var json = "{\"model\":\"YOUR_CLAUDE_MODEL\",\"max_tokens\":1024,\"messages\":[{\"role\":\"user\",\"content\":\"Hello from AngkorDev Store!\"}]}";
using var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.anthropic.com/v1/messages", content);
Console.WriteLine(await response.Content.ReadAsStringAsync());Never put your API key in frontend JavaScript, HTML, GitHub, screenshots, public chat, or a mobile app. Use environment variables or a secure backend.
Store



