Windpaint
Overview

Cookbook

Complete, runnable recipes for building on the Windpaint API.

Each recipe is a full walkthrough, not a snippet: prerequisites, complete code against the real endpoints, how to run it, and what to expect. They all assume an API key exported as WINDPAINT_API_KEY (see API keys) and some credits in your organization.

Before you start

  • Generation is async. Every recipe submits a job, then polls its status_url (or waits for a webhook). Images take seconds; video takes minutes.
  • Read models and prices from GET /v1/generation/capabilities rather than hard-coding them. Prices can change; the price of a job is fixed when you submit it.
  • Submits have no idempotency keys. A retried POST creates and bills a second job. The batch recipe shows how to retry safely.