Send your key as a bearer token: Authorization: Bearer YOUR_API_KEY. Each key carries scopes; a request outside them is refused with missing_scope.
Every generation needs max_credits (in US dollars) and an Idempotency-Key. A run priced above max_credits, or above your balance, is refused before anything starts. Orders never take payment: they return a checkout link a person opens to pay.
Per key: 120 requests a minute, 10 new generations a minute and 5 orders a minute. Over the limit you get rate_limited with a Retry-After header.
| Method | Path | Scope | What it does |
|---|---|---|---|
| GET | /api/v1/models | Any key | List the models you can run, with prices |
| POST | /api/v1/generations | studio:write | Start a generation |
| POST | /api/v1/generations/quote | studio:read | Quote a generation |
| GET | /api/v1/generations/{id} | studio:read | Read a generation and its output |
| POST | /api/v1/generations/{id}/cancel | studio:write | Cancel a run that has not started; you are refunded |
| GET | /api/v1/wallet | studio:read | Your wallet balance |
| GET | /api/v1/services | Any key | List the services you can order |
| POST | /api/v1/orders | orders:write | Create an order and get its checkout link (no payment taken) |
| POST | /api/v1/quips/official | quips:official | Post as Quewd (platform owner) |
Only the platform owner's API keys with the quips:official scope can post as the official Quewd account; every other key gets 403. Up to 280 characters, an optional https link and Library media. One post a minute and 30 a day; send an Idempotency-Key so a retry never posts twice. Add the quips:review scope, or "status": "draft", to approve each post in the admin Quips list first. The same is the MCP tool post_official_quip.
curl -X POST https://quewd.com/api/v1/quips/official \
-H "Authorization: Bearer $QUEWD_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: release-2026-11-18" \
-d '{"text":"Product update: the official Quewd account is on Quips.","link":"https://quewd.com/quips/official"}'Method: POST
URL: https://quewd.com/api/v1/quips/official
Authentication: Generic Credential Type > Header Auth
Name: Authorization
Value: Bearer <your key> (an n8n credential, never in the workflow)
Send Headers: Idempotency-Key = {{ $execution.id }}
Send Body: JSON
{ "text": "{{ $json.text }}", "link": "{{ $json.link }}", "status": "draft" }
Retry On Fail: on (a 429 means wait a minute)Errors are JSON: an error object with code, message and details. The code is stable; the message may change.
| Code | Status |
|---|---|
| unauthorized | 401 |
| missing_scope | 403 |
| forbidden | 403 |
| not_found | 404 |
| method_not_allowed | 405 |
| invalid_request | 400 |
| idempotency_key_required | 400 |
| max_credits_exceeded | 402 |
| insufficient_balance | 402 |
| conflict | 409 |
| rate_limited | 429 |
| model_unavailable | 503 |
| generation_failed | 502 |
| unavailable | 503 |
| internal_error | 500 |