If your tool asks for a base URL and an API key, it works with Flux. Three values and you are done.
Find the setting called base URL, API base, endpoint or OpenAI-compatible provider, and enter these three values.
Base URL: https://api.fluxrouter.ai/v1
API key: sk-YOUR-FLUX-KEY
Model: flux-autoIf the tool reads environment variables instead, these two are the most common.
export OPENAI_BASE_URL="https://api.fluxrouter.ai/v1"
export OPENAI_API_KEY="sk-YOUR-FLUX-KEY"Set the LLM variables. Keep the openai/ prefix on the model so OpenHands uses its OpenAI-compatible driver.
export LLM_BASE_URL="https://api.fluxrouter.ai/v1"
export LLM_API_KEY="sk-YOUR-FLUX-KEY"
export LLM_MODEL="openai/flux-auto"Simon Willison’s llm reads custom endpoints from extra-openai-models.yaml. Add an entry, then store your key with llm keys set flux. extra-openai-models.yaml
- model_id: flux-auto
api_base: https://api.fluxrouter.ai/v1
api_key_name: fluxAdd a custom provider that points at Flux.
baseUrl: https://api.fluxrouter.ai/v1
apiKey: sk-YOUR-FLUX-KEYAdd an apis entry to your mods config.
apis:
flux:
base-url: https://api.fluxrouter.ai/v1
models:
flux-auto:
aliases: ["flux"]Send "Reply with the word ready." from your tool. A reply means your key, base URL and model 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.