{
  "openapi": "3.0.3",
  "info": {
    "title": "MuseSpark Public API",
    "version": "1.0.1",
    "description": "MuseSpark API reference for asynchronous tasks and OpenAI-, Anthropic-, and Gemini-compatible integrations. Choose an authorized model and follow its guide for supported inputs and features."
  },
  "servers": [
    {
      "url": "https://api.musespark.ai",
      "description": "Production gateway origin; target capability verification required before documentation release."
    }
  ],
  "tags": [
    {
      "name": "Tasks"
    },
    {
      "name": "Models"
    },
    {
      "name": "OpenAI"
    },
    {
      "name": "Anthropic"
    },
    {
      "name": "Gemini"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyHeader": []
    }
  ],
  "paths": {
    "/api/v1/openapi/task": {
      "post": {
        "operationId": "createTask",
        "summary": "Create an asynchronous task",
        "description": "Create an asynchronous task using an authorized item and its model-specific parameters. The singular and plural paths are supported aliases. Identifier precedence and prompt handling are defined in TaskRequest. A catalog entry does not guarantee admission: model access, account eligibility and applicable balance checks must pass.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "openapi_tools",
        "x-required-scope": "task:write",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. MuseSpark success envelope.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCreatedEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "default": {
            "description": "Other public gateway error. Inspect the HTTP status, code and message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Stable business request identity. Sets metadata.reference_id. Reuse only for identical intent. No fixed public retention guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskRequest"
              },
              "example": {
                "item_key": "YOUR_ITEM_KEY",
                "parameters": {
                  "prompt": "A paper city under soft morning light"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openapi/tasks": {
      "post": {
        "operationId": "createTasks",
        "summary": "Create an asynchronous task",
        "description": "Create an asynchronous task using an authorized item and its model-specific parameters. The singular and plural paths are supported aliases. Identifier precedence and prompt handling are defined in TaskRequest. A catalog entry does not guarantee admission: model access, account eligibility and applicable balance checks must pass.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "openapi_tools",
        "x-required-scope": "task:write",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. MuseSpark success envelope.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCreatedEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "default": {
            "description": "Other public gateway error. Inspect the HTTP status, code and message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Stable business request identity. Sets metadata.reference_id. Reuse only for identical intent. No fixed public retention guarantee."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskRequest"
              },
              "example": {
                "item_key": "YOUR_ITEM_KEY",
                "parameters": {
                  "prompt": "A paper city under soft morning light"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/openapi/task/status/{task_id}": {
      "get": {
        "operationId": "getTaskStatus",
        "summary": "Read task status",
        "description": "Retrieve a task owned by your account using its UUID. Public results expose output_urls and batch_results. Timestamps use Unix seconds; estimated_duration_ms uses milliseconds. Use output URLs exactly as returned, without replacing their hostnames.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "openapi_tools",
        "x-required-scope": "task:read",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. MuseSpark success envelope.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "default": {
            "description": "Other public gateway error. Inspect the HTTP status, code and message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/v1/openapi/tasks/status/{task_id}": {
      "get": {
        "operationId": "getTasksStatus",
        "summary": "Read task status",
        "description": "Retrieve a task owned by your account using its UUID. Public results expose output_urls and batch_results. Timestamps use Unix seconds; estimated_duration_ms uses milliseconds. Use output URLs exactly as returned, without replacing their hostnames.",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "openapi_tools",
        "x-required-scope": "task:read",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. MuseSpark success envelope.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "default": {
            "description": "Other public gateway error. Inspect the HTTP status, code and message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/v1/openapi/models": {
      "get": {
        "operationId": "listTaskModels",
        "summary": "List task models",
        "description": "The model array is at data.data in the outer success envelope. Model metadata is live and permission-filtered.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "openapi_tools",
        "x-required-scope": "task:read",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. MuseSpark success envelope.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskModelListEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "default": {
            "description": "Other public gateway error. Inspect the HTTP status, code and message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/chat/completions": {
      "post": {
        "operationId": "createChatCompletion",
        "summary": "Create a chat completion",
        "description": "Generate a chat completion from ordered conversation messages. Use stream=true for incremental events. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Protocol SSE frames; preserve event names and consume incrementally."
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenAIChatRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/responses": {
      "post": {
        "operationId": "createResponse",
        "summary": "Create a response",
        "description": "Create a response from input messages or text. Supported tools and optional fields depend on the selected model. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Protocol SSE frames; preserve event names and consume incrementally."
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenAIResponseRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/responses/compact": {
      "post": {
        "operationId": "compactResponse",
        "summary": "Compact a response",
        "description": "Compact response context for a model that supports this operation. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenAIResponseRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/embeddings": {
      "post": {
        "operationId": "createEmbedding",
        "summary": "Create embeddings",
        "description": "Create embeddings from input text using a compatible embedding model. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbeddingRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/rerank": {
      "post": {
        "operationId": "rerank",
        "summary": "Rerank documents",
        "description": "Rank documents by their relevance to a query using a compatible reranking model. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RerankRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/images/generations": {
      "post": {
        "operationId": "generateImage",
        "summary": "Generate images",
        "description": "Generate images using the OpenAI-compatible image request format. This operation returns its native response rather than a MuseSpark task envelope. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/audio/speech": {
      "post": {
        "operationId": "createSpeech",
        "summary": "Generate speech",
        "description": "Generate speech from text using a compatible audio model. Consume the returned audio in the selected response format. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpeechRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/audio/transcriptions": {
      "post": {
        "operationId": "transcribeAudio",
        "summary": "Transcribe audio",
        "description": "Transcribe an uploaded audio file. Send the file using multipart/form-data and select an authorized transcription model. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AudioUpload"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/audio/translations": {
      "post": {
        "operationId": "translateAudio",
        "summary": "Translate audio",
        "description": "Translate an uploaded audio file using a compatible translation model. Send the file using multipart/form-data. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AudioUpload"
              }
            }
          }
        }
      }
    },
    "/proxy/anthropic/v1/messages": {
      "post": {
        "operationId": "createMessage",
        "summary": "Create a message",
        "description": "Send conversation messages using the Anthropic format. Include anthropic-version: 2023-06-01 and a MuseSpark credential header. Responses use native message JSON or named streaming events; authentication and permission errors may use GatewayError. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "Anthropic"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Protocol SSE frames; preserve event names and consume incrementally."
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "anthropic-version",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "example": "2023-06-01"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnthropicRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/gemini/v1beta/models/{model}:generateContent": {
      "post": {
        "operationId": "generateContent",
        "summary": "generateContent",
        "description": "Generate a response from native Gemini contents and parts. Authenticate with a supported MuseSpark header; the key query parameter does not authenticate this endpoint. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeminiRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/gemini/v1beta/models/{model}:streamGenerateContent": {
      "post": {
        "operationId": "streamGenerateContent",
        "summary": "streamGenerateContent",
        "description": "Stream native Gemini content. Set alt=sse explicitly to receive server-sent events. Authenticate with a supported MuseSpark header; the key query parameter does not authenticate this endpoint. Check the authorized catalog and model capabilities before use. Account eligibility and model access still apply.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:invoke",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Protocol SSE frames; preserve event names and consume incrementally."
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          },
          {
            "name": "alt",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sse"
              ]
            },
            "description": "Request SSE event framing."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeminiRequest"
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/models": {
      "get": {
        "operationId": "openaiListModels",
        "summary": "List models",
        "description": "List models in the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "openaiListModelsHead",
        "summary": "List models headers",
        "description": "Check access to the model catalog. A successful HEAD response has no body.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      }
    },
    "/proxy/openai/v1/models/{model}": {
      "get": {
        "operationId": "openaiGetModel",
        "summary": "Read model",
        "description": "Retrieve this model from the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      },
      "head": {
        "operationId": "openaiGetModelHead",
        "summary": "Read model headers",
        "description": "Check access to this model. A successful HEAD response has no body.",
        "tags": [
          "OpenAI"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      }
    },
    "/proxy/anthropic/v1/models": {
      "get": {
        "operationId": "anthropicListModels",
        "summary": "List models",
        "description": "List models in the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "Anthropic"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "anthropicListModelsHead",
        "summary": "List models headers",
        "description": "Check access to the model catalog. A successful HEAD response has no body.",
        "tags": [
          "Anthropic"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      }
    },
    "/proxy/anthropic/v1/models/{model}": {
      "get": {
        "operationId": "anthropicGetModel",
        "summary": "Read model",
        "description": "Retrieve this model from the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "Anthropic"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      },
      "head": {
        "operationId": "anthropicGetModelHead",
        "summary": "Read model headers",
        "description": "Check access to this model. A successful HEAD response has no body.",
        "tags": [
          "Anthropic"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      }
    },
    "/proxy/gemini/v1beta/models": {
      "get": {
        "operationId": "geminiListModels",
        "summary": "List models",
        "description": "List models in the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "geminiListModelsHead",
        "summary": "List models headers",
        "description": "Check access to the model catalog. A successful HEAD response has no body.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        }
      }
    },
    "/proxy/gemini/v1beta/models/{model}": {
      "get": {
        "operationId": "geminiGetModel",
        "summary": "Read model",
        "description": "Retrieve this model from the catalog available to your API key. The response uses the selected protocol's native format. Listing a model does not establish support for every optional operation or feature.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NativeObject"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      },
      "head": {
        "operationId": "geminiGetModelHead",
        "summary": "Read model headers",
        "description": "Check access to this model. A successful HEAD response has no body.",
        "tags": [
          "Gemini"
        ],
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyHeader": []
          }
        ],
        "x-required-product": "llm_compat",
        "x-required-scope": "llm:model:list",
        "x-implementation-status": "source-confirmed; target deployment and model availability unverified",
        "responses": {
          "200": {
            "description": "Success. Protocol-native response.",
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or conflicting task-create idempotency identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing product/scope, denied model, or disabled capability.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Task/model not found or terminal task status expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Request exceeds effective configured body limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "API key rate limit or admission capacity exceeded; honor Retry-After when present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Downstream service unavailable or protocol failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service or authorization runtime not ready.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Downstream deadline exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "Request correlation identifier.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Optional retry delay in seconds. Not guaranteed for every error.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Execution errors may use the protocol-native error shape. Pre-dispatch gateway failures use GatewayError.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GatewayError"
                    },
                    {
                      "$ref": "#/components/schemas/NativeObject"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; restore account eligibility before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "409": {
            "description": "Public task or catalog state conflict; task-create fingerprint conflicts remain 400.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "422": {
            "description": "Invalid catalog publication identity when that publication contract applies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          },
          "499": {
            "description": "Client Closed Request when the caller cancels and the downstream call returns cancellation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Catalog model ID; percent-encode the identifier as appropriate."
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "MuseSpark API key. Tasks accept a case-insensitive Bearer prefix; compatibility extraction requires Bearer with this casing."
      },
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Alternative to BearerAuth. Nonempty trimmed X-API-Key takes precedence on both public surfaces."
      }
    },
    "schemas": {
      "TaskRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Optional; inferred from public item projection when omitted. A supplied type must match."
          },
          "item_key": {
            "type": "string",
            "description": "First choice identifier. Precedence: item_key > model_key > model > model_id.",
            "minLength": 1
          },
          "model_key": {
            "type": "string",
            "description": "Second choice identifier.",
            "minLength": 1
          },
          "model": {
            "type": "string",
            "description": "Third choice identifier.",
            "minLength": 1
          },
          "model_id": {
            "type": "string",
            "description": "Fourth choice identifier.",
            "minLength": 1
          },
          "prompt": {
            "type": "string",
            "description": "Copied into parameters.prompt only when that key is absent."
          },
          "parameters": {
            "type": "object",
            "additionalProperties": true,
            "description": "Model-specific parameters. Obtain the current schema from the model page."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true,
            "description": "Business metadata. reference_id is stripped and replaced by X-Idempotency-Key. Capacity controls are server-managed."
          }
        },
        "anyOf": [
          {
            "required": [
              "item_key"
            ]
          },
          {
            "required": [
              "model_key"
            ]
          },
          {
            "required": [
              "model"
            ]
          },
          {
            "required": [
              "model_id"
            ]
          }
        ]
      },
      "TaskCreated": {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "task_id",
          "status"
        ]
      },
      "TaskStatus": {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "finalizing",
              "completed",
              "failed",
              "cancelled"
            ]
          },
          "message": {
            "type": "string",
            "description": "Omitted when empty."
          },
          "error": {
            "type": "string",
            "description": "Omitted when empty."
          },
          "created_at": {
            "type": "integer",
            "format": "int64",
            "description": "Unix seconds. Omitted when zero."
          },
          "completed_at": {
            "type": "integer",
            "format": "int64",
            "description": "Unix seconds. Omitted when zero."
          },
          "expires_at": {
            "type": "integer",
            "format": "int64",
            "description": "Unix seconds. Terminal status expires 30 minutes after completed_at when present."
          },
          "estimated_duration_ms": {
            "type": "integer",
            "format": "int64",
            "description": "Milliseconds; always present, including zero."
          },
          "result": {
            "type": "object",
            "properties": {
              "output_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "batch_results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "required": [
          "task_id",
          "status",
          "estimated_duration_ms"
        ]
      },
      "TaskModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string",
            "enum": [
              "model"
            ]
          },
          "display_name": {
            "type": "string"
          },
          "task_type": {
            "type": "string"
          },
          "item_key": {
            "type": "string"
          },
          "model_key": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "created": {
            "type": "integer",
            "format": "int64"
          },
          "owned_by": {
            "type": "string",
            "enum": [
              "musespark"
            ]
          },
          "permission": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "required": [
          "id",
          "object",
          "display_name",
          "task_type",
          "item_key",
          "model_key",
          "model_id",
          "created",
          "owned_by",
          "permission"
        ]
      },
      "TaskModelList": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "list"
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskModel"
            }
          }
        },
        "required": [
          "object",
          "data"
        ]
      },
      "GatewayError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "request_id": {
                "type": "string"
              },
              "error_id": {
                "type": "string"
              },
              "error": {
                "type": "string"
              },
              "reason_code": {
                "type": "string"
              },
              "http_status": {
                "type": "integer"
              },
              "details": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "required": [
          "code",
          "msg"
        ]
      },
      "NativeObject": {
        "type": "object",
        "additionalProperties": true,
        "description": "Protocol-native JSON. Exact fields and optional features depend on the selected model and surface; not a {code,msg,data} envelope."
      },
      "OpenAIChatRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "description": "Use a model ID returned by the compatibility model catalog."
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "content": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  ]
                }
              },
              "required": [
                "role",
                "content"
              ]
            }
          },
          "stream": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "model",
          "messages"
        ]
      },
      "OpenAIResponseRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "input": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ]
          },
          "stream": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "model",
          "input"
        ]
      },
      "AnthropicRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 1
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "content": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  ]
                }
              },
              "required": [
                "role",
                "content"
              ]
            }
          },
          "stream": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "model",
          "max_tokens",
          "messages"
        ]
      },
      "GeminiRequest": {
        "type": "object",
        "properties": {
          "contents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "parts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              },
              "required": [
                "parts"
              ]
            }
          },
          "generationConfig": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "contents"
        ]
      },
      "EmbeddingRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "input": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "required": [
          "model",
          "input"
        ]
      },
      "RerankRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "top_n": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "model",
          "query",
          "documents"
        ]
      },
      "ImageRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "n": {
            "type": "integer",
            "minimum": 1
          },
          "size": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "prompt"
        ]
      },
      "SpeechRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "voice": {
            "type": "string"
          },
          "response_format": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "input",
          "voice"
        ]
      },
      "AudioUpload": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "file": {
            "type": "string",
            "format": "binary"
          },
          "language": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "response_format": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "file"
        ]
      },
      "TaskCreatedEnvelope": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              200
            ]
          },
          "msg": {
            "type": "string",
            "enum": [
              "success"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/TaskCreated"
          }
        },
        "required": [
          "code",
          "msg",
          "data"
        ]
      },
      "TaskStatusEnvelope": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              200
            ]
          },
          "msg": {
            "type": "string",
            "enum": [
              "success"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/TaskStatus"
          }
        },
        "required": [
          "code",
          "msg",
          "data"
        ]
      },
      "TaskModelListEnvelope": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              200
            ]
          },
          "msg": {
            "type": "string",
            "enum": [
              "success"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/TaskModelList"
          }
        },
        "required": [
          "code",
          "msg",
          "data"
        ]
      }
    }
  },
  "x-backend-commit": "51d62747ded80670bf787dce3ad2dc90be5e9b4c",
  "x-backend-tree": "43fcb767a6dad9a47eb88f0e8ebbd20766ccc113",
  "x-contract-version": "1.0.0",
  "x-capability-support": {
    "task": "v1",
    "openai": "v1 named surfaces only",
    "anthropic": "v1 messages and model catalog",
    "gemini": "v1beta generateContent, streamGenerateContent and model catalog",
    "disabled": [
      "OpenAI realtime"
    ],
    "not-confirmed": [
      "OpenAI legacy completions",
      "OpenAI images edits/variations",
      "OpenAI files/batches/fine-tuning/assistants",
      "Gemini countTokens/embedContent/batchEmbedContents",
      "Anthropic message batches/token counting"
    ],
    "internal-excluded": [
      "/api/v1/task/compat/{protocol} (JWT only)"
    ]
  }
}
