Migrate
Move to Flux from the OpenAI API, the Anthropic API or OpenRouter. Change the base URL, the key and the model; the rest of your code stays the same.
Flux speaks the OpenAI and Anthropic APIs, so moving to it is a swap of three values: the base URL, the key and the model. Your SDK, your prompts and your request shape stay the same.
Need a key first? See Get your key. Moving an agent rather than code? See Connect your agent.