Use your Writingmate plan in the agent tools you already run.
Connect OpenAI-compatible coding agents, SDKs, automation tools, and MCP hosts to Writingmate with one Developer Key. Keep your Writingmate workspace, model access, and plan accounting.
Base URL
https://writingmate.ai/api/openai/v1{
"provider": "writingmate",
"api": "openai-compatible",
"baseURL": "https://writingmate.ai/api/openai/v1",
"model": "google/gemini-2.5-flash"
}
Create a Developer Key
Generate a Writingmate Developer Key from the API Keys tab in your account settings.
Point your client at Writingmate
Use https://writingmate.ai/api/openai/v1 as the OpenAI-compatible base URL.
Pick a Writingmate model slug
Call /models or choose a documented slug such as google/gemini-2.5-flash.
Use MCP when the client supports tools
Connect MCP hosts to https://writingmate.ai/api/mcp for JSON-RPC tool discovery.
Bring Writingmate into standards-compatible clients.
The API is built for agent users who want model choice without rebuilding their local workflow. Use direct OpenAI-compatible calls first, then MCP where the host supports tool discovery.
OpenAI SDKs
Set baseURL and apiKey
Vercel AI SDK
Use @ai-sdk/openai-compatible
Continue
Set provider, apiBase, apiKey, model
Aider
Set OPENAI_API_BASE and model
OpenCode / OpenClaw-style clients
Add Writingmate as a custom provider
MCP hosts
Connect https://writingmate.ai/api/mcp
OpenAI-compatible API
Use /models, /chat/completions, /responses, image, and video endpoints from SDKs and agent clients.
Read docsMCP endpoint
Connect MCP-capable hosts to Writingmate tools for model listing and generation calls.
Read docsPlan-aware access
Requests count against the same Writingmate workspace plan and model access rules as the app.
Read docsSetup values for every client.
Most agent clients only need a base URL, a Bearer token, and a model name. Use MCP when the host expects a standards-based tool server.
https://writingmate.ai/api/openai/v1https://writingmate.ai/api/mcpAuthorization: Bearer YOUR_WRITINGMATE_DEVELOPER_KEYx-writingmate-workspace: WORKSPACE_IDFAQ
What is the Writingmate API for agent clients?
The Writingmate API lets agent clients use Writingmate models through an OpenAI-compatible API and an MCP endpoint. Users authenticate with a Writingmate Developer Key and keep the same plan limits they already use in the web app.
Can I use my existing Writingmate plan through the API?
Yes. Developer Key requests use the authenticated Writingmate workspace, plan access, daily message counting, and configured BYOK provider keys where supported.
Which clients can connect to Writingmate?
Any client that supports a custom OpenAI-compatible base URL and Bearer token can target Writingmate. MCP hosts can connect through the Writingmate MCP endpoint for model and generation tools.
Does Writingmate replace Codex or Claude Code?
No. Writingmate exposes model access into existing agent ecosystems. Codex-style and Claude-style clients remain the local tools; Writingmate provides the API and model plan behind them where those clients support custom providers.