Documentation
Everything you need to get started with Quatarly API keys
Getting started
Just purchased on G2G? Here's how to activate your API key.
01
Copy your order key
Open your G2G order and copy the PLT-XXXX key from the delivery
02
Paste and redeem
Go to the home page, paste the key, and click Redeem
03
Choose New key
Select New key and enter your G2G username for support reference
04
Save your API key
Click Get API Key — copy it and download the .txt file
Add credits to an existing key
Each new order adds 50,000,000 credits to any existing key.
01
Copy the new order key
Get the new PLT-XXXX key from your latest G2G order
02
Select Add credits
Paste the key on the home page, then choose Add credits
03
Enter your existing key
Paste your current Quatarly API key and confirm — credits are added instantly
Lost your API key?
As long as you have the original PLT-XXXX key from your order, you can retrieve it anytime.
Retrieve API key
How to use with Claude Code
Watch the setup video to configure Claude Code with your Quatarly key in minutes.
Watch on YouTube
Setup repository used in the video: github.com/himanshu91081/Quatarly-setup
Set these environment variables after cloning:
export ANTHROPIC_API_KEY="your-quatarly-api-key"
export ANTHROPIC_BASE_URL="https://api.quatarly.cloud/v0"
Then use Claude Code as normal — all requests route through Quatarly automatically.
API usage
Use your API key as a Bearer token. Base URL:
https://api.quatarly.cloud/v0Chat completion
curl https://api.quatarly.cloud/v0/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"messages": [{"role": "user", "content": "Hello"}]
}'
Check credits
curl https://api.quatarly.cloud/v0/user/credits/YOUR_API_KEY \
-H "Authorization: Bearer YOUR_API_KEY"
Full API reference: quatarly.cloud/docs
·
Dashboard: api.quatarly.cloud/management
Credits & tokens
Not sure how to calculate your token value? Read the full breakdown.
Token value calculator guide
How to calculate and understand credit cost across models
Credit weight by model
claude-haiku-4-5 → 0.3× (most efficient)
claude-sonnet-4-5 → 1×
claude-sonnet-4-thinking → 1×
claude-opus-4-thinking → 2× (most capable)
gpt-4.1 → 1×
gemini-2.5-pro → 1×
Credits consumed = model weight × tokens used per request.
Need help?
DM the seller on G2G with your username and order ID. Responses within a few hours.
Message seller on G2G