{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-create-llmprovider-request-schema.json",
  "title": "CreateLLMProviderRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-llm-providers-api-openapi.yml#/components/schemas/CreateLLMProviderRequest",
  "type": "object",
  "required": [
    "name",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique provider name"
    },
    "type": {
      "type": "string",
      "enum": [
        "openai",
        "azure-openai",
        "anthropic",
        "bedrock",
        "ollama",
        "gemini",
        "custom"
      ]
    },
    "api_key": {
      "type": "string",
      "description": "API key (mutually exclusive with api_key_secret_arn)"
    },
    "api_key_secret_arn": {
      "type": "string",
      "description": "AWS Secrets Manager ARN for API key"
    },
    "endpoint": {
      "type": "string",
      "description": "API endpoint URL"
    },
    "model": {
      "type": "string",
      "description": "Default model name"
    },
    "region": {
      "type": "string",
      "description": "AWS region (for Bedrock)"
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "priority": {
      "type": "integer",
      "default": 100
    },
    "weight": {
      "type": "integer",
      "default": 100
    },
    "rate_limit": {
      "type": "integer",
      "description": "Max requests per second"
    },
    "timeout_seconds": {
      "type": "integer",
      "default": 30
    },
    "settings": {
      "type": "object",
      "additionalProperties": true
    }
  }
}