Connection
Foundry base endpoint:
https://resource .services.ai.azure.com or
https://resource .openai.azure.com
MAI-Code-1.1-Flash calls the Foundry resource route /mai/v1/chat/completions. The deployment name is sent as model.
vpn_key
Help me find my Foundry endpoint and API key
Chat Completions
Responses
API
Stream
tune
Advanced
expand_more
Model controls
none low medium high xhigh max
Reasoning Effort
Encrypted reasoning continuity is documented for MAI-Thinking Chat Completions. This control stays Off and unavailable for MAI-Code and MAI Responses.
The catalog lists a 256,000-token context window and at most
64,000 completion tokens. Input, reasoning, and output share the available context.
Generated code is not executed automatically.