{
  "x402Version": 2,
  "id": 33291,
  "slug": "33291",
  "resource": "https://api.ai-open-models.com/v1/auto/chat/completions",
  "description": "Automatically select a suitable open-weight model from Kimi K3, Qwen3.6-35B-A3B, and GLM-5.2, then generate a chat completion. The exact price is calculated from the selected model, prompt, and requested maximum completion tokens.",
  "type": "http",
  "serviceName": "AI Open Models - Auto",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xdcdf184A64f6489Ec5304750a0AF157440115caE",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2156",
      "amountUsd": 0.002156,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "choices": {
            "items": {
              "properties": {
                "finish_reason": {
                  "type": "string"
                },
                "index": {
                  "type": "integer"
                },
                "message": {
                  "properties": {
                    "content": {
                      "type": "string"
                    },
                    "reasoning_content": {
                      "type": "string"
                    },
                    "role": {
                      "const": "assistant",
                      "type": "string"
                    }
                  },
                  "required": [
                    "role",
                    "content"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "index",
                "message",
                "finish_reason"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "created": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "model": {
            "description": "The concrete model selected for this request.",
            "enum": [
              "moonshotai/kimi-k3",
              "Qwen/Qwen3.6-35B-A3B",
              "zai-org/GLM-5.2"
            ],
            "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": "Plan a repository-wide multi-file architecture migration.",
                "role": "user"
              }
            ],
            "model": "ai-open-models/auto",
            "stream": false,
            "temperature": 0.2
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "choices": [
              {
                "finish_reason": "stop",
                "index": 0,
                "message": {
                  "content": "Begin by inventorying package boundaries, dependency edges, and migration constraints.",
                  "reasoning_content": "This repository-wide request requires long-horizon architectural planning.",
                  "role": "assistant"
                }
              }
            ],
            "created": 0,
            "id": "chatcmpl-auto-example",
            "model": "zai-org/GLM-5.2",
            "object": "chat.completion",
            "usage": {
              "completion_tokens": 30,
              "prompt_tokens": 20,
              "total_tokens": 50
            }
          },
          "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 selector considers output capacity, and the selected model determines the exact price and applicable maximum.",
                    "maximum": 131072,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "messages": {
                    "description": "Conversation messages used for model selection and completion generation.",
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "content": {
                          "description": "Text content of the conversation message.",
                          "type": "string"
                        },
                        "role": {
                          "description": "Role of the conversation message.",
                          "enum": [
                            "system",
                            "user",
                            "assistant"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "role",
                        "content"
                      ],
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "model": {
                    "const": "ai-open-models/auto",
                    "description": "Automatic model selection. The service selects one suitable model from its open-weight catalogue.",
                    "type": "string"
                  },
                  "stream": {
                    "const": false,
                    "default": false,
                    "description": "Streaming is not currently supported.",
                    "type": "boolean"
                  },
                  "temperature": {
                    "description": "Optional sampling temperature. When omitted, the selected model deployment uses its provider default.",
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "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": {
                          "type": "string"
                        },
                        "index": {
                          "type": "integer"
                        },
                        "message": {
                          "properties": {
                            "content": {
                              "type": "string"
                            },
                            "reasoning_content": {
                              "type": "string"
                            },
                            "role": {
                              "const": "assistant",
                              "type": "string"
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "index",
                        "message",
                        "finish_reason"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "created": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "model": {
                    "description": "The concrete model selected for this request.",
                    "enum": [
                      "moonshotai/kimi-k3",
                      "Qwen/Qwen3.6-35B-A3B",
                      "zai-org/GLM-5.2"
                    ],
                    "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": [
    "ai",
    "llm",
    "auto-routing",
    "inference",
    "gateway",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "api.ai-open-models.com",
  "lastUpdated": "2026-10-09T17:49:18.92Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-09T17:49:18.422Z"
  },
  "metadata": {
    "serviceName": "AI Open Models - Auto",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "max_tokens": 512,
              "messages": [
                {
                  "content": "Plan a repository-wide multi-file architecture migration.",
                  "role": "user"
                }
              ],
              "model": "ai-open-models/auto",
              "stream": false,
              "temperature": 0.2
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "choices": [
                {
                  "finish_reason": "stop",
                  "index": 0,
                  "message": {
                    "content": "Begin by inventorying package boundaries, dependency edges, and migration constraints.",
                    "reasoning_content": "This repository-wide request requires long-horizon architectural planning.",
                    "role": "assistant"
                  }
                }
              ],
              "created": 0,
              "id": "chatcmpl-auto-example",
              "model": "zai-org/GLM-5.2",
              "object": "chat.completion",
              "usage": {
                "completion_tokens": 30,
                "prompt_tokens": 20,
                "total_tokens": 50
              }
            },
            "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 selector considers output capacity, and the selected model determines the exact price and applicable maximum.",
                      "maximum": 131072,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "messages": {
                      "description": "Conversation messages used for model selection and completion generation.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "content": {
                            "description": "Text content of the conversation message.",
                            "type": "string"
                          },
                          "role": {
                            "description": "Role of the conversation message.",
                            "enum": [
                              "system",
                              "user",
                              "assistant"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "role",
                          "content"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "model": {
                      "const": "ai-open-models/auto",
                      "description": "Automatic model selection. The service selects one suitable model from its open-weight catalogue.",
                      "type": "string"
                    },
                    "stream": {
                      "const": false,
                      "default": false,
                      "description": "Streaming is not currently supported.",
                      "type": "boolean"
                    },
                    "temperature": {
                      "description": "Optional sampling temperature. When omitted, the selected model deployment uses its provider default.",
                      "maximum": 2,
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "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": {
                            "type": "string"
                          },
                          "index": {
                            "type": "integer"
                          },
                          "message": {
                            "properties": {
                              "content": {
                                "type": "string"
                              },
                              "reasoning_content": {
                                "type": "string"
                              },
                              "role": {
                                "const": "assistant",
                                "type": "string"
                              }
                            },
                            "required": [
                              "role",
                              "content"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "index",
                          "message",
                          "finish_reason"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "created": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "model": {
                      "description": "The concrete model selected for this request.",
                      "enum": [
                        "moonshotai/kimi-k3",
                        "Qwen/Qwen3.6-35B-A3B",
                        "zai-org/GLM-5.2"
                      ],
                      "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"
          }
        }
      ],
      "created": 0,
      "id": "string",
      "model": "moonshotai/kimi-k3",
      "object": "string",
      "usage": {
        "completion_tokens": 0,
        "prompt_tokens": 0,
        "total_tokens": 0
      }
    },
    "type": "string"
  }
}