Skip to main content

Primex API

Every major AI model behind one prx- key. Primex is a metered AI gateway: one account, one API key, pay-as-you-go credits. Point your existing OpenAI or Anthropic tooling at Primex and keep working — no per-provider accounts, no monthly minimums.

Why Primex

  • One key, every model — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Kimi, FLUX, Sora and more, all through a single credential.
  • Drop-in compatible — an OpenAI-compatible API and an Anthropic-compatible API. Change the base URL and key; your SDK stays the same.
  • Works with your tools — Cursor, Windsurf, Codex CLI, Claude Code, Cline, Continue, and the raw OpenAI / Anthropic SDKs.
  • Multi-modal — text, images, video, speech-to-text, text-to-speech, embeddings, OCR and document analysis.
  • Pay only for what you use — post-paid metering per token / image / second / page. A failed request costs nothing — credits move only on a successful response.

Base URLs

FormatBase URLUsed by
OpenAI-compatiblehttps://gateway.primex.work/v1OpenAI SDKs, Cursor, Windsurf, Codex
Anthropic-compatiblehttps://gateway.primex.workClaude Code, Cline, Anthropic SDKs
note

The Anthropic base URL has no /v1 suffix — the Anthropic SDK and Claude Code append /v1/messages themselves. The OpenAI base URL includes /v1, and the SDK appends /chat/completions.

Your first request

curl https://gateway.primex.work/v1/chat/completions \
-H "Authorization: Bearer prx-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hello from Primex!"}]
}'

Ready to go? Start with Getting Started.