About
Base URL
A reference for FIM Gate base URLs across APIs, covering the OpenAI-compatible, Claude, and Gemini native protocol entry points.
FIM Gate has a single service entry point:
https://api.gate.fim.aiThere is currently one global entry point with no regional nodes. All three protocols share this domain — the only differences are the endpoint paths and the authentication headers.
Quick reference
| Protocol | Base URL | Full endpoint example | Auth header |
|---|---|---|---|
| OpenAI-compatible | https://api.gate.fim.ai/v1 | https://api.gate.fim.ai/v1/chat/completions | Authorization: Bearer |
| Native Claude Messages API | https://api.gate.fim.ai | https://api.gate.fim.ai/v1/messages | x-api-key |
| Native Gemini GenerateContent API | https://api.gate.fim.ai | https://api.gate.fim.ai/v1beta/models/{model}:generateContent | x-goog-api-key |
Common configurations
- Official OpenAI SDK: set
base_urltohttps://api.gate.fim.ai/v1. - Official Anthropic SDK and Claude-protocol tools (such as Claude Code): set
base_urltohttps://api.gate.fim.ai; the SDK automatically builds the full endpointhttps://api.gate.fim.ai/v1/messages. - Google GenAI SDK and Gemini-protocol tools (such as Gemini CLI): set
base_urltohttps://api.gate.fim.ai; the full endpoint looks likehttps://api.gate.fim.ai/v1beta/models/{model}:generateContent. - Third-party clients: different apps join the base URL differently. If one form doesn't work, try
https://api.gate.fim.ai,https://api.gate.fim.ai/v1, andhttps://api.gate.fim.ai/v1/chat/completionsin turn.
FIM Gate Documentation
FIM Gate is an LLM API aggregation gateway — call models from multiple providers with a single API key, compatible with the OpenAI, Claude, and Gemini APIs.
Billing
FIM Gate bills by token usage with per-model rates; some multimedia APIs are billed per call. Live prices for all models are listed on the pricing page.