EN ▾
Start now

Claude Price API Key: Get and Test an OpenAI Key

Last updated

If you searched for a claude price api key, here is the practical path: sign up, claim a key, point any OpenAI client at the new base URL and send a first request. The whole thing takes a few minutes, and a $0.50 trial lets you see the real price per call before you pay anything.

A glowing key linked by a light trail to a gauge and a server cube, showing API key setup and price

What you are getting a key for

This site gives you an API key for an independent, OpenAI-compatible text API. The model behind it is one open-weight model, tuned to answer without content refusals for lawful adult use. It is not Anthropic's Claude and it is not a router across vendors, so the key will not work on Anthropic's endpoints, and an Anthropic key will not work here.

The reason this matters for the claude price api key question is simple: the price you pay is the one on this site. It is $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit. If you want Anthropic's rates, read them on Anthropic's pricing page, because they change.

Step 1 to 3: sign up and claim the key

  1. Sign up. Use Google, or register with an email address and password.
  2. Open the key page. Go to the API key page. Your key appears there.
  3. Claim the trial. One click on the same page adds $0.50 of trial credit. It needs no card, lasts 7 days and is limited to one per person.

Copy the key and store it in an environment variable rather than in source code. On macOS or Linux:

export API_KEY="paste-your-key-here"

Never commit the key to a public repository. If you do by mistake, regenerate it on the key page. The old key stops working at once, and you do not need to contact anyone.

Step 4: first request with curl

The API follows the OpenAI chat format. Authentication is a bearer header, the base URL is https://api.claudeprecio.com/v1 and the model name is uncensored.

curl https://api.claudeprecio.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write one sentence about the sea."}],
    "max_tokens": 60
  }'

You should get JSON with a choices array and a usage block. The response headers include X-Request-Id and X-Balance-USD, the last of which shows what is left of your credit. To check the balance without generating text, call GET /v1/balance with the same bearer header.

Step 5: Python and Node

Any OpenAI SDK works once you change two settings: the base URL and the key. Nothing else in your code has to change except the model name.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.claudeprecio.com/v1",
    api_key=os.environ["API_KEY"],
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Explain DNS in two sentences."}],
)
print(resp.choices[0].message.content)
print(resp.usage)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.claudeprecio.com/v1",
  apiKey: process.env.API_KEY,
});

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Explain DNS in two sentences." }],
});
console.log(resp.choices[0].message.content);

The same endpoint also supports POST /v1/responses, streaming with stream: true, tool calling and JSON mode. The documentation shows each one.

Next: JSON mode and streaming

Once the first call works, two features cover most real apps. JSON mode makes the model return a JSON object, which is easier to parse than free text.

curl https://api.claudeprecio.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "response_format": {"type": "json_object"},
    "messages": [{"role": "user", "content": "Return a JSON object with the keys city and country for Paris."}]
  }'

Streaming sends tokens as they are generated, over SSE, when you add "stream": true. Usage is reported at the end of the stream. Keep in mind that a streamed request holds its concurrency slot until it ends, which matters on a trial key with only 2 slots.

What a test actually costs

The first call above uses roughly 15 input tokens and 60 output tokens at most. That is 15 x $0.00000015 = $0.00000225 for input plus 60 x $0.0000005 = $0.00003 for output, about $0.00003 in total. The $0.50 trial could pay for about 15,000 calls of that size ($0.50 / $0.00003225).

A more realistic request has 2,000 input and 500 output tokens and costs $0.00055, so the trial covers about 909 of them. Check the usage numbers in your own responses and multiply them by the rates. The pricing page has the same figures and the top-up options.

Fixing the usual first-run errors

SymptomLikely causeFix
Authentication errorExtra space, missing Bearer, or a regenerated keyCopy the current key again from the key page
Not-found error on the requestBase URL without /v1Use https://api.claudeprecio.com/v1
Unknown model errorA model name from another vendorSet model to uncensored
429 with concurrencyMore than 2 simultaneous requests on a trial keySend requests one or two at a time
429 with rate_limitedMore than 60 requests a minute on a trial keySlow down, or top up for the full-key limit of 300

On temporary overload the API also returns 429 with a Retry-After: 5 header. Wait five seconds and retry. For more on errors that waste money, see the article on common integration mistakes.

Keeping the key safe

The key spends your balance, so treat it like a password.

  • Keep it on the server. Never place it in browser JavaScript or a mobile app bundle, where anyone can read it. Call the API from your backend and let the front end call your backend.
  • Use environment variables. Put the key in a .env file or your host's secret store, and add the file to .gitignore.
  • Use one key per service. After a top-up you can hold up to 5 keys with labels, so a staging script and the production bot do not share one.
  • Rotate on suspicion. Regenerate on the key page when someone leaves a project or a log leaks the key. The old one stops at once.
echo ".env" >> .gitignore
echo "API_KEY=paste-your-key-here" > .env
git status --short   # .env should not appear

If you see unexpected spending, check the X-Balance-USD header over a few calls and regenerate the key. Failed or refused requests are not charged, so a flood of errors is not what drained the balance.

Managing keys after you top up

Anyone can regenerate the key on the key page, and the change takes effect at once. Accounts that have topped up can hold up to 5 keys, give each one a label and revoke any of them. That is the clean setup for teams: one key per service, so a leak in one place does not force a rotation everywhere.

Top-ups are any whole amount from $20 to $500 in crypto (USDT on TRC20 or USDC on Base), with a +5% bonus from $50, +10% from $100 and +15% from $200. A full key allows 8 concurrent requests and 300 requests per minute. Prompts are not used for training.

Frequently asked questions

Is this key the same as an Anthropic key?

No. It works only with this site's API and an independent open-weight model. Use it by setting the base URL to https://api.claudeprecio.com/v1 and the model to uncensored.

Do I need a card to get the trial?

No. After signing up with Google or email and password, one click on the API key page adds $0.50 of trial credit, valid for 7 days, once per person.

Can I replace a leaked key without contacting support?

Yes. Regenerate it on the API key page and the old key stops working at once.

How many keys can I have?

Accounts that have topped up can hold up to 5 keys with labels and revoke any of them.

Get your API key now

Register, copy the key, update the base URL. That is all you need to do.

Key takeaways

  • Sign up with Google or email, then open the API key page to claim the key and the $0.50 trial.
  • Set the base URL to https://api.claudeprecio.com/v1 and the model to uncensored; no other code changes.
  • Rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens, so a short test costs a fraction of a cent.
  • You can regenerate the key yourself at any time; the old one stops working immediately.

Use email and password; key displays instantly.