azure-openai-patterns

azure-openai-patterns is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 24 tokens per session (2,477 once invoked), scanned A, original, MIT.

A guide to building applications with the Azure OpenAI API, Microsoft's hosted interface for using OpenAI models. It covers request limits, function calling, error handling, and controlling token usage, where tokens measure model input and output.

In plain words
What is it for?
Use it to add rate limiting, connect model responses to application functions, handle API errors, and reduce token use in Azure OpenAI applications.
Why use it?
It helps prevent requests from being rejected, integrations from failing unpredictably, and model usage from becoming unnecessarily expensive.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add rate limiting, connect model responses to application functions, handle API errors, and reduce token use in Azure OpenAI applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabioc-aloha/Alex_Skill_Mall --skill azure-openai-patterns
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-openai-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-openai-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-openai-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.02477
Opus 5 $0.00012 $0.01239
Sonnet 5 $0.00005 $0.00495
Haiku 4.5 $0.00002 $0.00248

Measured 8d ago against content hash 9c31b45855ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

azure-openai-patterns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(apiUrl, {
plugins/cloud-infrastructure/azure-openai-patterns/skills/azure-openai-patterns/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure OpenAI Patterns

Rate limiting, function calling, error handling, and token optimization for Azure OpenAI API.

Staleness Watch: See EXTERNAL-API-REGISTRY.md for source URLs and recheck cadence

Version: 1.1.0 | Last validated: April 2026 (GPT-5.x, Responses API, Structured Outputs)


Rate Limiting: The Dual System

Azure OpenAI uses dual rate limits: Tokens Per Minute (TPM) and Requests Per Minute (RPM). The ratio is typically 6 RPM per 1000 TPM.

TPM vs RPM Relationship

Model Tier TPM RPM Notes
gpt-5.4-mini Default 2M 12K Latest flagship (mini)
gpt-5.2 Default 1M 6K Reasoning model
gpt-4.1 Default 1M 6K 1M context, structured outputs
gpt-4.1-mini Default 2M 12K Cost-efficient 1M context
o4-mini Default 200K 1.2K Reasoning (o-series)
o3 Default 200K 1.2K Advanced reasoning
gpt-4o Default 450K 2.7K Legacy — prefer gpt-4.1+
gpt-4o-mini Default 2M 12K Legacy — prefer gpt-4.1-mini

Migration: gpt-4o → gpt-4.1 (same API, larger context, better quality). gpt-4o-mini → gpt-4.1-mini or gpt-4.1-nano (cost savings).

How TPM is Calculated

TPM is estimated before processing based on:

  1. Prompt text character count (converted to estimated tokens)
  2. max_tokens parameter setting
  3. best_of parameter setting (if used)

The rate limit estimate is NOT the same as actual token consumption for billing.

Burst vs Sustained Limits

RPM is enforced over small time windows (1-10 seconds):

600 RPM deployment = max 10 requests per second
If you send 15 requests in 1 second → 429 error
Even though 15/min < 600/min

Responses API (New Standard)

GPT-5.x and newer models support the Responses API alongside Chat Completions. The Responses API is the recommended API for new development — it supports stateful conversations, built-in tools (web search, code interpreter, file search, computer use), and simpler multi-turn management.

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 321 lines · 24 tokens per session scan A 9c31b45855ed

Subscribe to this mod's changes

azure-openai-patterns is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 2,477 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

vendor-prompting

ANALYSIS SKILL — Audit-grade reference for Anthropic Claude and OpenAI GPT-5.6 prompting best practices. WHEN: "claude prompting", "gpt-5.6 prompting", "audit agent", "review prompt", "vendor best practices", "anthropic best practices", "openai prompting". DO NOT USE FOR: routine prompt edits where rules are already…

jonathan-vella/apex-accelerator · 94 tokens

ai-orchestration-langchain

LangChain.js patterns for building LLM applications — chat models, LCEL chains, prompt templates, structured output, agents, tools, RAG, streaming, and LangSmith tracing.

agents-inc/skills · 43 tokens

ai-observability-promptfoo

Testing and evaluation framework for LLM prompts and applications -- promptfooconfig.yaml, assertions, model-graded evals, red teaming, CI/CD integration, custom providers, and comparative evaluation.

agents-inc/skills · 46 tokens

ai-orchestration-vercel-ai-sdk

Vercel AI SDK patterns - providers, text generation, streaming, structured output, tool calling, chat UI hooks, embeddings, and RAG.

agents-inc/skills · 38 tokens

LLM

Implement large language model (LLM) chat completions using the z-ai-web-dev-sdk. Use this skill when the user needs to build conversational AI applications, chatbots, AI assistants, or any text generation features. Supports multi-turn conversations, system prompts, and context management.

jjyaoao/HelloAgents · 59 tokens

sap-cloud-sdk-ai

Integrates SAP Cloud SDK for AI into JavaScript/TypeScript and Java applications. Use when building applications with SAP AI Core, Generative AI Hub, or Orchestration Service. Covers chat completion, embedding, streaming, function calling, content filtering, data masking, document grounding, prompt registry, and…

secondsky/sap-skills · 98 tokens