SeqBench Codon usage API

Codon optimization and codon adaptation index (CAI).

GitHub OpenAPI

Operations 3

POST /codon_optimize Codon optimizer #
POST /codon_adaptation_index CAI analyzer #
POST /start_region_recode Check and recode the start region of a coding sequence (OSTIR) #

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/seqbench-com:seqbench-com-codon-usage-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

seqbench-com-codon-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Seqbench Com Codon usage API
  version: 1.1.0
  contact:
    name: SeqBench
    url: https://seqbench.com
    email: team@seqbench.com
  license:
    name: Free to use
    url: https://seqbench.com/terms
  description: 'Operations tagged Codon usage across 2 of this provider''s published API definitions: seqbench-com-openapi.json, seqbench-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://seqbench.com/api/v1
  description: Production
security:
- {}
tags:
- name: Codon usage
  description: Codon optimization and codon adaptation index (CAI).
paths:
  /codon_optimize:
    post:
      tags:
      - Codon usage
      operationId: codon_optimize
      summary: Codon optimizer
      description: 'Codon-optimize a protein (or coding DNA) for an expression host by picking the most-frequent codon per residue.


        Batchable via `POST /batch`.


        Chainable in workflows (passes its `dna` field to the next step).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                protein:
                  type: string
                  residues: any
                  description: Protein sequence (one-letter codes). Coding DNA/RNA is accepted and translated in frame +1 up to the first stop codon (residues after an in-frame stop are NOT optimized).
                organism:
                  type: string
                  enum:
                  - ecoli
                  - human
                  - yeast
                  - cho
                  - pichia
                  - insect
                  - arabidopsis
                  - zebrafish
                  default: ecoli
                inputType:
                  type: string
                  enum:
                  - auto
                  - protein
                  - dna
                  default: auto
                  description: How to read `protein`. 'auto' guesses from the alphabet (>90% ACGTUN reads as DNA), which mis-files genuine Ala/Cys/Gly/Thr/Asn-only peptides — set 'protein' or 'dna' to force it.
              required:
              - protein
              additionalProperties: false
      responses:
        '200':
          description: Tool ran successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Invalid argument or the tool could not run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Unknown tool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://seqbench.com/api/v1
      description: Production
  /codon_adaptation_index:
    post:
      tags:
      - Codon usage
      operationId: codon_adaptation_index
      summary: CAI analyzer
      description: 'Codon Adaptation Index (CAI) and per-codon relative adaptiveness of a CDS against an expression host, with rare-codon and GC3 analysis.


        Batchable via `POST /batch`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sequence:
                  type: string
                  residues: nt
                  description: Coding sequence (DNA/RNA; should start in-frame at ATG).
                organism:
                  type: string
                  enum:
                  - ecoli
                  - human
                  - yeast
                  - cho
                  - pichia
                  - insect
                  - arabidopsis
                  - zebrafish
                  default: ecoli
                frameStart:
                  type: integer
                  default: 1
                  description: 1-based position to start reading codons.
                rareThreshold:
                  type: number
                  default: 0.1
                  description: Relative adaptiveness (w) below this flags a codon as rare.
                minRareRun:
                  type: integer
                  default: 3
                  description: Shortest stretch of CONSECUTIVE rare codons to report as a run. A CAI is a geometric mean, so fifteen rare codons scattered singly and the same fifteen in three runs of five score alike and carry the same rareCount; only the runs say where they are clustered.
              required:
              - sequence
              additionalProperties: false
      responses:
        '200':
          description: Tool ran successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Invalid argument or the tool could not run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Unknown tool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://seqbench.com/api/v1
      description: Production
  /start_region_recode:
    post:
      tags:
      - Codon usage
      operationId: start_region_recode
      summary: Check and recode the start region of a coding sequence (OSTIR)
      description: 'Check how strongly structured the mRNA is around the start codon of an E. coli coding sequence and, when the model predicts that a synonymous recoding of codons 2-11 can open it by a gain it can reliably rank (5-fold or more), return that recoding with the predicted before and after. Scores the original and up to 99 candidate recodings with OSTIR in one request, in a default RBS context unless you supply your own 5'' UTR. The protein is identical before and after, only those codons change, and no rare codon is introduced. This is failure avoidance, not maximisation: structure at the start codon is the best-supported synonymous lever on expression in E. coli, but codon content also matters, the model scores initiation only, and the tool makes no claim about what a recoded gene expresses. Rates are on an arbitrary scale and only ratios between them mean anything. Runs ViennaRNA on a shared service and is therefore rate limited (see 429/503).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                cds:
                  type: string
                  residues: nt
                  description: Coding sequence, raw or FASTA, starting at its start codon. Only the first 50 codons are read. DNA (T) and RNA (U) are both accepted; A, C, G, T/U only. Max 10,000 nt.
                currentUtr:
                  type: string
                  description: 'Optional: your 5'' UTR, everything upstream of the start codon. Only the last 35 nt reach the model. Omit it for the default context the response describes — a strong ribosome binding site on an unstructured leader, which is an assumption and not a measurement.'
              required:
              - cds
              additionalProperties: false
      responses:
        '200':
          description: Tool ran successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Invalid argument or the tool could not run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Unknown tool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://seqbench.com/api/v1
      description: Production
components:
  schemas:
    SuccessResponse:
      type: object
      description: Standard success envelope returned by every single-tool call.
      properties:
        ok:
          const: true
        tool:
          type: string
          description: The tool slug that ran.
        result:
          type: object
          additionalProperties: true
          description: Tool-specific output object. Its shape depends on the tool — call `GET /{tool}` or see the docs for each tool's fields.
        gate:
          oneOf:
          - $ref: '#/components/schemas/GateResult'
          - type: 'null'
          description: Typed QC verdict, or null when the tool defines no gate or the call lacked gating inputs (e.g. no targetTm).
        provenance:
          $ref: '#/components/schemas/Provenance'
      required:
      - ok
      - tool
      - result
      - provenance
    GateCheck:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        severity:
          type: string
          enum:
          - hard
          - soft
        pass:
          type: boolean
        message:
          type: string
        value:
          type: number
        threshold:
          type: string
      required:
      - id
      - label
      - severity
      - pass
      - message
    ErrorResponse:
      type: object
      description: Standard error envelope for single-tool calls.
      properties:
        ok:
          const: false
        tool:
          type: string
        error:
          type: string
          description: Human-readable error message.
        code:
          type: string
          enum:
          - invalid_argument
          - unsupported
          - upstream_unavailable
          - upstream_timeout
          - rate_limited
          - internal_error
        retryable:
          type: boolean
        suggestedAction:
          type: string
      required:
      - ok
      - error
    Provenance:
      type: object
      properties:
        apiVersion:
          type: string
          example: 1.1.0
        tool:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          description: Tool slug, or an array of slugs (one per step) for a workflow.
        generatedAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the result was generated.
      required:
      - apiVersion
      - tool
      - generatedAt
    GateResult:
      type: object
      properties:
        pass:
          type: boolean
          description: True if and only if every hard check passed.
        checks:
          type: array
          items:
            $ref: '#/components/schemas/GateCheck'
        notChecked:
          type: array
          items:
            type: string
          description: Honest list of what this gate does NOT verify.
      required:
      - pass
      - checks
      - notChecked
externalDocs:
  description: SeqBench API & MCP documentation
  url: https://seqbench.com/mcp
x-refined-from:
- seqbench-com-openapi.json
- seqbench-com-openapi.json