Quick start
QUEWD API
  • Dashboard
  • Explore models
  • Quick start
  • Documentation
  • Pricing
  • API keys
  • Analytics
  • Billing
  • Top up
  • Contact sales
  • Status
Ask your assistant

Quickstart

  1. 1

    Create a key

    Open API keys and create a key with the scopes you need. You see the key once; keep it secret.

    API keys
  2. 2

    Check your wallet

    Runs are paid from your account's wallet. Add funds on the Billing page if the balance is low.

    Billing
  3. 3

    Start a generation

    Send the model, the prompt and max_credits, the most you agree to pay in US dollars. Add an Idempotency-Key so a retry never charges twice.

  4. 4

    Read the result

    Poll the generation until its status is succeeded, failed or canceled. A failed or canceled run is refunded.

    Documentation
curl
curl -X POST https://quewd.com/api/v1/generations \
  -H "Authorization: Bearer $QUEWD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"soul-2.0","prompt":"A product on a clean studio table, soft light","max_credits":1}'
JavaScript
const response = await fetch("https://quewd.com/api/v1/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.QUEWD_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    "model": "soul-2.0",
    "prompt": "A product on a clean studio table, soft light",
    "max_credits": 1
  }),
});
const generation = await response.json();
// Poll GET /api/v1/generations/{id} until status is succeeded, failed or canceled.
Python
import os, uuid, requests

response = requests.post(
    "https://quewd.com/api/v1/generations",
    headers={
        "Authorization": f"Bearer {os.environ['QUEWD_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "model": "soul-2.0",
        "prompt": "A product on a clean studio table, soft light",
        "max_credits": 1
    },
)
generation = response.json()
# Poll GET /api/v1/generations/{id} until status is succeeded, failed or canceled.