← Back to marketplace

AI Analyst

Structured AI analysis powered by Workers AI (Llama 3.1). Extract named entities, classify text into custom categories, analyze sentiment with aspect-level detail, or run custom analysis with your own instructions. Returns structured JSON, not free-form text.

ai
by APIHub4 endpoints100% uptime26ms avg

Includes 15 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

POST/analyze
$0.0030/req

Run custom structured analysis with your own instructions. Returns JSON output matching your specified format.

Request schema

textstringrequired

Text to analyze (max 50KB)

instructionsstringrequired

What to analyze and how to structure the output

output_formatstring

JSON format description for the output (optional)

POST/classify
$0.0030/req

Classify text into one or more of your specified categories with confidence scores.

Request schema

textstringrequired

Text to classify

categoriesarrayrequired

Categories to classify into

POST/extract-entities
$0.0030/req

Extract named entities (people, organizations, locations, dates, amounts, products) from text.

Request schema

textstringrequired

Text to extract entities from

entity_typesarray

Entity types to look for (optional, defaults to all)

POST/sentiment
$0.0020/req

Analyze sentiment with overall score and aspect-level breakdown.

Request schema

textstringrequired

Text to analyze sentiment of

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/ai-analyst/analyze" \
  -d '{"text":"example text","instructions":"example instructions","output_format":"example output_format"}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/ai-analyst/analyze \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"example text","instructions":"example instructions","output_format":"example output_format"}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for AI Analyst.

POST /analyze$0.0030/req
-
POST /classify$0.0030/req
-
POST /extract-entities$0.0030/req
-
POST /sentiment$0.0020/req
-