WritersLogic Verifiable AI Agent Hub Arxiv To Code API

The Arxiv To Code API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for arxiv to code.

GitHub OpenAPI

Operations 1

POST /api/v1/arxiv-to-code arXiv-to-Production Code & Hyperparameter Compiler #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/writerslogic-com:writerslogic-com-arxiv-to-code-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

writerslogic-com-arxiv-to-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WritersLogic Verifiable AI Agent Hub Arxiv To Code API
  version: 2.0.0
  description: Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
  contact:
    name: WritersLogic
    url: https://writerslogic.com/agents
    email: agents@writerslogic.com
servers:
- url: https://agents.writerslogic.com
tags:
- name: Arxiv To Code
paths:
  /api/v1/arxiv-to-code:
    post:
      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.


        Price: 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
      tags:
      - Arxiv To Code
components:
  securitySchemes:
    x402:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: x402 v2 payment payload (base64) sent after a 402 challenge
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY