Documentation · Introduction

Getting started

Introduction

flua is one API for language models from Anthropic, OpenAI, Google, xAI, DeepSeek and other labs. It is compatible with the OpenAI and Anthropic APIs, so existing code connects by swapping the address and the key.

Base URL#

Every request goes to a single address. Give the OpenAI SDK the full URL and the Anthropic SDK the URL without /v1:

base_url
# OpenAI SDK, LangChain, Cursor, Cline…
https://api.flua.ink/v1

# Anthropic SDK, Claude Code
https://api.flua.ink

API formats#

flua accepts requests in the OpenAI and Anthropic formats. The model is picked with the model parameter — the request body is the same for every model.

EndpointFormatModels
POST/v1/chat/completionsOpenAI Chat CompletionsAll text models, Gemini images
POST/v1/responsesOpenAI ResponsesGPT models
POST/v1/messagesAnthropic MessagesClaude models
POST/v1/images/generationsOpenAI ImagesGPT Image, Grok Imagine
GET/v1/modelsOpenAI ModelsModel list

Where to next#