OpenMayhem Jobs API

The Jobs API from OpenMayhem — 2 operation(s) for jobs.

GitHub OpenAPI

Operations 3

GET /jobs List recent jobs #
GET /jobs/{id} Poll job status, cost and artifacts #
DELETE /jobs/{id} Cancel a running job #

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/openmayhem-ai:openmayhem-ai-jobs-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

openmayhem-ai-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenMayhem Jobs API
  version: 1.0.0
  description: 'Pay-per-use AI inference over a decentralised provider network. OpenAI-compatible where an equivalent exists. Billing is reserve-then-settle from prepaid credit; every charge settles against a provider-signed receipt. Human docs: https://openmayhem.ai/docs (each page also at /docs/.md).'
servers:
- url: https://api.openmayhem.ai/v1
security:
- bearerAuth: []
tags:
- name: Jobs
paths:
  /jobs:
    get:
      summary: List recent jobs
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Recent jobs for the account.
          content:
            application/json:
              schema:
                type: object
                required:
                - object
                - data
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Job'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Jobs
      operationId: getJobs
      x-operation-id-source: derived
  /jobs/{id}:
    get:
      summary: Poll job status, cost and artifacts
      description: 'Text in a finished job''s result (answers, reasoning, tool calls, transcripts, prompts) is deleted five minutes after the first read of the finished job and at most one hour after it finishes; the result then carries text_expired: true. Status, usage, cost and receipts remain.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Job id.
      responses:
        '200':
          description: The job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Unknown job or owned by another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Jobs
      operationId: getJobsById
      x-operation-id-source: derived
    delete:
      summary: Cancel a running job
      description: Work the provider already completed is still billed.
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Job id.
      responses:
        '200':
          description: The cancelled job.
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Unknown job or owned by another account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Jobs
      operationId: deleteJobsById
      x-operation-id-source: derived
components:
  schemas:
    ErrorEnvelope:
      type: object
      description: Most errors. Failures before body parsing (missing/invalid key, oversized body) are the flat inner object without the error wrapper.
      properties:
        error:
          type: object
          required:
          - statusCode
          - message
          properties:
            statusCode:
              type: integer
            message:
              type: string
            code:
              $ref: '#/components/schemas/ErrorCode'
            retryAfterSeconds:
              type: integer
            retryable:
              type: boolean
              description: 'Screening errors: false for a confirmed policy denial; true when review is temporarily unavailable.'
            request_id:
              type: string
              description: Correlation ID for the request, including a screening refusal before purchase.
            policy:
              type: string
              enum:
              - minor_sexual_exploitation
              - targeted_violence
              - fraud
              - credential_theft
              description: Confirmed content_policy_violation only.
            model:
              type: string
              description: 'price_ceiling_exceeded only: the model of the request.'
            field:
              type: string
              enum:
              - max_input_price_per_million_usd
              - max_output_price_per_million_usd
              - max_representative_request_price_usd
              description: 'price_ceiling_exceeded only: the ceiling the price is above.'
            ceiling:
              type: string
              description: 'price_ceiling_exceeded only: the ceiling in USD.'
            current:
              type: string
              description: 'price_ceiling_exceeded only: the model''s current retail price in that unit, as exact USD.'
            details:
              type: array
              description: '422 only: each invalid field.'
              items:
                type: object
                properties:
                  path: {}
                  message:
                    type: string
    ErrorCode:
      type: string
      description: Stable machine-readable cause.
      enum:
      - content_policy_violation
      - policy_review_unavailable
      - missing_api_key
      - invalid_api_key
      - insufficient_scope
      - model_not_allowed
      - key_spend_limit_exceeded
      - request_cost_limit_exceeded
      - retail_cost_limit_exceeded
      - price_ceiling_exceeded
      - account_not_active
      - insufficient_credit
      - invalid_content_length
      - request_body_too_large
      - contract_attribute_required
      - invalid_request
      - invalid_catalog_filter
      - invalid_routing_control
      - routing_control_not_public
      - routing_control_not_supported_for_endpoint
      - incompatible_routing_constraints
      - validation_failed
      - model_not_found
      - job_not_found
      - request_not_found
      - artifact_not_found
      - artifact_expired
      - endpoint_not_supported
      - token_count_unsupported
      - token_count_failed
      - idempotency_in_flight
      - idempotency_conflict
      - idempotency_replay_unavailable
      - rate_limited
      - client_closed
      - state_conflict
      - upstream_error
      - capacity_unavailable
      - no_provider_satisfies_attestation_tier
      - no_provider_satisfies_quant
      - context_requirement_unavailable
      - preferred_provider_unavailable
      - context_capacity_unavailable
      - no_provider_within_price_band
      - confidential_compute_unavailable
      - api_key_verification_unavailable
    Job:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - submitted
          - running
          - reconciling
          - completed
          - failed
          - cancelled
        polling_url:
          type: string
        cost:
          type: string
          description: USD, set once settled.
        retail_cost_limit:
          type:
          - string
          - 'null'
          description: Effective per-request retail USD cap after combining request and API-key limits.
        routing:
          type: object
          description: Validated routing controls frozen when the job was submitted.
          additionalProperties: true
        artifacts:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              content_type:
                type: string
              size_bytes:
                type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from the dashboard, format sk-om-v1-...