{
  "x402Version": 2,
  "id": 33290,
  "slug": "33290",
  "resource": "https://api.ai-open-models.com/v1/chat/completions",
  "description": "OpenAI-compatible LLM inference and chat completions across seven open-weight reasoning, coding, and vision models. Choose Kimi K3, Qwen3.6, Qwen3.8, GLM-5.2, GLM-5.3, GLM-5.3-Flash, or DeepSeek V4.1 Flash. Use them to generate text or JSON, analyze images, and call client-provided tools. Supports up to 4 images and selectable reasoning controls. Pricing is quoted dynamically from the prompt and max_tokens.",
  "type": "http",
  "serviceName": "AI Open Models",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xdcdf184A64f6489Ec5304750a0AF157440115caE",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "choices": {
            "items": {
              "properties": {
                "finish_reason": {
                  "description": "Usually stop for a final response or tool_calls when client tool execution is requested.",
                  "type": "string"
                },
                "index": {
                  "type": "integer"
                },
                "message": {
                  "properties": {
                    "content": {
                      "description": "Assistant text. This may be null when the model requests tool execution.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reasoning_content": {
                      "description": "Reasoning content when exposed by the selected model and provider.",
                      "type": "string"
                    },
                    "role": {
                      "const": "assistant",
                      "type": "string"
                    },
                    "tool_calls": {
                      "description": "Client-executed function calls requested by the model.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "function": {
                            "additionalProperties": false,
                            "properties": {
                              "arguments": {
                                "description": "JSON-encoded function arguments generated by the model.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Name of the client-provided function to execute.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "arguments"
                            ],
                            "type": "object"
                          },
                          "id": {
                            "description": "Opaque identifier used to associate a later tool-result message with this call.",
                            "type": "string"
                          },
                          "type": {
                            "const": "function",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "function"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "role",
                    "content"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "index",
                "message",
                "finish_reason"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "created": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "model": {
            "enum": [
              "moonshotai/kimi-k3",
              "Qwen/Qwen3.6-35B-A3B",
              "zai-org/GLM-5.2",
              "zai-org/GLM-5.3",
              "zai-org/GLM-5.3-Flash",
              "Qwen/Qwen3.8-27B",
              "deepseek-ai/DeepSeek-V4.1-Flash"
            ],
            "type": "string"
          },
          "object": {
            "const": "chat.completion",
            "type": "string"
          },
          "usage": {
            "properties": {
              "completion_tokens": {
                "type": "integer"
              },
              "prompt_tokens": {
                "type": "integer"
              },
              "total_tokens": {
                "type": "integer"
              }
            },
            "required": [
              "prompt_tokens",
              "completion_tokens",
              "total_tokens"
            ],
            "type": "object"
          }
        },
        "required": [
          "id",
          "object",
          "created",
          "model",
          "choices",
          "usage"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "max_tokens": 512,
            "messages": [
              {
                "content": [
                  {
                    "text": "Identify this landmark, then use web search to find current visitor information. Return a JSON summary.",
                    "type": "text"
                  },
                  {
                    "image_url": {
                      "detail": "auto",
                      "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
                    },
                    "type": "image_url"
                  }
                ],
                "role": "user"
              }
            ],
            "model": "Qwen/Qwen3.8-27B",
            "parallel_tool_calls": true,
            "provider": "deepinfra",
            "reasoning_effort": "max",
            "response_format": {
              "type": "json_object"
            },
            "stream": false,
            "temperature": 0.2,
            "tool_choice": "auto",
            "tools": [
              {
                "function": {
                  "description": "Search the web for current information.",
                  "name": "search_web",
                  "parameters": {
                    "additionalProperties": false,
                    "properties": {
                      "query": {
                        "description": "Search query.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "query"
                    ],
                    "type": "object"
                  }
                },
                "type": "function"
              }
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "choices": [
              {
                "finish_reason": "tool_calls",
                "index": 0,
                "message": {
                  "content": null,
                  "role": "assistant",
                  "tool_calls": [
                    {
                      "function": {
                        "arguments": "{\"query\":\"latest open-weight model release\"}",
                        "name": "search_web"
                      },
                      "id": "call_search_1",
                      "type": "function"
                    }
                  ]
                }
              }
            ],
            "created": 0,
            "id": "chatcmpl-tool-example",
            "model": "Qwen/Qwen3.8-27B",
            "object": "chat.completion",
            "usage": {
              "completion_tokens": 32,
              "prompt_tokens": 120,
              "total_tokens": 152
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "max_tokens": {
                    "default": 8192,
                    "description": "Maximum completion tokens. Defaults to 8192. The selected model and provider route determine the applicable output and context limits and the exact x402 price.",
                    "maximum": 131072,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "messages": {
                    "description": "Conversation history. User content may be plain text or an array of text and image_url parts. Requests may contain at most 4 public HTTPS images or base64 data-URI images. Low-detail inline images reserve 512 input tokens; all other images reserve 4096. Vision availability is model- and provider-specific and is listed by GET /v1/models. Tool loops use assistant messages containing tool_calls followed by tool messages carrying the matching tool_call_id.",
                    "items": {
                      "additionalProperties": false,
                      "allOf": [
                        {
                          "if": {
                            "properties": {
                              "role": {
                                "const": "system"
                              }
                            },
                            "required": [
                              "role"
                            ]
                          },
                          "then": {
                            "properties": {
                              "content": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "content"
                            ]
                          }
                        },
                        {
                          "if": {
                            "properties": {
                              "role": {
                                "const": "user"
                              }
                            },
                            "required": [
                              "role"
                            ]
                          },
                          "then": {
                            "properties": {
                              "content": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "items": {
                                      "additionalProperties": false,
                                      "allOf": [
                                        {
                                          "if": {
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              }
                                            },
                                            "required": [
                                              "type"
                                            ]
                                          },
                                          "then": {
                                            "not": {
                                              "required": [
                                                "image_url"
                                              ]
                                            },
                                            "required": [
                                              "text"
                                            ]
                                          }
                                        },
                                        {
                                          "if": {
                                            "properties": {
                                              "type": {
                                                "const": "image_url"
                                              }
                                            },
                                            "required": [
                                              "type"
                                            ]
                                          },
                                          "then": {
                                            "not": {
                                              "required": [
                                                "text"
                                              ]
                                            },
                                            "required": [
                                              "image_url"
                                            ]
                                          }
                                        }
                                      ],
                                      "properties": {
                                        "image_url": {
                                          "additionalProperties": false,
                                          "properties": {
                                            "detail": {
                                              "description": "Requested image detail level. Availability and visual-token usage are provider-specific.",
                                              "enum": [
                                                "auto",
                                                "low",
                                                "high"
                                              ],
                                              "type": "string"
                                            },
                                            "url": {
                                              "anyOf": [
                                                {
                                                  "maxLength": 8192,
                                                  "minLength": 1,
                                                  "pattern": "^https://",
                                                  "type": "string"
                                                },
                                                {
                                                  "maxLength": 6990540,
                                                  "minLength": 1,
                                                  "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$",
                                                  "type": "string"
                                                }
                                              ],
                                              "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                                            }
                                          },
                                          "required": [
                                            "url"
                                          ],
                                          "type": "object"
                                        },
                                        "text": {
                                          "type": "string"
                                        },
                                        "type": {
                                          "enum": [
                                            "text",
                                            "image_url"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "type": "object"
                                    },
                                    "minItems": 1,
                                    "type": "array"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "content"
                            ]
                          }
                        },
                        {
                          "if": {
                            "properties": {
                              "role": {
                                "const": "assistant"
                              }
                            },
                            "required": [
                              "role"
                            ]
                          },
                          "then": {
                            "properties": {
                              "content": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "content"
                            ]
                          }
                        },
                        {
                          "if": {
                            "properties": {
                              "role": {
                                "const": "tool"
                              }
                            },
                            "required": [
                              "role"
                            ]
                          },
                          "then": {
                            "properties": {
                              "content": {
                                "type": "string"
                              },
                              "tool_call_id": {
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "content",
                              "tool_call_id"
                            ]
                          }
                        }
                      ],
                      "properties": {
                        "content": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            },
                            {
                              "items": {
                                "additionalProperties": false,
                                "allOf": [
                                  {
                                    "if": {
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ]
                                    },
                                    "then": {
                                      "not": {
                                        "required": [
                                          "image_url"
                                        ]
                                      },
                                      "required": [
                                        "text"
                                      ]
                                    }
                                  },
                                  {
                                    "if": {
                                      "properties": {
                                        "type": {
                                          "const": "image_url"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ]
                                    },
                                    "then": {
                                      "not": {
                                        "required": [
                                          "text"
                                        ]
                                      },
                                      "required": [
                                        "image_url"
                                      ]
                                    }
                                  }
                                ],
                                "properties": {
                                  "image_url": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "detail": {
                                        "description": "Requested image detail level. Availability and visual-token usage are provider-specific.",
                                        "enum": [
                                          "auto",
                                          "low",
                                          "high"
                                        ],
                                        "type": "string"
                                      },
                                      "url": {
                                        "anyOf": [
                                          {
                                            "maxLength": 8192,
                                            "minLength": 1,
                                            "pattern": "^https://",
                                            "type": "string"
                                          },
                                          {
                                            "maxLength": 6990540,
                                            "minLength": 1,
                                            "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$",
                                            "type": "string"
                                          }
                                        ],
                                        "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ],
                                    "type": "object"
                                  },
                                  "text": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "enum": [
                                      "text",
                                      "image_url"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "type": "object"
                              },
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "name": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "reasoning_content": {
                          "type": "string"
                        },
                        "role": {
                          "enum": [
                            "system",
                            "user",
                            "assistant",
                            "tool"
                          ],
                          "type": "string"
                        },
                        "tool_call_id": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "tool_calls": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "function": {
                                "additionalProperties": false,
                                "properties": {
                                  "arguments": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "minLength": 1,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "arguments"
                                ],
                                "type": "object"
                              },
                              "id": {
                                "minLength": 1,
                                "type": "string"
                              },
                              "type": {
                                "const": "function",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "function"
                            ],
                            "type": "object"
                          },
                          "minItems": 1,
                          "type": "array"
                        }
                      },
                      "required": [
                        "role"
                      ],
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "model": {
                    "description": "Required public model identifier. No default model is assumed.",
                    "enum": [
                      "moonshotai/kimi-k3",
                      "Qwen/Qwen3.6-35B-A3B",
                      "zai-org/GLM-5.2",
                      "zai-org/GLM-5.3",
                      "zai-org/GLM-5.3-Flash",
                      "Qwen/Qwen3.8-27B",
                      "deepseek-ai/DeepSeek-V4.1-Flash"
                    ],
                    "type": "string"
                  },
                  "parallel_tool_calls": {
                    "description": "Optional permission for the model to request multiple function calls in one assistant response.",
                    "type": "boolean"
                  },
                  "provider": {
                    "description": "Optional provider route. When omitted, the model's configured active provider is used. Provider availability is model-specific and is listed by GET /v1/models.",
                    "enum": [
                      "deepinfra",
                      "engy",
                      "saygm",
                      "zro",
                      "zai"
                    ],
                    "type": "string"
                  },
                  "reasoning_effort": {
                    "description": "Optional model-specific reasoning control. Supported values and model defaults are listed by GET /v1/models.",
                    "enum": [
                      "low",
                      "high",
                      "max"
                    ],
                    "type": "string"
                  },
                  "response_format": {
                    "additionalProperties": false,
                    "description": "Optional provider-enforced JSON mode. Currently available only on provider routes whose json_object capability is supported by GET /v1/models. Strict JSON Schema output is not yet advertised.",
                    "properties": {
                      "type": {
                        "const": "json_object",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "stream": {
                    "const": false,
                    "default": false,
                    "description": "Streaming is not currently supported and defaults to false.",
                    "type": "boolean"
                  },
                  "temperature": {
                    "description": "Optional sampling temperature. When omitted, the selected provider deployment uses its own default.",
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number"
                  },
                  "tool_choice": {
                    "anyOf": [
                      {
                        "enum": [
                          "none",
                          "auto",
                          "required"
                        ],
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "function": {
                            "additionalProperties": false,
                            "properties": {
                              "name": {
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": "object"
                          },
                          "type": {
                            "const": "function",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "function"
                        ],
                        "type": "object"
                      }
                    ],
                    "description": "Optional tool-selection policy: none, auto, required, or one specifically named function."
                  },
                  "tools": {
                    "description": "Optional client-executed function definitions. The model may request these functions, but this endpoint does not execute them.",
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "function": {
                          "additionalProperties": false,
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "name": {
                              "minLength": 1,
                              "type": "string"
                            },
                            "parameters": {
                              "additionalProperties": true,
                              "type": "object"
                            },
                            "strict": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name",
                            "parameters"
                          ],
                          "type": "object"
                        },
                        "type": {
                          "const": "function",
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "function"
                      ],
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "model",
                  "messages"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "choices": {
                    "items": {
                      "properties": {
                        "finish_reason": {
                          "description": "Usually stop for a final response or tool_calls when client tool execution is requested.",
                          "type": "string"
                        },
                        "index": {
                          "type": "integer"
                        },
                        "message": {
                          "properties": {
                            "content": {
                              "description": "Assistant text. This may be null when the model requests tool execution.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "reasoning_content": {
                              "description": "Reasoning content when exposed by the selected model and provider.",
                              "type": "string"
                            },
                            "role": {
                              "const": "assistant",
                              "type": "string"
                            },
                            "tool_calls": {
                              "description": "Client-executed function calls requested by the model.",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "function": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "arguments": {
                                        "description": "JSON-encoded function arguments generated by the model.",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Name of the client-provided function to execute.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "arguments"
                                    ],
                                    "type": "object"
                                  },
                                  "id": {
                                    "description": "Opaque identifier used to associate a later tool-result message with this call.",
                                    "type": "string"
                                  },
                                  "type": {
                                    "const": "function",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "function"
                                ],
                                "type": "object"
                              },
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "index",
                        "message",
                        "finish_reason"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "created": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "model": {
                    "enum": [
                      "moonshotai/kimi-k3",
                      "Qwen/Qwen3.6-35B-A3B",
                      "zai-org/GLM-5.2",
                      "zai-org/GLM-5.3",
                      "zai-org/GLM-5.3-Flash",
                      "Qwen/Qwen3.8-27B",
                      "deepseek-ai/DeepSeek-V4.1-Flash"
                    ],
                    "type": "string"
                  },
                  "object": {
                    "const": "chat.completion",
                    "type": "string"
                  },
                  "usage": {
                    "properties": {
                      "completion_tokens": {
                        "type": "integer"
                      },
                      "prompt_tokens": {
                        "type": "integer"
                      },
                      "total_tokens": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "prompt_tokens",
                      "completion_tokens",
                      "total_tokens"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "object",
                  "created",
                  "model",
                  "choices",
                  "usage"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "s": [
          "cdp_sdk_server"
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "openai-compatible",
    "llm",
    "inference",
    "vision",
    "tool-calling",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "api.ai-open-models.com",
  "lastUpdated": "2026-10-12T15:50:36.116Z",
  "quality": {
    "calls30d": 133,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T15:50:35.402Z"
  },
  "metadata": {
    "serviceName": "AI Open Models",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "max_tokens": 512,
              "messages": [
                {
                  "content": [
                    {
                      "text": "Identify this landmark, then use web search to find current visitor information. Return a JSON summary.",
                      "type": "text"
                    },
                    {
                      "image_url": {
                        "detail": "auto",
                        "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
                      },
                      "type": "image_url"
                    }
                  ],
                  "role": "user"
                }
              ],
              "model": "Qwen/Qwen3.8-27B",
              "parallel_tool_calls": true,
              "provider": "deepinfra",
              "reasoning_effort": "max",
              "response_format": {
                "type": "json_object"
              },
              "stream": false,
              "temperature": 0.2,
              "tool_choice": "auto",
              "tools": [
                {
                  "function": {
                    "description": "Search the web for current information.",
                    "name": "search_web",
                    "parameters": {
                      "additionalProperties": false,
                      "properties": {
                        "query": {
                          "description": "Search query.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "query"
                      ],
                      "type": "object"
                    }
                  },
                  "type": "function"
                }
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "choices": [
                {
                  "finish_reason": "tool_calls",
                  "index": 0,
                  "message": {
                    "content": null,
                    "role": "assistant",
                    "tool_calls": [
                      {
                        "function": {
                          "arguments": "{\"query\":\"latest open-weight model release\"}",
                          "name": "search_web"
                        },
                        "id": "call_search_1",
                        "type": "function"
                      }
                    ]
                  }
                }
              ],
              "created": 0,
              "id": "chatcmpl-tool-example",
              "model": "Qwen/Qwen3.8-27B",
              "object": "chat.completion",
              "usage": {
                "completion_tokens": 32,
                "prompt_tokens": 120,
                "total_tokens": 152
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "max_tokens": {
                      "default": 8192,
                      "description": "Maximum completion tokens. Defaults to 8192. The selected model and provider route determine the applicable output and context limits and the exact x402 price.",
                      "maximum": 131072,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "messages": {
                      "description": "Conversation history. User content may be plain text or an array of text and image_url parts. Requests may contain at most 4 public HTTPS images or base64 data-URI images. Low-detail inline images reserve 512 input tokens; all other images reserve 4096. Vision availability is model- and provider-specific and is listed by GET /v1/models. Tool loops use assistant messages containing tool_calls followed by tool messages carrying the matching tool_call_id.",
                      "items": {
                        "additionalProperties": false,
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "role": {
                                  "const": "system"
                                }
                              },
                              "required": [
                                "role"
                              ]
                            },
                            "then": {
                              "properties": {
                                "content": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "content"
                              ]
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "role": {
                                  "const": "user"
                                }
                              },
                              "required": [
                                "role"
                              ]
                            },
                            "then": {
                              "properties": {
                                "content": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "items": {
                                        "additionalProperties": false,
                                        "allOf": [
                                          {
                                            "if": {
                                              "properties": {
                                                "type": {
                                                  "const": "text"
                                                }
                                              },
                                              "required": [
                                                "type"
                                              ]
                                            },
                                            "then": {
                                              "not": {
                                                "required": [
                                                  "image_url"
                                                ]
                                              },
                                              "required": [
                                                "text"
                                              ]
                                            }
                                          },
                                          {
                                            "if": {
                                              "properties": {
                                                "type": {
                                                  "const": "image_url"
                                                }
                                              },
                                              "required": [
                                                "type"
                                              ]
                                            },
                                            "then": {
                                              "not": {
                                                "required": [
                                                  "text"
                                                ]
                                              },
                                              "required": [
                                                "image_url"
                                              ]
                                            }
                                          }
                                        ],
                                        "properties": {
                                          "image_url": {
                                            "additionalProperties": false,
                                            "properties": {
                                              "detail": {
                                                "description": "Requested image detail level. Availability and visual-token usage are provider-specific.",
                                                "enum": [
                                                  "auto",
                                                  "low",
                                                  "high"
                                                ],
                                                "type": "string"
                                              },
                                              "url": {
                                                "anyOf": [
                                                  {
                                                    "maxLength": 8192,
                                                    "minLength": 1,
                                                    "pattern": "^https://",
                                                    "type": "string"
                                                  },
                                                  {
                                                    "maxLength": 6990540,
                                                    "minLength": 1,
                                                    "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$",
                                                    "type": "string"
                                                  }
                                                ],
                                                "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                                              }
                                            },
                                            "required": [
                                              "url"
                                            ],
                                            "type": "object"
                                          },
                                          "text": {
                                            "type": "string"
                                          },
                                          "type": {
                                            "enum": [
                                              "text",
                                              "image_url"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ],
                                        "type": "object"
                                      },
                                      "minItems": 1,
                                      "type": "array"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "content"
                              ]
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "role": {
                                  "const": "assistant"
                                }
                              },
                              "required": [
                                "role"
                              ]
                            },
                            "then": {
                              "properties": {
                                "content": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "content"
                              ]
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "role": {
                                  "const": "tool"
                                }
                              },
                              "required": [
                                "role"
                              ]
                            },
                            "then": {
                              "properties": {
                                "content": {
                                  "type": "string"
                                },
                                "tool_call_id": {
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "content",
                                "tool_call_id"
                              ]
                            }
                          }
                        ],
                        "properties": {
                          "content": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              },
                              {
                                "items": {
                                  "additionalProperties": false,
                                  "allOf": [
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "text"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "not": {
                                          "required": [
                                            "image_url"
                                          ]
                                        },
                                        "required": [
                                          "text"
                                        ]
                                      }
                                    },
                                    {
                                      "if": {
                                        "properties": {
                                          "type": {
                                            "const": "image_url"
                                          }
                                        },
                                        "required": [
                                          "type"
                                        ]
                                      },
                                      "then": {
                                        "not": {
                                          "required": [
                                            "text"
                                          ]
                                        },
                                        "required": [
                                          "image_url"
                                        ]
                                      }
                                    }
                                  ],
                                  "properties": {
                                    "image_url": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "detail": {
                                          "description": "Requested image detail level. Availability and visual-token usage are provider-specific.",
                                          "enum": [
                                            "auto",
                                            "low",
                                            "high"
                                          ],
                                          "type": "string"
                                        },
                                        "url": {
                                          "anyOf": [
                                            {
                                              "maxLength": 8192,
                                              "minLength": 1,
                                              "pattern": "^https://",
                                              "type": "string"
                                            },
                                            {
                                              "maxLength": 6990540,
                                              "minLength": 1,
                                              "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$",
                                              "type": "string"
                                            }
                                          ],
                                          "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                                        }
                                      },
                                      "required": [
                                        "url"
                                      ],
                                      "type": "object"
                                    },
                                    "text": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "enum": [
                                        "text",
                                        "image_url"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "type": "object"
                                },
                                "minItems": 1,
                                "type": "array"
                              }
                            ]
                          },
                          "name": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "reasoning_content": {
                            "type": "string"
                          },
                          "role": {
                            "enum": [
                              "system",
                              "user",
                              "assistant",
                              "tool"
                            ],
                            "type": "string"
                          },
                          "tool_call_id": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "tool_calls": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "function": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "arguments": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "minLength": 1,
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "arguments"
                                  ],
                                  "type": "object"
                                },
                                "id": {
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "function",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "function"
                              ],
                              "type": "object"
                            },
                            "minItems": 1,
                            "type": "array"
                          }
                        },
                        "required": [
                          "role"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "model": {
                      "description": "Required public model identifier. No default model is assumed.",
                      "enum": [
                        "moonshotai/kimi-k3",
                        "Qwen/Qwen3.6-35B-A3B",
                        "zai-org/GLM-5.2",
                        "zai-org/GLM-5.3",
                        "zai-org/GLM-5.3-Flash",
                        "Qwen/Qwen3.8-27B",
                        "deepseek-ai/DeepSeek-V4.1-Flash"
                      ],
                      "type": "string"
                    },
                    "parallel_tool_calls": {
                      "description": "Optional permission for the model to request multiple function calls in one assistant response.",
                      "type": "boolean"
                    },
                    "provider": {
                      "description": "Optional provider route. When omitted, the model's configured active provider is used. Provider availability is model-specific and is listed by GET /v1/models.",
                      "enum": [
                        "deepinfra",
                        "engy",
                        "saygm",
                        "zro",
                        "zai"
                      ],
                      "type": "string"
                    },
                    "reasoning_effort": {
                      "description": "Optional model-specific reasoning control. Supported values and model defaults are listed by GET /v1/models.",
                      "enum": [
                        "low",
                        "high",
                        "max"
                      ],
                      "type": "string"
                    },
                    "response_format": {
                      "additionalProperties": false,
                      "description": "Optional provider-enforced JSON mode. Currently available only on provider routes whose json_object capability is supported by GET /v1/models. Strict JSON Schema output is not yet advertised.",
                      "properties": {
                        "type": {
                          "const": "json_object",
                          "type": "string"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "type": "object"
                    },
                    "stream": {
                      "const": false,
                      "default": false,
                      "description": "Streaming is not currently supported and defaults to false.",
                      "type": "boolean"
                    },
                    "temperature": {
                      "description": "Optional sampling temperature. When omitted, the selected provider deployment uses its own default.",
                      "maximum": 2,
                      "minimum": 0,
                      "type": "number"
                    },
                    "tool_choice": {
                      "anyOf": [
                        {
                          "enum": [
                            "none",
                            "auto",
                            "required"
                          ],
                          "type": "string"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "function": {
                              "additionalProperties": false,
                              "properties": {
                                "name": {
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "type": "object"
                            },
                            "type": {
                              "const": "function",
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "function"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Optional tool-selection policy: none, auto, required, or one specifically named function."
                    },
                    "tools": {
                      "description": "Optional client-executed function definitions. The model may request these functions, but this endpoint does not execute them.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "function": {
                            "additionalProperties": false,
                            "properties": {
                              "description": {
                                "type": "string"
                              },
                              "name": {
                                "minLength": 1,
                                "type": "string"
                              },
                              "parameters": {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              "strict": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "parameters"
                            ],
                            "type": "object"
                          },
                          "type": {
                            "const": "function",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "function"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "model",
                    "messages"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "choices": {
                      "items": {
                        "properties": {
                          "finish_reason": {
                            "description": "Usually stop for a final response or tool_calls when client tool execution is requested.",
                            "type": "string"
                          },
                          "index": {
                            "type": "integer"
                          },
                          "message": {
                            "properties": {
                              "content": {
                                "description": "Assistant text. This may be null when the model requests tool execution.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reasoning_content": {
                                "description": "Reasoning content when exposed by the selected model and provider.",
                                "type": "string"
                              },
                              "role": {
                                "const": "assistant",
                                "type": "string"
                              },
                              "tool_calls": {
                                "description": "Client-executed function calls requested by the model.",
                                "items": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "function": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "arguments": {
                                          "description": "JSON-encoded function arguments generated by the model.",
                                          "type": "string"
                                        },
                                        "name": {
                                          "description": "Name of the client-provided function to execute.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "arguments"
                                      ],
                                      "type": "object"
                                    },
                                    "id": {
                                      "description": "Opaque identifier used to associate a later tool-result message with this call.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "function",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "function"
                                  ],
                                  "type": "object"
                                },
                                "minItems": 1,
                                "type": "array"
                              }
                            },
                            "required": [
                              "role",
                              "content"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "index",
                          "message",
                          "finish_reason"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "created": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "model": {
                      "enum": [
                        "moonshotai/kimi-k3",
                        "Qwen/Qwen3.6-35B-A3B",
                        "zai-org/GLM-5.2",
                        "zai-org/GLM-5.3",
                        "zai-org/GLM-5.3-Flash",
                        "Qwen/Qwen3.8-27B",
                        "deepseek-ai/DeepSeek-V4.1-Flash"
                      ],
                      "type": "string"
                    },
                    "object": {
                      "const": "chat.completion",
                      "type": "string"
                    },
                    "usage": {
                      "properties": {
                        "completion_tokens": {
                          "type": "integer"
                        },
                        "prompt_tokens": {
                          "type": "integer"
                        },
                        "total_tokens": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "prompt_tokens",
                        "completion_tokens",
                        "total_tokens"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "created",
                    "model",
                    "choices",
                    "usage"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "s": [
            "cdp_sdk_server"
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {},
      "erc20ApprovalGasSponsoring": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.ai-open-models.com",
    "manifest_name": "api.ai-open-models.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "choices": [
        {
          "finish_reason": "string",
          "index": 0,
          "message": {
            "content": "string",
            "reasoning_content": "string",
            "role": "string",
            "tool_calls": [
              {
                "function": null,
                "id": null,
                "type": null
              }
            ]
          }
        }
      ],
      "created": 0,
      "id": "string",
      "model": "moonshotai/kimi-k3",
      "object": "string",
      "usage": {
        "completion_tokens": 0,
        "prompt_tokens": 0,
        "total_tokens": 0
      }
    },
    "type": "string"
  }
}