One endpoint. The right model for every task.
MUSCLE Flex sends each request from your coding agents and tools to the model that handles it best. New models join as they pass our tests, and your spend stays in view. You change one endpoint.
Your agent stays the same. The models behind it keep getting better.
The right model for the work.
Each task goes to a model that fits it, not the same model for everything.
Send a supported request to muscle/auto. Flex checks what the task needs, then picks a model for speed, reasoning, tools and cost.
Stay on the latest models.
New models join once they pass our tests.
We test new models on real agent work before Flex uses them. Your team can skip the release watching, the repeat benchmarks and the provider switching.
Control cost without slowing agents.
Routine work stays light. Demanding steps get stronger models.
Routine work can use efficient models and demanding steps can use stronger ones. Streams, tool calls and continuations stay in your agent, and your application keeps its tools and approvals.
Your tools, your approvals and your repository stay with you.
How Flex works with your agentHow Flex chooses a model.
Keep your agent. Change one endpoint.
Point your client at Flex.
Set the base URL of a supported OpenAI or Anthropic SDK, or a tested coding agent, to Flex. Add your Flex key. Nothing else in your agent changes.
Ask for muscle/auto.
Set the model to muscle/auto and send the request you already send. Streams, tool calls and continuations keep the shape your SDK expects.
Flex picks the model.
Flex checks the request, picks a model for the task, returns the response and records usage against your balance. Every response carries a request ID for support.
import OpenAI from "openai"; const client = new OpenAI({ baseURL: `${process.env.FLEX_BASE_URL}/v1`, apiKey: process.env.MUSCLE_FLEX_API_KEY, }); const res = await client.chat.completions.create({ model: "muscle/auto", messages: [ { role: "user", content: "Summarize this test failure." }, ], });
import Anthropic from "@anthropic-ai/sdk"; // Host only: the SDK adds /v1 itself const client = new Anthropic({ baseURL: process.env.FLEX_BASE_URL, apiKey: process.env.MUSCLE_FLEX_API_KEY, }); const msg = await client.messages.create({ model: "muscle/auto", max_tokens: 1024, messages: [ { role: "user", content: "Summarize this test failure." }, ], });
# Check the key and balance. This call is never charged. curl "$FLEX_BASE_URL/v1/account" \ -H "Authorization: Bearer $MUSCLE_FLEX_API_KEY"
Two variables
FLEX_BASE_URL- Flex endpoint
MUSCLE_FLEX_API_KEY- Your key
- Model
muscle/auto
Full quickstart
Endpoints, profiles and checks.
A clearer way to control spend.
Spend less time managing providers, and stop paying for maximum capability on every task. The beta uses one prepaid balance, with every charge visible in the portal.
One integration.
One Flex key and one endpoint. We keep the list of models current for you.
Pay for the fit.
Flex uses efficient models when the task allows and stronger ones when it needs them.
Prepaid and visible.
Fund a balance first. Flex declines new work when credits run out, and the portal shows where every credit went.
See beta pricing
Part of the MUSCLE family.
MUSCLE Flex
One endpoint. The right model for every task, automatically.
MUSCLE Core
One clean app for your work, tasks and personal life.
MUSCLE OS
A fresh desktop for the computers you already own.
MUSCLE Code
A desktop workspace for AI-assisted development.