Recurring free quota
Free quota is being introduced and is disabled by default. Availability and production limits have not been finalized. When the feature is enabled, it requires an account with a verified email address and an active Porten API key.
Select Free quota in the Playground and select or paste your key. Click Refresh free quota to see the remaining attempts, reset time and available models for that key. Each prompt in this view starts a new conversation. Responses do not use paid balance or promotional credit. The feature never automatically switches to the regular API when the quota runs out.
API
The free API's base URL is https://porten.ai/free/v1. The regular base URL,
https://porten.ai/v1, retains its normal pricing and policy.
curl --fail-with-body https://porten.ai/free/v1/quota \
-H "Authorization: Bearer $PORTEN_API_KEY"
curl --fail-with-body https://porten.ai/free/v1/models \
-H "Authorization: Bearer $PORTEN_API_KEY"
The quota response includes remaining, daily_limit, resets_at (the next UTC
day), max_text_bytes, max_messages, max_output_tokens and models. Remaining
account quota does not guarantee available capacity or remaining network or global
budget. The model list respects the key's model, region, node class and fleet restrictions.
Choose a model ID present in your current quota response. The example below uses Qwen; if the model is absent, do not send the request.
curl --fail-with-body https://porten.ai/free/v1/chat/completions \
-H "Authorization: Bearer $PORTEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen2.5-0.5b-web","messages":[{"role":"user","content":"Say hello in English."}],"max_tokens":128,"stream":false}'
The API supports JSON and SSE (stream: true), up to 256 output tokens, 1,024 UTF-8
bytes of combined message text, and seven alternating user/assistant messages ending
with a user message. System prompts, tool use, images and custom routing parameters
are not supported. The server limits execution to 30 seconds. Free requests do not
trigger model warming or automatically rented capacity.
When a request is blocked
- 401: the key is invalid or revoked.
- 403: verify your email and check the key's model permissions.
- 404: the feature is disabled.
- 429: an account, network, global or concurrency limit has been reached. Wait before retrying; remaining account quota does not rule out other limits.
- 503: no suitable capacity, configured budget or working quota storage is currently available.
A reserved attempt is consumed even if the request fails, times out or is interrupted. Check the quota again after the request; retries can consume additional attempts. Never automatically send the same request to a paid endpoint after a quota error. The count and time limits cap the work performed; they do not guarantee unlimited free capacity.
https://porten.ai/docs/free-quota.md — or grab the
whole site via llms.txt / llms-full.txt.