Skip to content

How to use the Claude API: from sign-up to your first call

To use the Claude API in your code, Claude Code or another coding tool, you need four steps: create an account, top up, create an API key, and put the base URL and key into your code or tool. This article walks through the whole flow on 6090ti with examples you can run as they are.

Step 1: Create an account

Open the console, sign up with your email and verify it. Details: Create an account.

Step 2: Top up

6090ti charges per call, with no monthly fee. Model prices are in USD; see model pricing.

Step 3: Create an API key

Create a key on the “API Keys” page of the console. The full key is shown only once, so store it safely. Details: Top up and create an API key.

Step 4: Make a call

Use the base URL https://api.6090ti.com and the Anthropic-compatible format. First see which models your key can use:

curl https://api.6090ti.com/v1/models \
  -H "x-api-key: <your key>"

Then send a message (use a model name from that list):

curl https://api.6090ti.com/v1/messages \
  -H "x-api-key: <your key>" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"<model name>","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

In Python (run pip install anthropic first):

import anthropic

client = anthropic.Anthropic(base_url="https://api.6090ti.com", api_key="<your key>")
msg = client.messages.create(model="<model name>", max_tokens=256,
                             messages=[{"role": "user", "content": "Hello"}])
print(msg.content[0].text)

If you get a reply and the call shows up in the console usage records, you are connected.

Use it in coding tools

Setup guides: Claude Code, Cline, Roo Code, Cherry Studio, Continue, Aider.

Which model

Start with Sonnet for most tasks, switch to Opus for hard ones and Haiku for volume and speed. See Opus vs Sonnet vs Haiku vs Fable.