{"record":{"id":"12df82b29a3ca2ea","repo":"BerriAI/litellm","slug":"model-model-is-not-supported-for-azure-ai-image","errorCode":null,"errorMessage":"Model {model} is not supported for Azure AI image editing.","messagePattern":"Model (.+?) is not supported for Azure AI image editing\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/azure_ai/image_edit/__init__.py","lineNumber":42,"sourceCode":"    Get the appropriate image edit config for an Azure AI model.\n\n    - MAI models use /mai/v1/images/edits with multipart form data and size\n    - FLUX 2 models use JSON with base64 image\n    - FLUX 1 models use multipart/form-data\n    \"\"\"\n    if AzureFoundryMAIImageGenerationConfig.is_mai_model(model):\n        return AzureFoundryMAIImageEditConfig()\n\n    # Check if it's a FLUX 2 model\n    if AzureFoundryFluxImageGenerationConfig.is_flux2_model(model):\n        return AzureFoundryFlux2ImageEditConfig()\n\n    # Default to FLUX 1 config for other FLUX models\n    model_normalized: Final = model.lower().replace(\"-\", \"\").replace(\"_\", \"\")\n    if model_normalized == \"\" or \"flux\" in model_normalized:\n        return AzureFoundryFluxImageEditConfig()\n\n    raise ValueError(f\"Model {model} is not supported for Azure AI image editing.\")\n","sourceCodeStart":24,"sourceCodeEnd":43,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/azure_ai/image_edit/__init__.py#L24-L43","documentation":"Error \"Model {model} is not supported for Azure AI image editing.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure_ai/image_edit/__init__.py:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a model supported for Azure AI image editing (e.g. FLUX or MAI image models)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}