Getting started
Quickstart: your first Claude request in five minutes
Create a SubToAPI account, connect Claude once, create an application API key and send your first request to https://api.subtoapi.app/v1/messages — with curl, TypeScript, Python or PHP.
Updated
SubToAPI puts a clean HTTPS API in front of your Claude access. Your apps talk to https://api.subtoapi.app with a SubToAPI application key; the dashboard handles the connection, keys, usage metadata and your team. This page gets you from zero to a real answer.
1. Create an account and connect Claude
- Create a free account — the trial runs 14 days, no credit card.
- Open Connection in the dashboard and follow the guided steps. The connection lives server-side; your browser and your apps never see provider credentials.
- Wait for the status pill to show Connected. The dashboard keeps the connection alive for you.
2. Create an application API key
Go to Integrate → API keys, give the key a name (one key per app is a good habit) and copy it once — it is shown exactly one time. Keys look like sub_live_… and are stored only as hashes.
3. Send a request
Every call is plain JSON over HTTPS with a Bearer header. Pick a model alias — fast, balanced or best — and send your messages.
4. Read the response
The answer is normalized: an array of content blocks plus token counts, latency, the resolved model and a request id you can quote to support.
That's it
You are calling Claude through your own API. Next: multi-turn conversations, streaming and tool use.
Frequently asked questions
- Do I need an SDK?
- No. Anything that can send an HTTPS POST with a JSON body works — curl, fetch, requests, Guzzle, serverless functions, cron jobs.
- Which model should I start with?
balancedis the default and a good first choice. Usefastfor lightweight tasks andbestfor hard reasoning.- Does the trial include the API?
- Yes. The 14-day trial includes the dashboard, API keys and the public API with trial rate limits.