MUSCLE Flex

How it works

How it works

One API. The right model for each task.

Flex checks what each request needs and your available credits, then sends it to a model that can handle it. The reply comes back in the shape your SDK expects, with a request ID for support.

Illustrative

One request, illustrated

Request
POST /v1/responses
Model id
muscle/auto
Request needs
Checked
Credits
Available
Model
Chosen for the task
Tool call
Sent to your app
Continuation
Preserved
Usage
Charged
Request ID
req_••••7K2Q

MUSCLE Flex matches each coding-agent task to a model that can do it well. Your integration stays the same while the models keep improving.

Different tasks, different strengths

A quick explanation, a tool-heavy search across a repository and a multi-file repair reward different model strengths. A production agent may also stream, call tools, continue for many turns and cross several cost boundaries in one session.

So Flex looks at the whole task and workflow, not at a one-line benchmark prompt. The question is practical: which models can do this request properly, and which of those is the sensible spend?

We check before we choose

Before Flex compares models, it removes the ones that cannot meet what the request needs:

  • the tool shape the request uses
  • how the response streams
  • how much context the work needs
  • your account's policy
  • the balance available to fund it

Only then does Flex compare the models that remain on quality and cost. A model that can't do the job is never an option, however cheap or fast it is.

Your application keeps the tools

Flex returns function calls in the supported API shape. Your application decides whether to run them, runs them in its own environment and sends the results back.

Routing the model call gives Flex no shell access and no hold on your repository. Approvals, sandboxes and permissions stay where you put them.

Prepaid, so spend stays in view

Beta accounts fund a balance before use. Flex checks that the balance can cover a request before it starts, then charges the measured usage afterward. If the balance is too low, new work is declined instead of running on credit. A charge reported after a request finishes can take a balance below zero, and new paid requests stay declined until you add credits.

The portal shows the remaining balance and recent activity, so spend is something you read, not something you discover. How beta billing works.

Always on the latest models

Flex doesn't send your work to a model because it is new or popular. We test new models on real agent work first: coding tasks, tool calls, long sessions and streaming. When one proves itself, Flex starts using it where it is strongest. Your integration doesn't change.

Clear limits

Flex works with selected OpenAI-style and Anthropic-style workflows. It doesn't cover every endpoint, field, hosted tool or media type.

The compatibility page lists what we have tested with each coding agent and what the beta leaves out. See compatibility.

A model that can't do the job is never an option, however cheap or fast it is.

Beta, by invitationRequest access
Next

Bring us the agent workflow.

How it works | MUSCLE Flex