Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: modelmarket.dev — AIMarket Hub v3 Widget API
description: Lean federation hub for AI capability discovery and routing. Plugins extend functionality.
version: 3.21.0
tags:
- name: Widget
paths:
/widget/widget.js:
get:
summary: Widget Js
description: 'Serve the embed script with THIS hub''s host in its allowlist.
The widget refuses a `data-hub-url` outside same-origin, localhost or a built-in
suffix list — a real control, since a hostile embed could otherwise point a
visitor''s invocations and affiliate header at an attacker. The list was the literal
`["modelmarket.dev"]` in every copy, which means a fork shipped an allowlist naming
a domain its operator does not control and not their own: any third-party page could
embed their script pointed at the reference hub, and no third-party page could point
it at theirs. Substituting the serving hub''s own host keeps the control and puts the
operator in charge of it.'
operationId: widget_js_widget_widget_js_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Widget