Writingmate API

Writingmate API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-29); not the provider's own document.

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 21

POST /api/mcp POST /api/mcp #
POST /api/openai/v1/chat/completions POST /api/openai/v1/chat/completions #
POST /api/openai/v1/completions POST /api/openai/v1/completions #
GET /api/openai/v1/images/edits GET /api/openai/v1/images/edits #
POST /api/openai/v1/images/edits Image edits #
POST /api/openai/v1/images/generations POST /api/openai/v1/images/generations #
GET /api/openai/v1/models GET /api/openai/v1/models #
POST /api/openai/v1/responses POST /api/openai/v1/responses #
POST /api/openai/v1/videos POST /api/openai/v1/videos #
POST /chat/completions Chat Completions #
POST /completions Completions #
POST /images/edits Edit an image with POST /images/edits #
POST /images/generations Generate images with POST /images/generations #
GET /images/{id}/content GET /images/{id}/content #
GET /models Model discovery #
GET /models/{model} Model discovery #
POST /responses Responses #
POST /v1/chat/completions POST /v1/chat/completions #
POST /videos Generate videos with POST /videos #
GET /videos/{id} GET /videos/{id} #
GET /videos/{id}/content GET /videos/{id}/content #

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/writingmate-ai:writingmate-ai-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

writingmate-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Writingmate API
  version: '2026-11-29'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-29: 21 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Writingmate has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 9
    documentation: 12
    pages-with-code: 2
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-29'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
  - https://writingmate.ai/docs/chat-ai-models/reasoning-effort
  - https://writingmate.ai/docs/chat-ai-models/message-limits
  - https://writingmate.ai/docs/plugins/mcp-integration
