Wind Wind / Docs
Dashboard

Billing

Features

Features are the billing units of Wind — one feature per AI capability in your app.

What are features?

A feature is a named AI endpoint in your app with its own pricing rule. Every request to /v1/chat/completions must include a feature_id that matches a feature you've created.

Examples: chat, image-gen, doc-summarize, code-review. Each feature can use a different model and pricing strategy.

Request → feature lookup

POST /v1/chat/completions

"feature_id": "chat" ← looks up "chat" feature → gets model + price

Pricing modes

per_call

Fixed price deducted per request, regardless of tokens used. Good for image generation or predictable workloads.

Example: $0.10 per request

User charge = price_cents

per_token

Charge a markup on the actual provider cost. You always earn a margin. Good for chat or variable-length tasks.

Example: 1.5× provider cost

User charge = provider_cost × multiplier

Fee breakdown

profit = user_charge − provider_cost

platform_fee = ceil(profit × 5%)

your_earnings = profit − platform_fee

Creating a feature

Dashboard

  1. 1 Open your app in the Dashboard
  2. 2 Go to the Features tab
  3. 3 Click New Feature
  4. 4 Set the Feature ID, name, pricing mode, and optionally lock to a model
  5. 5 Save — the feature is live immediately

CLI

shell
# Install the CLI
npm install -g trywind-cli
wind login

# Create a per_call feature
wind features create feat_chat --name "AI Chat" --price 0.10

# Create a per_token feature with a model lock
wind features create feat_image \
  --name "Image Gen" \
  --pricing-model per_token \
  --multiplier 1.5 \
  --model google/gemini-2.5-flash-image

API

typescript
await fetch('https://wind-production-3225.up.railway.app/v1/features', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer sk_live_...',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    id: 'feat_chat',
    name: 'AI Chat',
    pricing_model: 'per_token',
    multiplier: 1.5,
    min_charge: 0.01,
    model: 'google/gemini-2.5-flash',
  }),
})

Features API

Full CRUD for features via REST.

POST/v1/features
GET/v1/features
GET/v1/features/{feature_id}
PATCH/v1/features/{feature_id}
DELETE/v1/features/{feature_id}

See the full request/response shapes in API Reference → Features API.