Zero Slop AI Writing API

One draft, the same checked result as MCP.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /v1/deslop Edit a draft #

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/zero-slop-ai:zero-slop-ai-writing-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

zero-slop-ai-writing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zero Slop Writing API
  version: 2.12.43
  description: Edit one draft through the same hosted pipeline as the Zero Slop MCP tool. Cloudflare Workers AI handles hosted editing first. If it cannot return a usable edit, the service may send the draft and editing inputs through OpenRouter to a free model provider that may keep the draft and the edit or use them to train models. Zero Slop processes drafts and rewrites in memory without storing them. Source checks are heuristic. Review the result before publishing.
  termsOfService: https://zero-slop.ai/terms/
  contact:
    name: Zero Slop
    url: https://github.com/manavmishra/ZeroSlop/issues
servers:
- url: https://mcp.zero-slop.ai
tags:
- name: Writing
  description: One draft, the same checked result as MCP.
paths:
  /v1/deslop:
    post:
      operationId: deslop
      tags:
      - Writing
      summary: Edit a draft
      description: 'Send UTF-8 JSON, at most 128 KiB. Text is limited to 20,000 Unicode code points after trimming for editing; clean_text preserves raw text and counts its full length. Unknown JSON properties are ignored. HTTP 200 means the pipeline returned a result, not that a rewrite passed its checks: inspect status, factsPreserved and passedFinalChecks. Already-clear text needs no model call. There are no automatic retries or stored idempotency results. Allow 75 seconds on the client; client cancellation does not guarantee upstream work has stopped. Access is free, without an API key, subject to shared capacity and a daily editing allowance across MCP, REST, CLI and the demo. Short-lived keyed daily client hashes coordinate abuse limits and are purged after the UTC day. This is best-effort capacity, not a reserved quota or SLA. Call from your application server; browser access is enabled only for https://zero-slop.ai and https://www.zero-slop.ai.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeslopInput'
            example:
              text: It is important to note that Maya owns the pricing review. The team will decide on Friday.
              genre: professional
      responses:
        '200':
          description: A checked pipeline outcome. Inspect status before using text.
          headers:
            X-Request-Id:
              description: A new opaque ID for this HTTP request, not a user identifier.
              schema:
                type: string
                format: uuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeslopResult'
        '400':
          description: Invalid UTF-8, JSON, declared length, or draft fields. Error details never echo the draft.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: The browser origin or requested preflight is not allowed.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '405':
          description: Only POST is supported.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '408':
          description: The request body did not arrive within 10 seconds.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          description: The request body exceeds 128 KiB.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '415':
          description: Send uncompressed application/json.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Shared capacity or the free editing allowance is exhausted (capacity_limit or usage_limit). Wait before choosing to retry.
          headers:
            Retry-After:
              schema:
                type: integer
                minimum: 1
              description: Minimum delay in seconds before retrying.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: No safely scored result is available, or the editing allowance cannot be checked (budget_unavailable). No model call starts when the budget check fails.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    DeslopInput:
      type: object
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 20000
          description: The complete draft supplied as data for editing.
        genre:
          default: general
          description: 'Publication context: social for LinkedIn or X; research and professional retain formal register.'
          type: string
          enum:
          - general
          - social
          - email
          - research
          - professional
        audience:
          description: Optional intended reader or destination when that context is not clear from the draft.
          type: string
          maxLength: 200
        operation:
          description: Optional local character cleanup only. Does not call an editing model or verify statistical watermark removal.
          type: string
          const: clean_text
      required:
      - text
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        detail:
          type: string
        code:
          type: string
        requestId:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        capacityScope:
          type: string
          enum:
          - client_daily
          - client_minute
          - workers_daily
          - openrouter_daily
          - day_reset
      required:
      - type
      - title
      - status
      - detail
      - code
      - requestId
      additionalProperties: false
    DeslopResult:
      type: object
      properties:
        text:
          type: string
        status:
          type: string
          enum:
          - rewritten
          - rewritten_with_warnings
          - already_clear
          - unchanged_no_better_version
          - unchanged_verification_failed
          - unchanged_service_unavailable
        before:
          type: object
          properties:
            score:
              type: number
              minimum: 0
              maximum: 100
            band:
              type: string
              minLength: 1
              maxLength: 80
            words:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            sentences:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            flaggedPhrases:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            sentenceVariety:
              type: string
              enum:
              - natural
              - too even
            readability:
              type: string
              enum:
              - clear
              - needs work
            punctuation:
              type: object
              properties:
                dashes:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                emoji:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                hashtags:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
              - dashes
              - emoji
              - hashtags
              additionalProperties: false
            highWeightFlags:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            shape:
              type: object
              properties:
                measured:
                  type: boolean
                broetry:
                  type: boolean
                oneSentenceParagraphShare:
                  anyOf:
                  - type: number
                    minimum: 0
                    maximum: 1
                  - type: 'null'
                longestFragmentRun:
                  anyOf:
                  - type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  - type: 'null'
              required:
              - measured
              - broetry
              - oneSentenceParagraphShare
              - longestFragmentRun
              additionalProperties: false
            register:
              type: object
              properties:
                measured:
                  type: boolean
                words:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                checked:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                findings:
                  maxItems: 1000
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        maxLength: 160
                      rate:
                        type: number
                        minimum: 0
                      budget:
                        type: number
                        minimum: 0
                      found:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      quote:
                        type: string
                        maxLength: 1000
                    required:
                    - name
                    - rate
                    - budget
                    - found
                    - quote
                    additionalProperties: false
                twoPartContrasts:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                announcements:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
              - measured
              - words
              - checked
              - findings
              - twoPartContrasts
              - announcements
              additionalProperties: false
            flags:
              maxItems: 5000
              type: array
              items:
                type: object
                properties:
                  phrase:
                    type: string
                    maxLength: 1000
                  strength:
                    type: number
                    minimum: 0
                  issue:
                    type: string
                    maxLength: 2000
                  direction:
                    type: string
                    maxLength: 2000
                required:
                - phrase
                - strength
                - issue
                - direction
                additionalProperties: false
          required:
          - score
          - band
          - words
          - sentences
          - flaggedPhrases
          - sentenceVariety
          - readability
          - punctuation
          - highWeightFlags
          - shape
          - register
          - flags
          additionalProperties: {}
        after:
          type: object
          properties:
            score:
              type: number
              minimum: 0
              maximum: 100
            band:
              type: string
              minLength: 1
              maxLength: 80
            words:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            sentences:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            flaggedPhrases:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            sentenceVariety:
              type: string
              enum:
              - natural
              - too even
            readability:
              type: string
              enum:
              - clear
              - needs work
            punctuation:
              type: object
              properties:
                dashes:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                emoji:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                hashtags:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
              - dashes
              - emoji
              - hashtags
              additionalProperties: false
            highWeightFlags:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            shape:
              type: object
              properties:
                measured:
                  type: boolean
                broetry:
                  type: boolean
                oneSentenceParagraphShare:
                  anyOf:
                  - type: number
                    minimum: 0
                    maximum: 1
                  - type: 'null'
                longestFragmentRun:
                  anyOf:
                  - type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  - type: 'null'
              required:
              - measured
              - broetry
              - oneSentenceParagraphShare
              - longestFragmentRun
              additionalProperties: false
            register:
              type: object
              properties:
                measured:
                  type: boolean
                words:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                checked:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                findings:
                  maxItems: 1000
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        maxLength: 160
                      rate:
                        type: number
                        minimum: 0
                      budget:
                        type: number
                        minimum: 0
                      found:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      quote:
                        type: string
                        maxLength: 1000
                    required:
                    - name
                    - rate
                    - budget
                    - found
                    - quote
                    additionalProperties: false
                twoPartContrasts:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                announcements:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
              - measured
              - words
              - checked
              - findings
              - twoPartContrasts
              - announcements
              additionalProperties: false
            flags:
              maxItems: 5000
              type: array
              items:
                type: object
                properties:
                  phrase:
                    type: string
                    maxLength: 1000
                  strength:
                    type: number
                    minimum: 0
                  issue:
                    type: string
                    maxLength: 2000
                  direction:
                    type: string
                    maxLength: 2000
                required:
                - phrase
                - strength
                - issue
                - direction
                additionalProperties: false
          required:
          - score
          - band
          - words
          - sentences
          - flaggedPhrases
          - sentenceVariety
          - readability
          - punctuation
          - highWeightFlags
          - shape
          - register
          - flags
          additionalProperties: {}
        scoreChange:
          type: number
          minimum: -100
          maximum: 100
        factsPreserved:
          type: boolean
        passedFinalChecks:
          type: boolean
        independentModelChecks:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        modelRequests:
          type: integer
          minimum: 0
          maximum: 2
        rolesCompleted:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        finishingRounds:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        scorerVersion:
          type: string
        durationMs:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        note:
          type: string
        editorDiagnostics:
          type: object
          properties:
            endpointHttpStatus:
              type: integer
              minimum: 100
              maximum: 599
            failureReason:
              type: string
              enum:
              - deadline
              - timeout
              - cancelled
              - configuration
              - unavailable
              - invalid_output
              - unchanged_output
              - transport
            providerAttempts:
              maxItems: 2
              type: array
              items:
                anyOf:
                - type: object
                  properties:
                    provider:
                      type: string
                      enum:
                      - workers-ai
                      - openrouter
                    outcome:
                      type: string
                      const: success
                    failureStage:
                      not: {}
                    httpStatus:
                      not: {}
                    outputStage:
                      not: {}
                  required:
                  - provider
                  - outcome
                  additionalProperties: false
                - type: object
                  properties:
                    provider:
                      type: string
                      enum:
                      - workers-ai
                      - openrouter
                    outcome:
                      type: string
                      enum:
                      - timeout
                      - cancelled
                      - capacity
                      - invalid_output
                      - configuration
                      - unavailable
                    failureStage:
                      type: string
                      enum:
                      - invoke
                      - fetch
                    httpStatus:
                      not: {}
                    outputStage:
                      not: {}
                  required:
                  - provider
                  - outcome
                  additionalProperties: false
                - type: object
                  properties:
                    provider:
                      type: string
                      enum:
                      - workers-ai
                      - openrouter
                    outcome:
                      type: string
                      enum:
                      - timeout
                      - cancelled
                      - capacity
                      - invalid_output
                      - configuration
                      - unavailable
                    failureStage:
                      type: string
                      enum:
                      - http
                      - body
                    httpStatus:
                      type: integer
                      minimum: 100
                      maximum: 599
                    outputStage:
                      not: {}
                  required:
                  - provider
                  - outcome
                  - failureStage
                  additionalProperties: false
                - type: object
                  properties:
                    provider:
                      type: string
                      enum:
                      - workers-ai
                      - openrouter
                    outcome:
                      type: string
                      const: invalid_output
                    failureStage:
                      not: {}
                    httpStatus:
                      not: {}
                    outputStage:
                      type: string
                      enum:
                      - response_shape
                      - empty_output
                      - source_preservation
                      - implausible_edit
                  required:
                  - provider
                  - outcome
                  - outputStage
                  additionalProperties: false
          additionalProperties: false
      required:
      - text
      - status
      - before
      - after
      - scoreChange
      - factsPreserved
      - passedFinalChecks
      - independentModelChecks
      - modelRequests
      - rolesCompleted
      - finishingRounds
      - scorerVersion
      - durationMs
      - note
      additionalProperties: false
externalDocs:
  description: Privacy policy
  url: https://zero-slop.ai/privacy/