WanAPIs · Schema

ChatCompletionRequest

OpenAI-compatible chat completion request accepted by POST https://api.wanapis.com/v1/chat/completions.

LLM GatewayAI API GatewayOpenAI-CompatibleModel MarketplaceLLMGPTClaudeGeminiDeepSeekImage-GenerationVideo GenerationAudioMulti-ModalRoutingFailover

Properties

Name Type Description
model string WanAPIs marketplace model slug (e.g. claude-opus-4-7, deepseek-v4-pro, gemini-3.5-flash, gpt-5.5).
messages array
stream boolean
max_tokens integer
temperature number
top_p number
n integer
stop object
presence_penalty number
frequency_penalty number
seed integer
response_format object
tools array
tool_choice object
user string
View JSON Schema on GitHub

JSON Schema

wanapis-chatcompletionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://wanapis.com/schemas/ChatCompletionRequest.json",
  "title": "ChatCompletionRequest",
  "description": "OpenAI-compatible chat completion request accepted by POST https://api.wanapis.com/v1/chat/completions.",
  "type": "object",
  "required": ["model", "messages"],
  "properties": {
    "model": {
      "type": "string",
      "description": "WanAPIs marketplace model slug (e.g. claude-opus-4-7, deepseek-v4-pro, gemini-3.5-flash, gpt-5.5)."
    },
    "messages": {
      "type": "array",
      "items": { "$ref": "wanapis-chatmessage-schema.json" }
    },
    "stream": { "type": "boolean", "default": false },
    "max_tokens": { "type": "integer", "minimum": 1 },
    "temperature": { "type": "number", "minimum": 0, "maximum": 2 },
    "top_p": { "type": "number", "minimum": 0, "maximum": 1 },
    "n": { "type": "integer", "minimum": 1, "default": 1 },
    "stop": {
      "oneOf": [
        { "type": "string" },
        { "type": "array", "items": { "type": "string" } }
      ]
    },
    "presence_penalty": { "type": "number" },
    "frequency_penalty": { "type": "number" },
    "seed": { "type": "integer" },
    "response_format": { "type": "object" },
    "tools": { "type": "array", "items": { "type": "object" } },
    "tool_choice": {
      "oneOf": [
        { "type": "string" },
        { "type": "object" }
      ]
    },
    "user": { "type": "string" }
  },
  "additionalProperties": true
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/wanapis-chatcompletionrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.