{
  "openapi": "3.1.0",
  "info": {
    "title": "Prism API / Sub2API 558686",
    "version": "2026-06-24",
    "description": "OpenAI-compatible AI API gateway for Prism API / 558686.xyz. Independent gateway; not an official upstream model provider. Service terms state Mainland China is not supported."
  },
  "servers": [
    {
      "url": "https://sub2api.558686.xyz",
      "description": "Production API origin"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/models": {
      "get": {
        "summary": "List available models",
        "description": "Bearer-authenticated model discovery and liveness endpoint.",
        "operationId": "listModels",
        "responses": {
          "200": {
            "description": "Model list returned for a valid API key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Bearer token."
          }
        }
      }
    },
    "/v1/chat/completions": {
      "post": {
        "summary": "Create a chat completion",
        "description": "OpenAI-compatible chat-completions route.",
        "operationId": "createChatCompletion",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequest"
              },
              "examples": {
                "gpt55": {
                  "summary": "GPT-5.5 chat request",
                  "value": {
                    "model": "gpt-5.5",
                    "messages": [
                      {
                        "role": "user",
                        "content": "Reply with pong"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chat completion response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Bearer token."
          }
        }
      }
    },
    "/v1/responses": {
      "post": {
        "summary": "Create a response",
        "description": "OpenAI-compatible Responses API route if supported by the selected model and account.",
        "operationId": "createResponse",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["model", "input"],
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "gpt-5.5"
                  },
                  "input": {
                    "description": "Input text or structured response input.",
                    "oneOf": [
                      {"type": "string"},
                      {"type": "array"},
                      {"type": "object"}
                    ]
                  }
                },
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Response object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Bearer token."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ChatCompletionRequest": {
        "type": "object",
        "required": ["model", "messages"],
        "properties": {
          "model": {
            "type": "string",
            "example": "gpt-5.5"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["role", "content"],
              "properties": {
                "role": {
                  "type": "string",
                  "enum": ["system", "user", "assistant", "tool"]
                },
                "content": {
                  "description": "Message content.",
                  "oneOf": [
                    {"type": "string"},
                    {"type": "array"}
                  ]
                }
              },
              "additionalProperties": true
            }
          },
          "stream": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "x-prism-positioning": {
    "publicUrl": "https://558686.xyz",
    "shopUrl": "https://shop.558686.xyz",
    "payment": "Crypto-friendly payment through BEpusdt Crypto via EasyPay; voucher shop available.",
    "pricingBenchmark": "Recent gpt-5.5 billing data implies about $0.88 per 1M output tokens under the current 5x recharge multiplier.",
    "modelFamilies": ["GPT", "Claude", "Gemini", "Antigravity"]
  }
}

