# Windpaint > Documentation for Windpaint: one API for generating images and video, with every output kept as an asset in your project. ## Documentation ### Get started - [Introduction](https://docs.windpaint.ai/index.md): Windpaint is one API for generating images and video, with every output kept as an asset in your project. - [Quickstart](https://docs.windpaint.ai/quickstart.md): Go from a new Windpaint account to your first generated image in a few minutes: request access, create an API key, and call the API with curl or the CLI. - [Concepts](https://docs.windpaint.ai/concepts.md): The core objects in Windpaint: organizations, projects, capabilities, models, jobs, assets, workflows, and credits. - [Pricing](https://docs.windpaint.ai/pricing.md): How Windpaint bills: prepaid credits, a fixed price per output, holds that are released on failure, storage, estimates, top-ups, and a worked example. ### Generation - [Overview](https://docs.windpaint.ai/generation/overview.md): How a generation request works: capabilities, the request body, the async job lifecycle, polling, cancellation and the errors you'll see at submit. - [Models](https://docs.windpaint.ai/generation/models.md): Which capabilities have a live model, what each model supports and costs, and how to read the current catalog from the API. - [Images](https://docs.windpaint.ai/generation/images.md): Generate images with image.generate: resolution and aspect ratio, pixel sizes, seeds, prompting and reading the output. - [Video](https://docs.windpaint.ai/generation/video.md): Coming soon: 5-second clips with video.generate and wan-2.2-i2v: start frames, sizes, timing, and chaining an image into a video. - [Inputs](https://docs.windpaint.ai/generation/inputs.md): What you can pass as an input to a job: asset ids, https URLs and data URIs, the supported formats and size limits, and the errors you get when an input doesn't fit. - [Presets](https://docs.windpaint.ai/generation/presets.md): Named, versioned prompt templates and settings for image.generate and video.generate that you apply with one field. - [Prompting](https://docs.windpaint.ai/generation/prompting.md): Practical prompt advice for z-image-turbo, flux-2-klein-4b and wan-2.2-i2v (coming soon), with example prompts, and how seed, aspect ratio and resolution affect the result. - [Moderation](https://docs.windpaint.ai/generation/moderation.md): Windpaint's content policy: what is blocked, the auto and low moderation levels, how blocked prompts and outputs are reported, and why they're never charged. - [Assets](https://docs.windpaint.ai/generation/assets.md): Upload files, list and read assets, download their bytes, use them as inputs to generation jobs, and delete them. - [Job webhooks](https://docs.windpaint.ai/generation/webhooks.md): Get a signed POST when a generation job or workflow run starts or finishes: events, body, signature verification, retries and the signing secret. - [Studio](https://docs.windpaint.ai/generation/studio.md): Generate from the dashboard: the Create page, copying a request as curl, animating an image, and the Runs and Assets pages. ### Workflows - [Workflows](https://docs.windpaint.ai/workflows/overview.md): Pre-built multi-step pipelines you run with one call: list, inspect, estimate, run, poll, and cancel. - [Text to Clip](https://docs.windpaint.ai/workflows/text-to-clip.md): Describe a moment and get a still image, a 5 second video clip, and a cover frame from one call. ### Account - [Organizations and projects](https://docs.windpaint.ai/account/organizations-and-projects.md): How your organization, team roles and projects fit together, and how a request decides which project it acts in. - [API keys](https://docs.windpaint.ai/account/api-keys.md): Create, use, scope, rotate and revoke the API keys that authenticate requests to Windpaint. - [Billing](https://docs.windpaint.ai/account/billing.md): Prepaid credits: what your balance means, where credits come from, how jobs spend them, and how to top up and watch your balance. - [Retention and storage](https://docs.windpaint.ai/account/retention.md): How long Windpaint keeps your assets, how to change it, what storage past the free 7 days costs, and how to delete assets. - [Account webhooks](https://docs.windpaint.ai/account/webhooks.md): Receive signed notifications about your organization (members, API keys, support tickets, low balance) at your own HTTPS endpoint. - [Data use and privacy](https://docs.windpaint.ai/account/data-and-privacy.md): Windpaint does not train on your prompts, inputs or outputs. Who can see your data, where it's stored, and which service providers handle it. ## Agents ### Overview - [Agents](https://docs.windpaint.ai/agents/overview.md): Let a coding agent generate images and video with Windpaint through the MCP server, the skills plugin, or the CLI. ### Connect - [MCP server](https://docs.windpaint.ai/agents/mcp.md): Connect any MCP client to the hosted Windpaint MCP server: authentication, all 20 tools, and the errors agents see. - [Claude Code](https://docs.windpaint.ai/agents/claude-code.md): Install the Windpaint plugin in Claude Code to generate images (and video, coming soon) from your terminal session. - [Codex](https://docs.windpaint.ai/agents/codex.md): Install the Windpaint plugin in OpenAI Codex to generate images (and video, coming soon) from your coding session. - [Cursor](https://docs.windpaint.ai/agents/cursor.md): Add the Windpaint plugin or MCP server to Cursor to generate images (and video, coming soon) from the agent. - [Skills](https://docs.windpaint.ai/agents/skills.md): The five Windpaint agent skills: what each one teaches an agent, and how to install them. ## Cookbook ### Overview - [Cookbook](https://docs.windpaint.ai/cookbook/index.md): Complete, runnable recipes for building on the Windpaint API. ### Recipes - [Image to video pipeline](https://docs.windpaint.ai/cookbook/image-to-video-pipeline.md): Generate a few stills, pick the best one, animate it into a 5 second clip, and download it, in Python or with the CLI. - [Batch product shots](https://docs.windpaint.ai/cookbook/batch-product-shots.md): Generate many product-shot variations across seeds and aspect ratios concurrently, with a cost check first, idempotency keys so retries never bill twice, and rate-limit backoff. - [Webhook receiver](https://docs.windpaint.ai/cookbook/webhook-receiver.md): A FastAPI service that verifies signed job and workflow run webhooks, saves the outputs exactly once, and catches anything whose webhook never arrived. - [Media in your app](https://docs.windpaint.ai/cookbook/media-in-your-app.md): Let your users generate and view Windpaint images and video without ever exposing your API key: a backend proxy, signed URLs, and copying to your own storage. - [Game asset set](https://docs.windpaint.ai/cookbook/game-assets.md): Generate a matching set of game item icons from one style prompt, pick a candidate for each, cut out the background and pack them into a sprite atlas your engine can load. ## CLI ### Get started - [Install](https://docs.windpaint.ai/cli/install.md): Install the windpaint CLI on macOS, Linux or Windows, then upgrade or remove it. - [Authentication](https://docs.windpaint.ai/cli/authentication.md): Sign the CLI in with an API key or your email and password, and override it in CI. - [Configuration](https://docs.windpaint.ai/cli/configuration.md): How the CLI resolves its API URL, key and project: flags, environment variables and the config file. - [Scripting and agents](https://docs.windpaint.ai/cli/scripting-and-agents.md): JSON output, stderr progress, the error shape, exit codes, and patterns for scripts and coding agents. ### Commands - [Generation commands](https://docs.windpaint.ai/cli/commands/generation.md): Command reference for capabilities, models, estimate, run, status, cancel and requests. - [Asset commands](https://docs.windpaint.ai/cli/commands/assets.md): Command reference for upload, assets list and get, and download. - [Workflow commands](https://docs.windpaint.ai/cli/commands/workflows.md): Command reference for workflows list, get, estimate and run, and runs list, get and cancel. - [Account commands](https://docs.windpaint.ai/cli/commands/account.md): Command reference for balance, projects, config show, version and auth. ## API Reference ### Overview - [Introduction](https://docs.windpaint.ai/api-reference/introduction.md): Base URL, versioning, response envelopes, pagination and the other conventions every Windpaint endpoint follows. - [Authentication](https://docs.windpaint.ai/api-reference/authentication.md): Every request takes an API key as a bearer token; the key's role decides which endpoints it can call. - [Errors](https://docs.windpaint.ai/api-reference/errors.md): The error envelope, every status and code the API returns, the error codes of failed jobs, and which requests are safe to retry. - [Rate limits](https://docs.windpaint.ai/api-reference/rate-limits.md): Per-organization limits on concurrent jobs, submits per minute and requests per minute, the tiers that set them, the headers that report them, and how to handle 429. - [Idempotency](https://docs.windpaint.ai/api-reference/idempotency.md): Send an Idempotency-Key header on submits, uploads and workflow runs so a retry after a timeout returns the original response instead of creating and billing a second job. - [OpenAPI spec and SDK](https://docs.windpaint.ai/api-reference/openapi.md): The public OpenAPI 3.1 document for the Windpaint API, what it covers and where it's incomplete, and the Python client preview. ### Generation - [Capabilities and models](https://docs.windpaint.ai/api-reference/generation/catalog.md): List the capabilities Windpaint defines, the models that implement them, and each model's current price per tier. - [Presets](https://docs.windpaint.ai/api-reference/generation/presets.md): List the named prompt templates and settings Windpaint publishes for a capability, and read one by slug. - [Estimate](https://docs.windpaint.ai/api-reference/generation/estimate.md): Price a generation request and get its output size without submitting it or spending credits. - [Submit a job](https://docs.windpaint.ai/api-reference/generation/submit.md): Submit a generation job by capability or by model. Jobs run asynchronously and return a request id to poll. - [Requests](https://docs.windpaint.ai/api-reference/generation/requests.md): List generation jobs, poll or stream a job's status, cancel a job that hasn't finished, and delete a finished job's assets. - [Uploads](https://docs.windpaint.ai/api-reference/generation/uploads.md): Upload an image, video or audio file as an asset you can pass to a generation job. - [Assets](https://docs.windpaint.ai/api-reference/generation/assets.md): List and read the files in your project, uploads and generated outputs alike, download their bytes, and delete them. ### Workflows - [Workflows](https://docs.windpaint.ai/api-reference/workflows/workflows.md): List the workflows you can run, read one workflow's input form, and price a run before starting it. - [Workflow runs](https://docs.windpaint.ai/api-reference/workflows/runs.md): Start a workflow run, poll or stream it, list past runs, and cancel a run in progress. - [Activities list](https://docs.windpaint.ai/api-reference/activities.md): Page through standalone generation jobs and workflow runs in one newest-first list. ### Account - [Projects](https://docs.windpaint.ai/api-reference/projects.md): List, create, read, update and archive the projects that hold your jobs, assets and runs. - [API keys](https://docs.windpaint.ai/api-reference/api-keys.md): Create, list, read, update and revoke API keys. - [Webhooks](https://docs.windpaint.ai/api-reference/webhooks.md): Manage account webhooks, the job webhook signing secret, and the job webhook delivery log. - [Billing](https://docs.windpaint.ai/api-reference/billing.md): Read your credit balance, statement, holds, usage and rate limits; set the low-balance warning and asset retention; and buy credits through Stripe Checkout. ## Changelog ### Changelog - [Changelog](https://docs.windpaint.ai/changelog.md): Customer-visible changes to the Windpaint API, CLI, MCP server, agent skills and docs, newest first.