Clojure client for a wan30.video account.
The client speaks the same Streamable HTTP MCP endpoint as @wan30/cli
0.1.0: POST {origin}/api/mcp/. This is not an official Alibaba, DashScope,
or Tongyi client.
Purchased wan30.video credits are required for generation. Sign-up, check-in
and gift credits alone do not qualify. estimate does not spend credits.
generate does not call the service unless :confirm-spend is exactly
true, and that flag is not sent. Pass the same :request-id on a retry.
client reads WAN30_ACCESS_TOKEN and optional WAN30_ORIGIN only when
the corresponding argument is omitted. It does not read .env files or a
credential store.
Clojure client for a [wan30.video](https://wan30.video/) account.
The client speaks the same Streamable HTTP MCP endpoint as `@wan30/cli`
0.1.0: `POST {origin}/api/mcp/`. This is not an official Alibaba, DashScope,
or Tongyi client.
Purchased wan30.video credits are required for generation. Sign-up, check-in
and gift credits alone do not qualify. [[estimate]] does not spend credits.
[[generate]] does not call the service unless `:confirm-spend` is exactly
`true`, and that flag is not sent. Pass the same `:request-id` on a retry.
`client` reads `WAN30_ACCESS_TOKEN` and optional `WAN30_ORIGIN` only when
the corresponding argument is omitted. It does not read `.env` files or a
credential store.(account client)Call account_status. The tool takes no arguments.
Call `account_status`. The tool takes no arguments.
(client)(client {:keys [token origin request env]
:or {env (fn* [p1__2121#] (System/getenv p1__2121#))}})Return a client.
:token is the bearer token. When omitted, WAN30_ACCESS_TOKEN is read
from the process environment. :origin defaults to https://wan30.video,
or to WAN30_ORIGIN when the caller does not pass one. :request, when
supplied, replaces the HTTP exchange and is used by tests. :env replaces
process-environment lookup and is also for tests.
Return a client. `:token` is the bearer token. When omitted, `WAN30_ACCESS_TOKEN` is read from the process environment. `:origin` defaults to `https://wan30.video`, or to `WAN30_ORIGIN` when the caller does not pass one. `:request`, when supplied, replaces the HTTP exchange and is used by tests. `:env` replaces process-environment lookup and is also for tests.
(close client)Drop the local MCP session. This does not call the service.
Drop the local MCP session. This does not call the service.
(disconnect client)POST {origin}/api/mcp/disconnect/ with only the bearer token and an empty
body. HTTP 401 from this call is REVOCATION_UNCONFIRMED, not a fresh
sign-in error.
POST `{origin}/api/mcp/disconnect/` with only the bearer token and an empty
body. HTTP 401 from this call is `REVOCATION_UNCONFIRMED`, not a fresh
sign-in error.(estimate client input)Call estimate_generation. Omitted optional fields are not filled in.
This call does not spend credits.
Call `estimate_generation`. Omitted optional fields are not filled in. This call does not spend credits.
(generate client input)(generate client input {:keys [request-id confirm-spend]})Call generate_video only when :confirm-spend is exactly true.
The service receives input and requestId. :confirm-spend is local and
is not sent. When :request-id is omitted, a UUID is created after the
confirmation check. The same id is the idempotency key on a retry.
Call `generate_video` only when `:confirm-spend` is exactly `true`. The service receives `input` and `requestId`. `:confirm-spend` is local and is not sent. When `:request-id` is omitted, a UUID is created after the confirmation check. The same id is the idempotency key on a retry.
(model client model-id)Call get_model for one of the published model ids.
Call `get_model` for one of the published model ids.
(models client)Call list_models. The tool takes no arguments.
Call `list_models`. The tool takes no arguments.
(tasks client)(tasks client {:keys [limit]})Call list_tasks. A nil or omitted :limit is not sent.
Call `list_tasks`. A nil or omitted `:limit` is not sent.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |