● nureta
Docs

Get started

Add funds, create an API key, check your balance and paste the task helper that every Nureta Developer API guide uses.

Set up once, then follow any guide in the sidebar: each feature has its own page under Video, Image or Script. Every command can be copied as it is. The guides use the cheapest settings (480p, short clips), so each one costs a few cents or dollars.

You need curl and jq (a JSON tool) for the shell examples, or Python 3 with requests, or Node.js 18 or later.

Step 1. Add funds

The API charges a prepaid balance. A new account has $0, and every generation then returns 403 AccountOverdueError.

  1. Sign in on developer.nureta.ai and open the Billing page.
  2. Under Top up with USDC, choose a method:
    • Direct transfer / QR code: send USDC on Base from any wallet to the deposit address shown.
    • Connected wallet (x402): an x402-compatible wallet or agent pays for you.
  3. Enter an amount of $30 or more and confirm. 1 USDC = $1.00 of balance.

The minimum top-up is $30

A top-up request under $30 is refused. A transfer of less than $30 to a deposit address is not credited to your balance. If that happened to you, email support with the transaction hash.

Step 2. Create an API key and set two variables

Create a key on the API keys page. Copy it at once: the page shows it only once. Then set it in your shell. All the shell examples in these docs read these two variables:

export NURETA_URL="https://developer.nureta.ai"
export NURETA_KEY="sk-..."   # your key. Never put it in client-side code or a public repo.

Step 3. Check your balance

curl -s "$NURETA_URL/api/v3/account" -H "Authorization: Bearer $NURETA_KEY"

Response:

{"balance_usd": 30}

A 401 AuthenticationError means the key is wrong or revoked.

Step 4. A helper that waits for a task

Every generation is a task: you create it, then you read it again until it is finished. Paste this shell function once. The other shell examples use it.

# wait_task <task url>: polls every 10 s, prints the step, returns the final task view.
wait_task() {
  while true; do
    T=$(curl -s "$1" -H "Authorization: Bearer $NURETA_KEY")
    S=$(printf '%s' "$T" | jq -r .status)
    case "$S" in
      succeeded|failed|cancelled|planned) printf '%s\n' "$T"; return ;;
      null|"") echo "$T" >&2; return 1 ;;   # an error answer (wrong id, key or route): stop
    esac
    echo "status=$S step=$(printf '%s' "$T" | jq -c .step)" >&2
    sleep 10
  done
}

A task ends as succeeded, failed or cancelled. An edit-mode task also stops at planned and waits for you. A failed task is refunded automatically.