▲HIGHLAND DOCS

Fine-tune dataset validator API

Checks chat (OpenAI-style), messages (Anthropic-style) or Alpaca JSONL: per-line errors, role order, empty turns, duplicates, token estimates and a training-cost estimate from your price. This is one of 71 pay-per-call tools in the Highland Intel API, also available as an MCP tool named dataset-validate.

Price

2¢ per successful call (USD). 1 credit = 1 US cent. After the daily free allowance, pay with credits or per call with x402 (USDC on Base). Category: AI.

Try it

POST https://api.highlnd-intel.group/v1/api/dataset-validate with a Bearer key and a JSON body.

curl · API key
curl -s https://api.highlnd-intel.group/v1/api/dataset-validate \
  -H "authorization: Bearer $HIGHLAND_KEY" \
  -H "content-type: application/json" \
  -d '{"jsonl":"{\"messages\":[{\"role\":\"system\",\"content\":\"You are terse.\"},{\"role\":\"user\",\"content\":\"Capital of Canada?\"},{\"role\":\"assistant\",\"content\":\"Ottawa.\"}]}\n{\"messages\":[{\"role\":\"user\",\"content\":\"2+2?\"},{\"role\":\"assistant\",\"content\":\"4\"}]}","format":"auto","epochs":3}'
request body
{
  "jsonl": "{\"messages\":[{\"role\":\"system\",\"content\":\"You are terse.\"},{\"role\":\"user\",\"content\":\"Capital of Canada?\"},{\"role\":\"assistant\",\"content\":\"Ottawa.\"}]}\n{\"messages\":[{\"role\":\"user\",\"content\":\"2+2?\"},{\"role\":\"assistant\",\"content\":\"4\"}]}",
  "format": "auto",
  "epochs": 3
}

Request body

FieldTypeRequiredDescription
jsonlstringYesJSONL: one JSON object per line, up to 60,000 characters and 5,000 lines. Blank lines are ignored. (min 1 chars; max 60000 chars)
formatstringNoopenai (messages with system/user/assistant/tool), anthropic (top-level system + user/assistant messages), alpaca (instruction/input/output), or auto to detect from the first parseable row. (one of: auto, openai, anthropic, alpaca; default "auto")
pricePerMillionTokensnumberNoOptional: your training price per million tokens, used only for costEstimate (any currency). (min 0; max 10000)
epochsintegerNoTraining epochs for the cost estimate, 1 to 50. (min 1; max 50; default 3)

What it returns

{ format, lines, valid, invalid, ok, errors: [{ line, code, message }] (first 100), errorCount, errorsTruncated, duplicates: [{ line, firstLine }], duplicateCount, tokens: { total, mean, max }, costEstimate } A successful response wraps that payload in the usual Highland envelope: api, priceCents, payment (for example free_tier or credits), balanceCents, freeUsedToday, freeLimit, freeRemaining, and result.

Get a free API key

No email, no card. The key is shown once.

bash
curl -s -X POST https://api.highlnd-intel.group/v1/keys
export HIGHLAND_KEY="hk_live_paste_yours_here"

Full walkthrough: Quickstart. Key management: API keys. Buy more credits: api.highlnd-intel.group/buy.

MCP and x402

The same tool is available over MCP (Streamable HTTP) at https://api.highlnd-intel.group/mcp as dataset-validate. Connect it in Claude, ChatGPT, Grok, or Cursor and other editors.

OpenAPI: /openapi.json. Catalog: /v1/catalog. This tool in the API reference.

  • Enrich URL API — Profiles one public page: title, summary, organisations and other entities, topics, sentiment and public contact points (12¢)
  • Enrich company API — Company profile from public web sources: name, description, industry, recent signals and the sources used (14¢)
  • Entity extraction API — Named entities of fixed types (person, organization, location, product, event, date, money, law, technology), each found verbatim in your text (10¢)
  • Keywords API — Key phrases of your text, each found verbatim in it; falls back to a frequency ranking if the model answer is unusable (10¢)
  • Sentiment API — Positive, negative or neutral, with a score from -1 to 1, from a sentiment classifier over up to 8,000 characters (10¢)

See every tool on the tool pages index or the API reference.