cracked-smart-run
Cracked smart run
A smart run is POST https://cracked.ai/v1/run with a capability id instead of a provider and endpoint. Cracked selects the best live candidate for that capability, maps the canonical input onto the provider's schema, runs it, and retries the next candidate when the upstream fails (BLOCKED, FAILED, TIMED_OUT, 5xx, 408, 429; up to 3 attempts). Auth: Authorization: Bearer $CRACKED_API_KEY (see build-with-cracked for setup and self-registration).
curl -s https://cracked.ai/v1/run \
-H "Authorization: Bearer $CRACKED_API_KEY" -H "content-type: application/json" \
-d '{"capability":"web-search","input":{"query":"peptide therapy","limit":5}}'
The response is a normal run record (status, output, billing.totalUsd, providerResponse.httpStatus, hints) plus:
capability: the id that was runroutedTo:{provider, endpoint}that served it; pinning it for repeat runs gives stable output shapesattempts:[{provider, endpoint, status, httpStatus, error?, runId?}]; when every candidate fails, the last record carries the full list
"query":"tiktok followers" in place of capability is a fuzzy alias. Unknown ids return 404 CAPABILITY_NOT_FOUND with the five closest ids. Async scrapers take "wait": false exactly like a direct run; the first candidate that answers 202 RUNNING is the one to poll at GET /v1/runs/{runId}?wait=30. A direct provider/endpoint run is the fallback when an input the canonical schema does not expose is needed.
The list below is public and free: GET https://cracked.ai/v1/capabilities (all, with input schema and ranked candidates) or ?id=<id> for one. Required fields are marked; optional ones follow.