Unified inference gateway · v1
One endpoint.
Many minds.
Build with chat, reasoning, vision, image, audio, and Anthropic-compatible interfaces through a single g4f API.
Interfaces
three ways inChat completions
OpenAI-compatible messages with streaming, tools, vision, and model selection.
POST /v1/chat/completionsResponses
A modern response interface for multi-turn reasoning and richer output types.
POST /v1/responsesMessages
Anthropic-style requests for teams moving between compatible providers.
POST /v1/messagesMedia generation
Generate images and other supported media from the same API surface.
POST /v1/media/generateModel catalog
Inspect the models and provider options available on this server right now.
GET /v1/modelsLive schema
Try requests in your browser and inspect the generated OpenAPI contract.
GET /docsStart here
curl · JSON · streamablecurl -X POST /v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'