{
  "openapi": "3.1.0",
  "info": {
    "title": "unused.market API",
    "version": "1.0.0"
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer"
      },
      "headerKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "AnthropicContentBlock": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "text"
              },
              "text": {
                "type": "string"
              },
              "cache_control": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "ephemeral"
                      },
                      "ttl": {
                        "type": "string",
                        "enum": [
                          "5m",
                          "1h"
                        ]
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "image"
              },
              "source": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "base64"
                      },
                      "media_type": {
                        "type": "string",
                        "minLength": 1
                      },
                      "data": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "media_type",
                      "data"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "url"
                      },
                      "url": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "type",
                      "url"
                    ]
                  }
                ]
              }
            },
            "required": [
              "type",
              "source"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "tool_use"
              },
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "input": {}
            },
            "required": [
              "type",
              "id",
              "name",
              "input"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "tool_result"
              },
              "tool_use_id": {
                "type": "string",
                "minLength": 1
              },
              "content": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/AnthropicContentBlock"
                    }
                  }
                ]
              },
              "is_error": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "tool_use_id"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "thinking"
              },
              "thinking": {
                "type": "string"
              },
              "signature": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "thinking"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "redacted_thinking"
              },
              "data": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "data"
            ],
            "additionalProperties": {}
          }
        ]
      }
    }
  },
  "paths": {
    "/v1/chat/completions": {
      "post": {
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "messages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string",
                          "enum": [
                            "system",
                            "developer",
                            "user",
                            "assistant",
                            "tool"
                          ]
                        },
                        "content": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "text"
                                            ]
                                          },
                                          "text": {
                                            "type": "string"
                                          },
                                          "cache_control": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ephemeral"
                                                    ]
                                                  },
                                                  "ttl": {
                                                    "type": "string",
                                                    "enum": [
                                                      "5m",
                                                      "1h"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "type"
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "text"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "image_url"
                                            ]
                                          },
                                          "image_url": {
                                            "type": "object",
                                            "properties": {
                                              "url": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "detail": {
                                                "type": "string",
                                                "enum": [
                                                  "auto",
                                                  "low",
                                                  "high"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "url"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "image_url"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tool_call_id": {
                          "type": "string"
                        },
                        "tool_calls": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "function"
                                ]
                              },
                              "function": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "arguments": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "arguments"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "function"
                            ]
                          }
                        },
                        "function_call": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "arguments": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "arguments"
                          ]
                        },
                        "reasoning_content": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reasoning_details": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "thinking"
                                    ]
                                  },
                                  "thinking": {
                                    "type": "string"
                                  },
                                  "signature": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "thinking"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "redacted_thinking"
                                    ]
                                  },
                                  "data": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "data"
                                ]
                              }
                            ]
                          }
                        },
                        "audio": {}
                      },
                      "required": [
                        "role"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "max_tokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "max_completion_tokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "temperature": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                  },
                  "top_p": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "stop": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stream": {
                    "default": false,
                    "type": "boolean"
                  },
                  "stream_options": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "include_usage": {
                            "type": "boolean"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "function"
                          ]
                        },
                        "function": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "default": {},
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "strict": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "type",
                        "function"
                      ]
                    }
                  },
                  "tool_choice": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "auto",
                          "none",
                          "required"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "function"
                            ]
                          },
                          "function": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "name"
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "function"
                        ]
                      }
                    ]
                  },
                  "parallel_tool_calls": {
                    "type": "boolean"
                  },
                  "response_format": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "json_object"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "json_schema"
                            ]
                          },
                          "json_schema": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "schema": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "strict": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "schema"
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "json_schema"
                        ]
                      }
                    ]
                  },
                  "reasoning_effort": {
                    "type": "string",
                    "enum": [
                      "none",
                      "minimal",
                      "low",
                      "medium",
                      "high",
                      "xhigh",
                      "max"
                    ]
                  },
                  "user": {
                    "type": "string"
                  },
                  "n": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  },
                  "logprobs": {
                    "not": {}
                  },
                  "logit_bias": {
                    "not": {}
                  },
                  "top_logprobs": {
                    "not": {}
                  },
                  "audio": {
                    "not": {}
                  },
                  "modalities": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "text"
                      ]
                    }
                  }
                },
                "required": [
                  "model",
                  "messages"
                ],
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "headerKey": []
          }
        ]
      }
    },
    "/v1/messages": {
      "post": {
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "system": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "text"
                              ]
                            },
                            "text": {
                              "type": "string"
                            },
                            "cache_control": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "ephemeral"
                                      ]
                                    },
                                    "ttl": {
                                      "type": "string",
                                      "enum": [
                                        "5m",
                                        "1h"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": {}
                        }
                      }
                    ]
                  },
                  "messages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/AnthropicContentBlock"
                                  }
                                }
                              ]
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string"
                                      },
                                      "cache_control": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "enum": [
                                                  "ephemeral"
                                                ]
                                              },
                                              "ttl": {
                                                "type": "string",
                                                "enum": [
                                                  "5m",
                                                  "1h"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "type"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "text"
                                    ],
                                    "additionalProperties": {}
                                  }
                                }
                              ]
                            },
                            "clear_at": {
                              "type": "string",
                              "enum": [
                                "never",
                                "next_user_message"
                              ]
                            },
                            "output_config": {
                              "type": "object",
                              "properties": {
                                "effort": {
                                  "type": "string",
                                  "enum": [
                                    "low",
                                    "medium",
                                    "high",
                                    "xhigh",
                                    "max"
                                  ]
                                }
                              },
                              "required": [
                                "effort"
                              ]
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ]
                        }
                      ]
                    }
                  },
                  "max_tokens": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "temperature": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "top_p": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "top_k": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "stop_sequences": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "stream": {
                    "default": false,
                    "type": "boolean"
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "input_schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "strict": {
                          "type": "boolean"
                        },
                        "cache_control": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "ephemeral"
                                  ]
                                },
                                "ttl": {
                                  "type": "string",
                                  "enum": [
                                    "5m",
                                    "1h"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "input_schema"
                      ]
                    }
                  },
                  "cache_control": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ephemeral"
                            ]
                          },
                          "ttl": {
                            "type": "string",
                            "enum": [
                              "5m",
                              "1h"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_choice": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "auto",
                              "any",
                              "none"
                            ]
                          },
                          "disable_parallel_tool_use": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "tool"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "disable_parallel_tool_use": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "name"
                        ]
                      }
                    ]
                  },
                  "thinking": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "enabled"
                            ]
                          },
                          "budget_tokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "budget_tokens"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "adaptive"
                            ]
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "disabled"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "between_tools"
                            ]
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      }
                    ]
                  },
                  "output_config": {
                    "type": "object",
                    "properties": {
                      "effort": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high",
                          "xhigh",
                          "max"
                        ]
                      },
                      "format": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "json_schema"
                            ]
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "type",
                          "schema"
                        ]
                      }
                    },
                    "additionalProperties": {}
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": [
                  "model",
                  "messages",
                  "max_tokens"
                ],
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "headerKey": []
          }
        ]
      }
    },
    "/v1/messages/count_tokens": {
      "post": {
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "system": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "text"
                              ]
                            },
                            "text": {
                              "type": "string"
                            },
                            "cache_control": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "ephemeral"
                                      ]
                                    },
                                    "ttl": {
                                      "type": "string",
                                      "enum": [
                                        "5m",
                                        "1h"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": {}
                        }
                      }
                    ]
                  },
                  "messages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/AnthropicContentBlock"
                                  }
                                }
                              ]
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ]
                                      },
                                      "text": {
                                        "type": "string"
                                      },
                                      "cache_control": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "enum": [
                                                  "ephemeral"
                                                ]
                                              },
                                              "ttl": {
                                                "type": "string",
                                                "enum": [
                                                  "5m",
                                                  "1h"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "type"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "text"
                                    ],
                                    "additionalProperties": {}
                                  }
                                }
                              ]
                            },
                            "clear_at": {
                              "type": "string",
                              "enum": [
                                "never",
                                "next_user_message"
                              ]
                            },
                            "output_config": {
                              "type": "object",
                              "properties": {
                                "effort": {
                                  "type": "string",
                                  "enum": [
                                    "low",
                                    "medium",
                                    "high",
                                    "xhigh",
                                    "max"
                                  ]
                                }
                              },
                              "required": [
                                "effort"
                              ]
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "top_p": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "top_k": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "stop_sequences": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "input_schema": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "strict": {
                          "type": "boolean"
                        },
                        "cache_control": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "ephemeral"
                                  ]
                                },
                                "ttl": {
                                  "type": "string",
                                  "enum": [
                                    "5m",
                                    "1h"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "input_schema"
                      ]
                    }
                  },
                  "cache_control": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ephemeral"
                            ]
                          },
                          "ttl": {
                            "type": "string",
                            "enum": [
                              "5m",
                              "1h"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tool_choice": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "auto",
                              "any",
                              "none"
                            ]
                          },
                          "disable_parallel_tool_use": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "tool"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "disable_parallel_tool_use": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "name"
                        ]
                      }
                    ]
                  },
                  "thinking": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "enabled"
                            ]
                          },
                          "budget_tokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "budget_tokens"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "adaptive"
                            ]
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "disabled"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "between_tools"
                            ]
                          },
                          "display": {
                            "type": "string",
                            "enum": [
                              "summarized",
                              "omitted",
                              "updates"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      }
                    ]
                  },
                  "output_config": {
                    "type": "object",
                    "properties": {
                      "effort": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high",
                          "xhigh",
                          "max"
                        ]
                      },
                      "format": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "json_schema"
                            ]
                          },
                          "schema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "type",
                          "schema"
                        ]
                      }
                    },
                    "additionalProperties": {}
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": [
                  "model",
                  "messages"
                ],
                "additionalProperties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "headerKey": []
          }
        ]
      }
    },
    "/v1/models": {
      "get": {
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "headerKey": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://unused.market"
    }
  ]
}
