If your tool speaks Anthropic Messages, give it the Flux Anthropic base URL and your key. Every model answers in the same shape.
Most Anthropic tools read these variables. Set them, then start your tool from the same shell.
export ANTHROPIC_BASE_URL="https://api.fluxrouter.ai/anthropic"
export ANTHROPIC_API_KEY="sk-YOUR-FLUX-KEY"
export ANTHROPIC_MODEL="flux-auto"If the tool has settings instead, enter the same values. The base URL has no /v1 on the end: the tool adds /v1/messages itself.
Base URL: https://api.fluxrouter.ai/anthropic
API key: sk-YOUR-FLUX-KEY
Model: flux-autoPass the base URL and your key when you make the client.
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.fluxrouter.ai/anthropic",
api_key="sk-YOUR-FLUX-KEY",
)
msg = client.messages.create(
model="flux-auto",
max_tokens=1024,
messages=[{"role": "user", "content": "hi"}],
)Node spells it baseURL; Python spells it base_url.
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
baseURL: 'https://api.fluxrouter.ai/anthropic',
apiKey: 'sk-YOUR-FLUX-KEY',
});Send "Reply with the word ready." from your tool. A reply means the base URL and key are right.
Open Activity in your Flux account to see the call counted against the model that answered and the key that made it.
| Ability | Today | How it reaches your tool |
|---|---|---|
| Every major model | Live | Automatic, through the base URL. |
| Read a web page | Live | Add the Flux tools server (below). |
| Search the web | Rolling out | Switched on and being checked. Not promised yet. |
| Make images | Live | Add the Flux tools server (below). |
| Speak | Rolling out | Switched on and being checked. Not promised yet. |
| Transcribe audio | Not in agents yet | Live on the API for your own code. No agent reaches it yet. |
| Act in your apps | Shipping | Not live yet. It is on the way. |
| Memory | Shipping | Not live yet. It is on the way. |
| Second opinion | Rolling out | Switched on and being checked. Not promised yet. |
Statuses come from the same record as the abilities on the homepage, so they change everywhere at once.
Page reading and image making reach a tool through the Flux tools server, an MCP server on the same key. Web search joins it once it is live.
If your tool can add a remote MCP server with a header, add the Flux tools server. Most tools use this shape; check your tool’s docs for the file it reads.
{
"mcpServers": {
"flux-tools": {
"url": "https://api.fluxrouter.ai/mcp-tools/",
"headers": {
"Authorization": "Bearer sk-YOUR-FLUX-KEY"
}
}
}
}More fixes: my tool won’t connect.