An OpenAI-compatible API. Just change the base URL.

Point any OpenAI client at https://porten.ai/v1, use your key as the bearer token, and pay per token from a prepaid balance — no subscriptions, no minimums.

Read the API docs →

first request
curl https://porten.ai/v1/chat/completions \
  -H "Authorization: Bearer $PORTEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "<your-model>", "messages": [{"role":"user","content":"Hello"}]}'

Works with the OpenAI SDK, Vercel AI SDK, LangChain, LiteLLM, and anything OpenAI-compatible. If it speaks OpenAI, it speaks Porten.

Get a key, top up, ship.