Liking cljdoc? Tell your friends :D

wan27-clj — Clojure Client SDK for Wan2.7 AI

Clojars Project cljdoc badge

io.github.notusinggithub/wan27-clj is a lightweight, zero-dependency Clojure client library for Wan2.7 AI image and video generation, credit balance inspection, cost estimation, and task polling.

Official Links

Installation

deps.edn

io.github.notusinggithub/wan27-clj {:mvn/version "0.1.0"}

Leiningen project.clj

[io.github.notusinggithub/wan27-clj "0.1.0"]

Quick Start

(ns my-app.core
  (:require [wan27 :as wan27]))

;; Initialize client (reads WAN27_ACCESS_TOKEN by default)
(def client (wan27/client))

;; Inspect canonical platform URLs
wan27/urls
;; => {:website "https://wan2-7.io/", :mcp "https://wan2-7.io/mcp/", ...}

;; Check credit balance (see https://wan2-7.io/pricing/)
(wan27/account-balance client)

;; Estimate generation credits first
(wan27/estimate-cost client {:model "wan2.7-image"
                             :prompt "Architectural sketch of a modern glass pavilion"
                             :aspect-ratio "16:9"})

;; Submit idempotent image generation with a 16-128 character request-id
(wan27/generate-image client {:prompt "Architectural sketch of a modern glass pavilion"
                              :request-id "req_20261028_pavilion_0001"
                              :aspect-ratio "16:9"})

;; Poll task status
(wan27/get-task client "task_01JXYZ")

License

MIT License — see LICENSE.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close