← Market

Auto · Completions

Routes requests across open-weight models using task fit, tool calling, vision, JSON format, context, output capacity, provider availability, and price. Send POST application/json with model set to ai-open-models/auto and a non-empty messages array. task_type is optional; when omitted, Auto classifies the request. Supports function tools, JSON responses, and mixed text/image messages using public HTTPS image URLs or base64 data URIs. Multipart uploads and streaming are not supported.

POST https://api.ai-open-models.com/v1/auto/chat/completions

0.002 USDC on Base · payTo 0xdcdf184A64f6489Ec5304750a0AF157440115caE

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.002 USDC · payTo 0xdcdf184A64f6489Ec5304750a0AF157440115caE · via cdp · settles direct
{
  "max_tokens": 512,
  "messages": [
    {
      "content": "Plan a repository-wide multi-file architecture migration.",
      "role": "user"
    }
  ],
  "parallel_tool_calls": false,
  "response_format": {
    "type": "json_object"
  },
  "stream": false,
  "task_type": "workflow_execution",
  "temperature": 0.2,
  "tool_choice": "auto",
  "tools": [
    {
      "function": {
        "description": "Read a repository file needed for the migration plan.",
        "name": "lookup_repository_file",
        "parameters": {
          "additionalProperties": false,
          "properties": {
            "path": {
              "description": "Repository-relative file path.",
              "type": "string"
            }
          },
          "required": [
            "path"
          ],
          "type": "object"
        }
      },
      "type": "function"
    }
  ]
}
{
  "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
  }
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust score75 / 100 · breakdown
Probe uptime (30d)100.0% over 1 probes · daily
Avg 402 latency658 ms
Paid calls (30d, on-chain)12 calls · 12 buyers · shared price cohort of 2
Facilitator-reported (30d)1 calls · 1 payers (CDP Bazaar)

How to call

POST https://api.ai-open-models.com/v1/auto/chat/completions · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "messages"
  ],
  "properties": {
    "model": {
      "type": "string",
      "const": "ai-open-models/auto",
      "default": "ai-open-models/auto",
      "description": "Optional Auto routing alias. When omitted, the server uses ai-open-models/auto."
    },
    "messages": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "role"
        ],
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "system",
              "user",
              "assistant",
              "tool"
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              },
              {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "text",
                        "image_url"
                      ]
                    },
                    "text": {
                      "type": "string"
                    },
                    "image_url": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 8192,
                              "pattern": "^https://"
                            },
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 6990540,
                              "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$"
                            }
                          ],
                          "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                        },
                        "detail": {
                          "type": "string",
                          "enum": [
                            "auto",
                            "low",
                            "high"
                          ],
                          "description": "Requested image detail level. Availability and visual-token usage are provider-specific."
                        }
                      }
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "text"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "required": [
                          "text"
                        ],
                        "not": {
                          "required": [
                            "image_url"
                          ]
                        }
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "type": {
                            "const": "image_url"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      "then": {
                        "required": [
                          "image_url"
                        ],
                        "not": {
                          "required": [
                            "text"
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            ]
          },
          "reasoning_content": {
            "type": "string"
          },
          "tool_calls": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "type",
                "function"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "type": {
                  "type": "string",
                  "const": "function"
                },
                "function": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "arguments"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "arguments": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "tool_call_id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "role": {
                  "const": "system"
                }
              },
              "required": [
                "role"
              ]
            },
            "then": {
              "required": [
                "content"
              ],
              "properties": {
                "content": {
                  "type": "string"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "role": {
                  "const": "user"
                }
              },
              "required": [
                "role"
              ]
            },
            "then": {
              "required": [
                "content"
              ],
              "properties": {
                "content": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "minItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text",
                              "image_url"
                            ]
                          },
                          "text": {
                            "type": "string"
                          },
                          "image_url": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 8192,
                                    "pattern": "^https://"
                                  },
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 6990540,
                                    "pattern": "^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$"
                                  }
                                ],
                                "description": "Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."
                              },
                              "detail": {
                                "type": "string",
                                "enum": [
                                  "auto",
                                  "low",
                                  "high"
                                ],
                                "description": "Requested image detail level. Availability and visual-token usage are provider-specific."
                              }
                            }
                          }
                        },
                        "allOf": [
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "text"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "required": [
                                "text"
                              ],
                              "not": {
                                "required": [
                                  "image_url"
                                ]
                              }
                            }
                          },
                          {
                            "if": {
                              "properties": {
                                "type": {
                                  "const": "image_url"
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "then": {
                              "required": [
                                "image_url"
                              ],
                              "not": {
                                "required": [
                                  "text"
                                ]
                              }
                            }
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "role": {
                  "const": "assistant"
                }
              },
              "required": [
                "role"
              ]
            },
            "then": {
              "required": [
                "content"
              ],
              "properties": {
                "content": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "role": {
                  "const": "tool"
                }
              },
              "required": [
                "role"
              ]
            },
            "then": {
              "required": [
                "content",
                "tool_call_id"
              ],
              "properties": {
                "content": {
                  "type": "string"
                },
                "tool_call_id": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        ]
      },
      "description": "OpenAI-compatible conversation messages used for model selection and completion generation. Text, image input, assistant tool calls, and tool results are supported when a compatible model and provider are available."
    },
    "task_type": {
      "type": "string",
      "enum": [
        "workflow_execution",
        "coding",
        "research_and_knowledge",
        "classification_and_extraction",
        "content_writing"
      ],
      "description": "Optional task hint. When omitted, Auto classifies the request."
    },
    "tools": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "function"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "function"
          },
          "function": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "parameters"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "description": {
                "type": "string"
              },
              "parameters": {
                "type": "object",
                "additionalProperties": true
              },
              "strict": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "description": "Optional function tools. Their presence is also used as a workflow-execution signal."
    },
    "tool_choice": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "none",
            "auto",
            "required"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "type",
            "function"
          ],
          "properties": {
            "type": {
              "type": "string",
              "const": "function"
            },
            "function": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        }
      ],
      "description": "Optional tool-selection policy."
    },
    "parallel_tool_calls": {
      "type": "boolean",
      "description": "Whether the selected deployment may emit multiple tool calls in one response."
    },
    "response_format": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "text",
            "json_object",
            "json_schema"
          ]
        },
        "json_schema": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "name",
            "schema"
          ],
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "description": {
              "type": "string"
            },
            "schema": {
              "type": "object",
              "additionalProperties": true
            },
            "strict": {
              "type": "boolean"
            }
          }
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "json_schema"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "required": [
              "json_schema"
            ]
          },
          "else": {
            "not": {
              "required": [
                "json_schema"
              ]
            }
          }
        }
      ],
      "description": "Optional text or JSON response format. Auto excludes deployments that are not verified for the requested format."
    },
    "max_tokens": {
      "type": "integer",
      "minimum": 1,
      "maximum": 131072,
      "default": 8192,
      "description": "Maximum completion tokens. Output capacity is an eligibility constraint, and the selected model and provider determine the exact price."
    },
    "temperature": {
      "type": "number",
      "minimum": 0,
      "maximum": 2,
      "description": "Optional sampling temperature. When omitted, the selected deployment uses its provider default."
    },
    "stream": {
      "type": "boolean",
      "const": false,
      "default": false,
      "description": "Streaming is not currently supported and defaults to false."
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "id",
    "object",
    "created",
    "model",
    "choices",
    "usage"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "const": "chat.completion"
    },
    "created": {
      "type": "integer"
    },
    "model": {
      "type": "string",
      "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"
      ],
      "description": "The concrete open-weight model selected by Auto routing."
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "index",
          "message",
          "finish_reason"
        ],
        "properties": {
          "index": {
            "type": "integer"
          },
          "message": {
            "type": "object",
            "required": [
              "role",
              "content"
            ],
            "properties": {
              "role": {
                "type": "string",
                "const": "assistant"
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Assistant text. This may be null when the model requests tool execution."
              },
              "reasoning_content": {
                "type": "string",
                "description": "Reasoning content when exposed by the selected model and provider."
              },
              "tool_calls": {
                "type": "array",
                "minItems": 1,
                "description": "Client-executed function calls requested by the model.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "type",
                    "function"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Opaque identifier used to associate a later tool-result message with this call."
                    },
                    "type": {
                      "type": "string",
                      "const": "function"
                    },
                    "function": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "name",
                        "arguments"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name of the client-provided function to execute."
                        },
                        "arguments": {
                          "type": "string",
                          "description": "JSON-encoded function arguments generated by the model."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "finish_reason": {
            "type": "string",
            "description": "Usually stop for a final response or tool_calls when client tool execution is requested."
          }
        }
      }
    },
    "usage": {
      "type": "object",
      "required": [
        "prompt_tokens",
        "completion_tokens",
        "total_tokens"
      ],
      "properties": {
        "prompt_tokens": {
          "type": "integer"
        },
        "completion_tokens": {
          "type": "integer"
        },
        "total_tokens": {
          "type": "integer"
        }
      }
    }
  }
}
curl -i -X POST 'https://api.ai-open-models.com/v1/auto/chat/completions' \
  -H 'content-type: application/json' -d '{"messages":[{"role":"user","content":"Plan a repository-wide multi-file architecture migration."}],"task_type":"workflow_execution","tools":[{"type":"function","function":{"name":"lookup_repository_file","description":"Read a repository file needed for the migration plan.","parameters":{"type":"object","properties":{"path":{"type":"string","description":"Repository-relative file path."}},"required":["path"],"additionalProperties":false}}}],"tool_choice":"auto","parallel_tool_calls":false,"response_format":{"type":"json_object"},"max_tokens":512,"temperature":0.2,"stream":false}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)