LinkexLinkex Docs
Using the API

Request formats

OpenAI, Anthropic Messages, and Gemini formats — one key, three dialects.

The same Linkex key authenticates three request dialects. Use whichever your client already speaks; billing and logging are identical.

curl https://linkex.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 256
  }'

Everything in the OpenAI dialect works: tools, response_format, vision content parts, stream_options, etc. This is the recommended default.

You can call any model through any dialect — e.g. Claude via the OpenAI format. Linkex converts request/response shapes at the gateway; pointer-precise parameters (explicit zeros, penalties, etc.) are preserved in conversion.

Which format should I pick?

  • Existing codebase or framework → keep whatever it already uses.
  • New project → OpenAI format: widest tool support and the most battle-tested conversion path.
  • Claude Code / Anthropic SDK users → Anthropic format with the base-URL override.

On this page