Microsoft Foundry hosted agents vs Modal

Microsoft Foundry hosted agents costs $0.0994 per vCPU-hour and Modal costs $0.070956 per vCPU-hour. Microsoft Foundry hosted agents runs microVMs. Modal runs gVisor, offers GPUs and limits a session to 24 hours.

Updated

Microsoft Foundry hosted agents

Isolation
MicroVM
Free tier
Not listed
Max session
Not listed

Modal

Isolation
gVisor
Free tier
$30 credit every month
Max session
24 hours

What is different

5 fields differ. The rest are the same or not listed.

Microsoft Foundry hosted agents
Modal
vCPU, per hour
Microsoft Foundry hosted agents: $0.0994
Modal: $0.070956
RAM, per GiB-hour
Microsoft Foundry hosted agents: $0.0118
Modal: $0.024012
Isolation
Microsoft Foundry hosted agents: MicroVM
Modal: gVisor
SDKs
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript
Modal: Python, JavaScript / TypeScript, Go
Integrations
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK
Modal: Claude Agent SDK, Claude Code, LangChain

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Microsoft Foundry hosted agents: $0.0994
Modal: $0.070956
RAM, per GiB-hour
Microsoft Foundry hosted agents: $0.0118
Modal: $0.024012
Storage
Microsoft Foundry hosted agents: Not listed
Modal: Not listed
Free tier
Microsoft Foundry hosted agents: Not listed
Modal: $30 credit every month
Paid plan from
Microsoft Foundry hosted agents: Pay as you go
Modal: Pay as you go
Billing
Microsoft Foundry hosted agents: Per second
Modal: Per second

Limits

Max session
Microsoft Foundry hosted agents: Not listed
Modal: 24 hours
Idle stop
Microsoft Foundry hosted agents: After 15 minutes
Modal: Not listed
Largest sandbox
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Modal: Not listed
Concurrent sandboxes
Microsoft Foundry hosted agents: Up to 2,000
Modal: Not listed

Platform

Isolation
Microsoft Foundry hosted agents: MicroVM
Modal: gVisor
GPU
Microsoft Foundry hosted agents: Not listed
Modal:
Snapshots
Microsoft Foundry hosted agents: Not listed
Modal:
Pause and resume
Microsoft Foundry hosted agents:
Modal: Not listed

Developer

SDKs
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript
Modal: Python, JavaScript / TypeScript, Go
Integrations
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK
Modal: Claude Agent SDK, Claude Code, LangChain

Trust

License
Microsoft Foundry hosted agents: Not listed
Modal: Not listed
BYOC
Microsoft Foundry hosted agents: Not listed
Modal: Not listed

Hourly cost

One sandbox running for one hour

Microsoft Foundry hosted agents
Modal
1 vCPU · 2 GiB
Microsoft Foundry hosted agents: $0.123
Modal: $0.119
2 vCPU · 4 GiB
Microsoft Foundry hosted agents: $0.246
Modal: $0.238
4 vCPU · 8 GiB
Microsoft Foundry hosted agents: $0.492
Modal: $0.476

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Microsoft Foundry hosted agents fits when

  • You want each sandbox in its own microVM.
  • You use MCP or the OpenAI Agents SDK.
  • You need pause and resume.

Modal fits when

  • You need GPUs.
  • You use Claude Code.
  • You want the lower list price: $0.238 against $0.246 an hour for 2 vCPU and 4 GiB.
  • You need snapshots.

More comparisons

See all comparisons

Related