Research paper mining logo

arXiv-to-Production Code & Hyperparameter Compiler

$1.00 USDC per call · Research integrity · POST /api/v1/arxiv-to-code · Id arxiv-to-code

Fetches an arXiv paper's full text (ar5iv), selects method, pseudocode, hyperparameter tables and ablations, and returns a core-algorithm summary, hyperparameters each with a source pointer and a verbatim quote verified against the text, ablation warnings with evidence sentences, and one self-contained TypeScript or Python file that is compile/syntax-checked and literal-checked against the extracted values. Falls back to the abstract (lower confidence) when no full-text rendering exists. Answers within about 80 seconds: if the full text or a model stage is slow, it returns a PARTIAL result with partial and missing naming what was not produced, instead of timing out. Leads with status, confidence and nextStep. Generated code is never executed.

What you get

Turns a paper into a compiling reference implementation with every hyperparameter pinned to a verified quote, so a wrong constant is caught before a training run is paid for.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/arxiv-to-code. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/arxiv-to-code \
  -H 'content-type: application/json' \
  -d '{"arxivId":"1706.03762","targetLanguage":"python"}'

Input

FieldTypeRequiredDescription
arxivIdstring; length 0..120noarXiv id or URL, e.g. 1706.03762 or https://arxiv.org/abs/1706.03762.
searchQuerystring; length 0..300noTitle or keywords; the top arXiv hit is used. Provide exactly one of arxivId or searchQuery.
targetLanguagestring; one of "typescript", "python"yes

Example request body

{
  "arxivId": "1706.03762",
  "targetLanguage": "python"
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "OK", "PARTIAL", "INSUFFICIENT_EVIDENCE"no
confidencenumberno
summarystringnoOne sentence: hyperparameters pinned, code check result, confidence.
nextStepstringnoThe concrete action to take next.
partialbooleannoTrue when a slow upstream or the time budget cut a stage short; missing lists them.
missingarray<object>noStages that did not finish and what each gap means for the result.
timeBudgetobjectnobudgetMs and elapsedMs for this request.
paperobjectno
targetLanguagestringno
coreAlgorithmSummarystringno
extractedHyperparametersarray<object>no
droppedHyperparametersarray<object>no
ablationWarningsarray<object>no
productionCodestringno
codeCheckobjectno
literalCheckobjectno
provenanceobjectnoWhich results were decided deterministically (extractor corroboration, generated constants header, in-place literal patches) and how many model calls were attempted.
evidenceobjectno
warningsarray<string>no
whatWouldChangearray<string>no

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable