For tools with a custom provider block, and for your own code over HTTP. Two wire formats, one key.
Pick the wire format your tool or code speaks. Each has its own base URL.
OpenAI-compatible: https://api.fluxrouter.ai/v1
chat: POST /chat/completions
responses: POST /responses
models: GET /models
Anthropic-compatible: https://api.fluxrouter.ai/anthropic
messages: POST /v1/messagesSend your key on every request. The Anthropic path also accepts x-api-key.
Authorization: Bearer sk-YOUR-FLUX-KEY
x-api-key: sk-YOUR-FLUX-KEY (Anthropic path only)Set the model to flux-auto and Flux picks the model for each request, or name a lane or a model to pin it.
This is the request your code sends.
POST https://api.fluxrouter.ai/v1/chat/completions
Authorization: Bearer sk-YOUR-FLUX-KEY
Content-Type: application/json
{"model": "flux-auto", "messages": [{"role": "user", "content": "Reply with the word ready."}]}Send the request above. A JSON reply with a message means your key works and Flux is routing.
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.