The AskAI.free API
One key, every chat model on the site: ChatGPT, Claude and DeepSeek behind a single OpenAI-compatible endpoint. Calls spend the token allowance already included in your plan, so there is no second bill, no separate credit balance and nothing extra to top up.
Keys go to paying Pro and Max customers only. You can start with a 7-day free trial, but the trial itself does not include API access - the key is issued the day your first payment clears.
Who can get a key
- You are on a Pro or Max plan.
- Your first payment has cleared. Trial accounts are not charged, so a trial cannot issue a key - it unlocks the day your trial converts.
- Your email is verified and the account is in good standing.
These checks run on every API call, not just when the key is made. If a subscription lapses or is cancelled, the key stops working on its own.
Quickstart
The endpoint speaks the same shape as the OpenAI chat completions API, so most existing clients work by changing two lines: the base URL and the key.
curl https://askai.free/v1/chat/completions \
-H "Authorization: Bearer sk_askai_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-5",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Summarise this quarter in one sentence."}
],
"max_tokens": 500
}'
What comes back
{
"id": "chatcmpl-9f2c1ab4e7d3",
"object": "chat.completion",
"created": 1755820800,
"model": "claude-opus-5",
"choices": [
{ "index": 0, "message": { "role": "assistant", "content": "..." }, "finish_reason": "stop" }
],
"usage": {
"prompt_tokens": 42,
"completion_tokens": 118,
"total_tokens": 160,
"askai_tokens_charged": 6400,
"askai_tokens_remaining": 24993600
}
}
askai_tokens_charged is what came off your monthly allowance:
the provider's token count multiplied by that model's rate (see the table below).
askai_tokens_remaining is what is left this cycle.
Models
Pass the id as model. The
multiplier is how many allowance tokens one provider token costs - the same rate the website
charges, so a chat on the site and the same call through the API cost exactly the same.
| Model id | Name | Provider | Token rate |
|---|---|---|---|
| chatgpt-5-5 | ChatGPT 5.5 | OpenAI | 15x |
| chatgpt-5 | ChatGPT 5 | OpenAI | 15.0x |
| chatgpt-5-6-sol | ChatGPT 5.6 Sol | OpenAI | 20x |
| chatgpt-5-6-terra | ChatGPT 5.6 Terra | OpenAI | 12x |
| chatgpt-5-6-luna | ChatGPT 5.6 Luna | OpenAI | 4x |
| chatgpt-4o | ChatGPT 4o | OpenAI | 17.0x |
| chatgpt-4-1 | ChatGPT 4.1 | OpenAI | 3.0x |
| claude-opus-5 | Claude Opus 5 | Anthropic | 40x |
| claude-sonnet-5 | Claude Sonnet 5 | Anthropic | 30x |
| claude-opus-4 | Claude Opus 4.7 | Anthropic | 40.0x |
| claude-sonnet-4-6 | Claude Sonnet 4.6 | Anthropic | 30.0x |
| claude-sonnet-4 | Claude Sonnet 4 | Anthropic | 30.0x |
| claude-haiku-4-5 | Claude Haiku 4.5 | Anthropic | 8.0x |
| claude-sonnet-3-7 | Claude Sonnet 3.7 | Anthropic | 30.0x |
| claude-sonnet-3-5 | Claude Sonnet 3.5 | Anthropic | 30.0x |
| deepseek-r1 | DeepSeek V4 Flash | DeepSeek | 1.0x |
GET /v1/models returns the same list live, with an
available flag per model for your plan.
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/chat/completions | Send a conversation, get a completion. |
| GET | /v1/models | List the models your plan can call. |
| GET | /v1/usage | Tokens remaining, monthly allowance, rate limit. |
Limits
- Rate: 60 per minute; 2000 per hour, counted per key.
- Input: up to 20,000 tokens per request on Pro, 80,000 on Max.
- Output: up to 4,000 tokens on Pro, 8,000 on Max.
max_tokensis clamped to that ceiling rather than rejected. - Streaming is not supported yet. Send
"stream": falseor omit it.
Running out of tokens
- Calls come out of the same monthly allowance as the website. There is no separate API balance, and nothing can be topped up mid-cycle.
- If your remaining balance cannot pay for the answer you asked for,
max_tokensis quietly reduced to what it can cover, so a request never spends more than you have. - At zero tokens,
/v1/chat/completionsreturns429 insufficient_tokensand no model is called. The allowance refills when your plan renews. /v1/usageand/v1/modelskeep answering at zero - they cost nothing, and your code needs them to see why it was cut off.
Errors
Errors use the standard shape, so existing client libraries surface them normally.
{ "error": { "message": "...", "type": "permission_error", "code": "trial" } }
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No Authorization header. |
| 401 | invalid_api_key | Key is wrong or was revoked. |
| 403 | trial | Account has not been charged yet. |
| 403 | not_pro | Plan is not Pro or Max. |
| 404 | model_not_found | Unknown model id. |
| 413 | context_length_exceeded | Input longer than your plan allows. |
| 429 | insufficient_tokens | Monthly allowance is used up. |
| 429 | ratelimit | Too many requests for this key. |
| 503 | model_unavailable | Upstream provider is down. |
Keeping your key safe
- The key is shown once, at creation. We store only a SHA-256 hash, so nobody - including us - can read it back.
- Keep it server-side. A key in browser JavaScript or a mobile app is a key anyone can copy and spend your allowance with.
- Lost it, or think it leaked? Revoke it on your account page and create a new one. Revocation takes effect on the next request.
- You can hold up to 5 active keys, so you can rotate without downtime.
Start with a 7-day free trial
Every premium model, image and video tool on the site, with nothing charged today. API keys are issued to paying Pro and Max accounts once the first payment clears - the trial itself does not include API access.
- Unlimited use
- Premium models
- No ads
- 7-day free trial
- Cancel anytime