Back to model shop
Microsoft
Rendered from D1 model snapshot · D1 read 63msCache check: checking

microsoft/mai-code-1-flash

MAI-Code-1-Flash

Microsoft coding model built for fast, efficient assistance in everyday developer workflows

This model's cache

This model page returns the exact headers below. The page and /api/models/microsoft--mai-code-1-flash share the model:microsoft--mai-code-1-flash tag, so invalidation stays scoped to this model.

Cache key/models/microsoft--mai-code-1-flash
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:microsoft--mai-code-1-flash

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:microsoft--mai-code-1-flash',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:microsoft--mai-code-1-flash'] })

Use this when one model changes and you do not want to evict the whole catalog.

MaiReasoningTool callingStructured outputTemperature control
Released
Jun 2, 2026
Last updated
Jun 8, 2026
Context window
256K tokens
Max output
128K tokens
Open weights
No
Family
Mai

Starts at

Quote

per 1M input tokens

Output

Quote

Sellers

0

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText
OutputText
Provider shelf
Where to get MAI-Code-1-Flash

Sorted by lowest input price

Models.dev has metadata for this model, but this MVP snapshot did not find a matching provider offer.