BatchHaiku

API docs

Call BatchHaiku from your own scripts with an API key. Each labeled row costs 1 credit. Free accounts are capped to protect Cloudflare AI spend.

1. Create an API key

  1. Sign in at /account
  2. Click Create key and copy the sk_live_… value once

2. Run a batch

curl -X POST https://batchhaiku.dev/api/v1/batch \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "review_sentiment",
    "rows": [
      "Love the new update.",
      "App crashes on Android."
    ]
  }'

Templates: review_sentiment, ticket_sorting, rag_chunk_filter, data_extraction. Max 50 rows per request.

3. Free-tier guardrails

  • New accounts get 200 credits / month
  • Free daily cap: 100 credits (UTC day)
  • Rate limits: 20/min per IP, 15/min per user
  • Paid packs (when Stripe is live): $5 → 20k credits, $20 → 100k, $100 → 600k (~$0.00025 / row on Starter)

4. Example response

{
  "ok": true,
  "output": {
    "templateId": "review_sentiment",
    "count": 2,
    "rows": [
      { "id": 1, "input": "Love the new update.", "label": "positive" },
      { "id": 2, "input": "App crashes on Android.", "label": "negative" }
    ]
  },
  "costCredits": 2,
  "remainingCredits": 198
}

BatchHaiku is an independent third-party tool, NOT affiliated with or endorsed by Anthropic. Live inference runs Claude Haiku 5.5 via Cloudflare AI under your account usage terms.