servers:
- url: https://writingmate.ai
paths:
  /api/mcp:
    post:
      operationId: post_api_mcp
      tags:
      - Api
      summary: POST /api/mcp
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiMcpRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/mcp  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H \"Content-Type: application/json\"\
          \  -H \"Accept: application/json, text/event-stream\"  -d '{\n \"jsonrpc\": \"2.0\",\n \"id\": \"init\",\n \"method\": \"initialize\"\
          ,\n \"params\": {\n \"protocolVersion\": \"2025-11-25\",\n \"capabilities\": {},\n \"clientInfo\": { \"name\": \"my-agent-client\",\
          \ \"version\": \"1.0.0\" }\n }\n }'\n Some MCP ho"
  /api/openai/v1/chat/completions:
    post:
      operationId: post_api_openai_v1_chat_completions
      tags:
      - Api
      summary: POST /api/openai/v1/chat/completions
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1ChatCompletionsRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiOpenaiV1ChatCompletionsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/chat/completions  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H\
          \ \"Content-Type: application/json\"  -d '{\n \"model\": \"google/gemini-2.5-flash\",\n \"messages\": [\n { \"role\": \"system\", \"\
          content\": \"Be concise.\" },\n { \"role\": \"user\", \"content\": \"Summarize Writingmate in one sentence.\" }\n ]\n }'\n Completions "
  /api/openai/v1/completions:
    post:
      operationId: post_api_openai_v1_completions
      tags:
      - Api
      summary: POST /api/openai/v1/completions
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1CompletionsRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiOpenaiV1CompletionsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/completions  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H \"Content-Type:\
          \ application/json\"  -d '{\n \"model\": \"google/gemini-2.5-flash\",\n \"prompt\": \"Reply with exactly: HELLO_FROM_WRITINGMATE\"\n\
          \ }'\n Responses "
  /api/openai/v1/images/edits:
    get:
      operationId: get_api_openai_v1_images_edits
      tags:
      - Api
      summary: GET /api/openai/v1/images/edits
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiOpenaiV1ImagesEditsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/images/edits  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -F model=gpt-image-2\
          \  -F \"prompt=Put the product from the first image on the table in the second image\"  -F image[]=@product.png  -F image[]=@table.jpg\n\
          \ With the OpenAI SDK, pass a list of files as image : \n result = client.images.edit(\n model=\"gpt-image-2\",\n image=[open(\"product.png\""
    post:
      operationId: post_api_openai_v1_images_edits
      tags:
      - Api
      summary: Image edits
      description: Edits an image using multipart/form-data or JSON form. See cURL example in the documentation.
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1ImagesEditsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/openai/v1/images/generations:
    post:
      operationId: post_api_openai_v1_images_generations
      tags:
      - Api
      summary: POST /api/openai/v1/images/generations
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1ImagesGenerationsRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiOpenaiV1ImagesGenerationsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/images/generations  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H\
          \ \"Content-Type: application/json\"  -d '{\n \"model\": \"gpt-image-2\",\n \"prompt\": \"The same mug on a marble kitchen counter,\
          \ morning light\",\n \"images\": [\"https://example.com/mug.png\"]\n }'\n Edit an image with POST /images/edits . This endpoint accepts\
          \ OpenAI-compatible\n multipart/fo"
  /api/openai/v1/models:
    get:
      operationId: get_api_openai_v1_models
      tags:
      - Api
      summary: GET /api/openai/v1/models
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiOpenaiV1ModelsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/models  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"\n GET /models\
          \ lists text-compatible models for /chat/completions ,\n /completions , and /responses . Video generation models are not returned by\n\
          \ GET /models ; use the explicit /videos model names below. Example model \n The examples below use google/gemini-2.5-flash . Model\
          \ availability depend"
  /api/openai/v1/responses:
    post:
      operationId: post_api_openai_v1_responses
      tags:
      - Api
      summary: POST /api/openai/v1/responses
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1ResponsesRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiOpenaiV1ResponsesResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/responses  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H \"Content-Type:\
          \ application/json\"  -d '{\n \"model\": \"google/gemini-2.5-flash\",\n \"input\": \"Reply with exactly: HELLO_FROM_RESPONSES\"\n }'\n\
          \ Image and video generation \n Generate images with POST /images/generations . The response includes an\n id plus either url or b64_json\
          \ ; use GET /image"
  /api/openai/v1/videos:
    post:
      operationId: post_api_openai_v1_videos
      tags:
      - Api
      summary: POST /api/openai/v1/videos
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiOpenaiV1VideosRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiOpenaiV1VideosResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://writingmate.ai/api/openai/v1/videos  -H \"Authorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEY\"  -H \"Content-Type:\
          \ application/json\"  -d '{\n \"model\": \"veo-3.1-generate-preview\",\n \"prompt\": \"A golden retriever surfing a small wave at sunset\"\
          ,\n \"size\": \"1280x720\",\n \"seconds\": \"8\"\n }'\n Fields: \n model : optional; defaults to veo-3.1-generate-preview \n prompt\
          \ : required string, 3-5000 char"
  /chat/completions:
    post:
      operationId: post_chat_completions
      tags:
      - Chat
      summary: Chat Completions
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /completions:
    post:
      operationId: post_completions
      tags:
      - Completions
      summary: Completions
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /images/edits:
    post:
      operationId: post_images_edits
      tags:
      - Images
      summary: Edit an image with POST /images/edits
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /images/generations:
    post:
      operationId: post_images_generations
      tags:
      - Images
      summary: Generate images with POST /images/generations
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /images/{id}/content:
    get:
      operationId: get_images_id_content
      tags:
      - Images
      summary: GET /images/{id}/content
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /models:
    get:
      operationId: get_models
      tags:
      - Models
      summary: Model discovery
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /models/{model}:
    get:
      operationId: get_models_model
      tags:
      - Models
      summary: Model discovery
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      parameters:
      - name: model
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /responses:
    post:
      operationId: post_responses
      tags:
      - Responses
      summary: Responses
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/chat/completions:
    post:
      operationId: post_v1_chat_completions
      tags:
      - Chat
      summary: POST /v1/chat/completions
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1ChatCompletionsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl http://localhost:4000/v1/chat/completions  -H \"Authorization: Bearer YOUR_LITELLM_PROXY_KEY\"  -H \"Content-Type: application/json\"\
          \  -d '{\n \"model\": \"writingmate-gemini-flash\",\n \"messages\": [\n { \"role\": \"user\", \"content\": \"Reply with exactly: LITELLM_OK\"\
          \ }\n ]\n }'\n OpenCode \n There are two ways to connect OpenCode. Signing in is the simpler one for your own machine. \n Sign in with\
          \ your Writingma"
  /videos:
    post:
      operationId: post_videos
      tags:
      - Videos
      summary: Generate videos with POST /videos
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /videos/{id}:
    get:
      operationId: get_videos_id
      tags:
      - Videos
      summary: GET /videos/{id}
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /videos/{id}/content:
    get:
      operationId: get_videos_id_content
      tags:
      - Videos
      summary: GET /videos/{id}/content
      x-source: https://writingmate.ai/docs/chat-ai-models/openai-compatible-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiMcpRequest:
      type: object
      properties:
        jsonrpc:
          type: string
        id:
          type: string
        method:
          type: string
        params:
          type: object
          properties:
            protocolVersion:
              type: string
              format: date
            capabilities:
              type: object
            clientInfo:
              type: object
              properties:
                name:
                  type: string
                version:
                  type: string
    PostApiOpenaiV1ChatCompletionsRequest:
      type: object
      properties:
        model:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    PostApiOpenaiV1ChatCompletionsResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostApiOpenaiV1CompletionsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
    PostApiOpenaiV1CompletionsResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    GetApiOpenaiV1ImagesEditsResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostApiOpenaiV1ImagesEditsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        image[]:
          type: array
          description: Multipart form-data images; first is source, rest are references
        mask:
          type: object
          description: Optional mask image
      required:
      - model
      - prompt
      - image[]
    PostApiOpenaiV1ImagesGenerationsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        images:
          type: array
          items:
            type: string
    PostApiOpenaiV1ImagesGenerationsResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    GetApiOpenaiV1ModelsResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostApiOpenaiV1ResponsesRequest:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostApiOpenaiV1ResponsesResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostApiOpenaiV1VideosRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        size:
          type: string
        seconds:
          type: string
    PostApiOpenaiV1VideosResponse:
      type: object
      properties:
        model:
          type: string
        input:
          type: string
    PostV1ChatCompletionsRequest:
      type: object
      properties:
        model:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Chat
- name: Completions
- name: Images
- name: Models
- name: Responses
- name: Videos