g4f / api
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 in

Start here

curl · JSON · streamable
curl -X POST /v1/chat/completions \
    -H 'Content-Type: application/json' \
    -d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'