{"id":"arxiv-to-code","title":"arXiv-to-Production Code & Hyperparameter Compiler","description":"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.","roi":"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.","audience":"research","channels":["x402","mcp","rapidapi","apify"],"endpoint":{"method":"POST","url":"https://agents.writerslogic.com/api/v1/arxiv-to-code","path":"/api/v1/arxiv-to-code","contentType":"application/json"},"price":{"amount":"1.00","currency":"USDC","network":"base","perCall":true,"failedCallsCharged":false},"inputSchema":{"type":"object","additionalProperties":false,"required":["targetLanguage"],"properties":{"arxivId":{"type":"string","maxLength":120,"description":"arXiv id or URL, e.g. 1706.03762 or https://arxiv.org/abs/1706.03762."},"searchQuery":{"type":"string","maxLength":300,"description":"Title or keywords; the top arXiv hit is used. Provide exactly one of arxivId or searchQuery."},"targetLanguage":{"type":"string","enum":["typescript","python"]}}},"resultSchema":{"type":"object","properties":{"status":{"type":"string","enum":["OK","PARTIAL","INSUFFICIENT_EVIDENCE"]},"confidence":{"type":"number"},"summary":{"type":"string","description":"One sentence: hyperparameters pinned, code check result, confidence."},"nextStep":{"type":"string","description":"The concrete action to take next."},"partial":{"type":"boolean","description":"True when a slow upstream or the time budget cut a stage short; missing lists them."},"missing":{"type":"array","description":"Stages that did not finish and what each gap means for the result.","items":{"type":"object","properties":{"stage":{"type":"string","enum":["full_text","paper_metadata","model_analysis","hyperparameter_verifier","code_generation","code_repair","code_check"]},"impact":{"type":"string"}}}},"timeBudget":{"type":"object","description":"budgetMs and elapsedMs for this request."},"paper":{"type":"object"},"targetLanguage":{"type":"string"},"coreAlgorithmSummary":{"type":"string"},"extractedHyperparameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"codeIdentifier":{"type":"string"},"value":{"type":"string"},"numericValue":{"type":"number"},"unit":{"type":"string"},"source":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"row":{"type":"integer","description":"1-based table row, 0 if not a table."}}},"quote":{"type":"string","description":"Verified verbatim against the extracted paper text."},"agreement":{"type":"object"},"verifier":{"type":"string"}}}},"droppedHyperparameters":{"type":"array","items":{"type":"object"}},"ablationWarnings":{"type":"array","items":{"type":"object"}},"productionCode":{"type":"string"},"codeCheck":{"type":"object"},"literalCheck":{"type":"object"},"provenance":{"type":"object","description":"Which results were decided deterministically (extractor corroboration, generated constants header, in-place literal patches) and how many model calls were attempted."},"evidence":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"whatWouldChange":{"type":"array","items":{"type":"string"}}}},"outputSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","enum":["OK","PARTIAL","INSUFFICIENT_EVIDENCE"]},"confidence":{"type":"number"},"summary":{"type":"string","description":"One sentence: hyperparameters pinned, code check result, confidence."},"nextStep":{"type":"string","description":"The concrete action to take next."},"partial":{"type":"boolean","description":"True when a slow upstream or the time budget cut a stage short; missing lists them."},"missing":{"type":"array","description":"Stages that did not finish and what each gap means for the result.","items":{"type":"object","properties":{"stage":{"type":"string","enum":["full_text","paper_metadata","model_analysis","hyperparameter_verifier","code_generation","code_repair","code_check"]},"impact":{"type":"string"}}}},"timeBudget":{"type":"object","description":"budgetMs and elapsedMs for this request."},"paper":{"type":"object"},"targetLanguage":{"type":"string"},"coreAlgorithmSummary":{"type":"string"},"extractedHyperparameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"codeIdentifier":{"type":"string"},"value":{"type":"string"},"numericValue":{"type":"number"},"unit":{"type":"string"},"source":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"row":{"type":"integer","description":"1-based table row, 0 if not a table."}}},"quote":{"type":"string","description":"Verified verbatim against the extracted paper text."},"agreement":{"type":"object"},"verifier":{"type":"string"}}}},"droppedHyperparameters":{"type":"array","items":{"type":"object"}},"ablationWarnings":{"type":"array","items":{"type":"object"}},"productionCode":{"type":"string"},"codeCheck":{"type":"object"},"literalCheck":{"type":"object"},"provenance":{"type":"object","description":"Which results were decided deterministically (extractor corroboration, generated constants header, in-place literal patches) and how many model calls were attempted."},"evidence":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"whatWouldChange":{"type":"array","items":{"type":"string"}}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]},"example":{"arxivId":"1706.03762","targetLanguage":"python"},"openapiOperation":{"operationId":"arxiv_to_code","summary":"arXiv-to-Production Code & Hyperparameter Compiler","description":"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.\n\nPrice: 1.00 USDC on Base (x402).","x-x402-price-usdc":"1.00","x-x402-amount":"1000000","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"1.00"}},"x-audience":"research","x-sample-url":"https://agents.writerslogic.com/api/v1/samples/arxiv-to-code","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["targetLanguage"],"properties":{"arxivId":{"type":"string","maxLength":120,"description":"arXiv id or URL, e.g. 1706.03762 or https://arxiv.org/abs/1706.03762."},"searchQuery":{"type":"string","maxLength":300,"description":"Title or keywords; the top arXiv hit is used. Provide exactly one of arxivId or searchQuery."},"targetLanguage":{"type":"string","enum":["typescript","python"]}}},"example":{"arxivId":"1706.03762","targetLanguage":"python"}}}},"responses":{"200":{"description":"Paid result with provenance","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","enum":["OK","PARTIAL","INSUFFICIENT_EVIDENCE"]},"confidence":{"type":"number"},"summary":{"type":"string","description":"One sentence: hyperparameters pinned, code check result, confidence."},"nextStep":{"type":"string","description":"The concrete action to take next."},"partial":{"type":"boolean","description":"True when a slow upstream or the time budget cut a stage short; missing lists them."},"missing":{"type":"array","description":"Stages that did not finish and what each gap means for the result.","items":{"type":"object","properties":{"stage":{"type":"string","enum":["full_text","paper_metadata","model_analysis","hyperparameter_verifier","code_generation","code_repair","code_check"]},"impact":{"type":"string"}}}},"timeBudget":{"type":"object","description":"budgetMs and elapsedMs for this request."},"paper":{"type":"object"},"targetLanguage":{"type":"string"},"coreAlgorithmSummary":{"type":"string"},"extractedHyperparameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"codeIdentifier":{"type":"string"},"value":{"type":"string"},"numericValue":{"type":"number"},"unit":{"type":"string"},"source":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"row":{"type":"integer","description":"1-based table row, 0 if not a table."}}},"quote":{"type":"string","description":"Verified verbatim against the extracted paper text."},"agreement":{"type":"object"},"verifier":{"type":"string"}}}},"droppedHyperparameters":{"type":"array","items":{"type":"object"}},"ablationWarnings":{"type":"array","items":{"type":"object"}},"productionCode":{"type":"string"},"codeCheck":{"type":"object"},"literalCheck":{"type":"object"},"provenance":{"type":"object","description":"Which results were decided deterministically (extractor corroboration, generated constants header, in-place literal patches) and how many model calls were attempted."},"evidence":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"whatWouldChange":{"type":"array","items":{"type":"string"}}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]}}}},"400":{"description":"Invalid request (no payment consumed)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"401":{"description":"Invalid X-API-KEY","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"402":{"description":"Payment required or invalid","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"code":{"type":"string"},"resource":{"type":"object"},"accepts":{"type":"array","items":{"type":"object"}},"extensions":{"type":"object"}}}}}},"502":{"description":"Upstream failure; the payment is released or not settled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}}}},"links":{"docs":"https://agents.writerslogic.com/docs/arxiv-to-code/","docsJson":"https://agents.writerslogic.com/docs/arxiv-to-code.json","sample":"https://agents.writerslogic.com/api/v1/samples/arxiv-to-code","openapi":"https://agents.writerslogic.com/openapi.json","catalog":"https://agents.writerslogic.com/api/v1/catalog","verifyProvenance":"https://agents.writerslogic.com/api/v1/verify-provenance","index":"https://agents.writerslogic.com/docs/index.json"}}