Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.
Deprecation notice: Palmyra X4 (palmyra-x4) and Palmyra X5 (palmyra-x5) will be deprecated on December 14, 2026.Migration path: Use Palmyra X6 (palmyra-x6) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See pricing for cost details and the deprecation policy for more information.
Whether you use no-code, Agent Builder, or APIs, you need to choose a model. Here is an overview of the Palmyra models and their capabilities.
Model comparison
The following table compares the capabilities, context windows, and pricing of the Palmyra X6, X5, and X4 models.
Feature
Palmyra X6
Palmyra X5
Palmyra X4
Description
Agentic model for WRITER Agent and long-horizon enterprise workflows with sub-agents, grounding, and MCP tool use
General-purpose model with a 1M token context window and adaptive reasoning
Language model for complex tasks that require extended context
Palmyra X5 in WRITER Agent is billed at $5.00 input and $12.00 output per 1M tokens.
Model details
Palmyra X6
Overview
Use cases and capabilities
Benchmarking
Palmyra X6 is Writer’s default agentic model for WRITER Agent and long-horizon enterprise workflows. It was co-developed with the product’s orchestration layer. Capability scores in the Benchmarking tab measure the model in that combined system, which is how customers deploy it.Palmyra X6 can hold a single objective for up to 8 hours without supervision, planning, executing, verifying output, and delivering finished work rather than a draft that needs another pass.Pricing:
Input: $2.00 per 1M tokens
Output: $8.00 per 1M tokens
Context window: 1MTask economics (median on Writer’s internal evaluation of production customer tasks, n=22):
Cost per finished task: $0.12
Latency per finished task: 26 seconds
Palmyra X6 is built for the agentic work marketing, revenue, and operations teams run in production, including grounded research, content generation, connector-driven actions, and multi-step playbooks.WRITER Agent workflows
Connector-driven tasks: Query CRM records, search Slack messages, update documents, and perform other actions through prebuilt and custom connectors
Multi-step automation: Break complex requests into sequenced tool calls across multiple systems
Grounded responses: Pull context from Knowledge Graphs, documents, and connector data with retrieval and citation
Playbooks: Execute predefined multi-step workflows end to end
Agentic capabilities
Sub-agents: Delegate work to spawned sub-agents and merge results back into the primary workflow
MCP tool use: Discover and call external tools through MCP connectors
Content generation: Draft and edit long- and short-form content to a brief
Brand voice: Apply brand voice and custom instructions to output
Long-horizon execution: Sustain multi-hour objectives with planning, self-testing, and correction loops
Image analysis and generation: Interpret input images and generate new images
Presentations(early): Generate slide presentations from a prompt or source
Writer evaluates Palmyra X6 on production customer tasks (marketing, revenue, research, and outreach), not abstract reasoning benchmarks alone. Each capability is scored 0 to 1 against a locked baseline (n=22, reference frozen 2026-06-07). Scores measure Palmyra X6 running in WRITER Agent.Capability scores (Palmyra X6 in WRITER Agent)
Capability
What it measures
Score
Sub-agents
Delegating work to spawned sub-agents and merging results
0.86
Grounding and retrieval
Knowledge Graph and document grounding, retrieval, and citation
0.91
MCP tool use
Discovering and calling external tools through MCP connectors
0.88
Content generation
Drafting and editing long- and short-form content to a brief
0.88
Playbooks
Executing predefined multi-step workflows end to end
0.84
Model and system awareness
Knowing its identity, tools, scope, and when to safely refuse
0.97
Brand voice
Applying brand voice and custom instructions to output
0.92
Image analysis and generation
Interpreting input images and generating new images
0.80
Presentations (early)
Generating slide presentations from a prompt or source
0.74
Average capability score: 0.87.Domain benchmarks (raw model)The scores below measure the Palmyra X6 model directly, not in WRITER Agent, on finance benchmarks:
Benchmark
Score
Finance Agent
0.753
FinanceQA
0.673
FinanceBench
0.855
Palmyra X5
Deprecation notice: Palmyra X4 (palmyra-x4) and Palmyra X5 (palmyra-x5) will be deprecated on December 14, 2026.Migration path: Use Palmyra X6 (palmyra-x6) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See pricing for cost details and the deprecation policy for more information.
Overview
Use cases and capabilities
Benchmarking
Palmyra X5 is Writer’s general-purpose model for building and scaling AI agents, featuring a 1 million token context window, adaptive reasoning, and strong speed and cost efficiency.Pricing:
Input: $0.60 per 1M tokens
Output: $6.00 per 1M tokens
Palmyra X5 in WRITER Agent is billed at $5.00 input and $12.00 output per 1M tokens. See WRITER Agent pricing.
Content window: 1M
Palmyra X5’s 1M token context window further streamlines enterprise workflows and unlocks complex, multi-step use cases that weren’t possible before.Multi-step agentic workflows
Support documentation: Classify requests, assess urgency, assign a human review, stage updates in a CMS, and publish after approval.
Fund reporting: Streamline the analysis and preparation of detailed reports on the performance and status of investment funds, using reporting and research data pulled in from third-party systems
Content lifecycle management: Flag content that could be outdated, generate suggested revisions, and share them for human review.
Large data requirements:
Customer feedback analysis: Analyze large volumes of customer feedback to identify common themes, summarize sentiments, and generate actionable insights.
Research and development: Process and summarize multiple technical reports, research papers, and experimental data, accelerating innovation and product development.
Financial reporting: Process and summarize annual reports, SEC filings, and market analysis reports together at once to extract financial data, identify trends, and generate executive summaries.
Legal document analysis: Analyze lengthy legal documents, including contracts, patents, and compliance reports, to identify key clauses, flag potential risks, and ensure regulatory compliance.
Medical records analysis: Analyze and summarize large files of medical records containing structured and unstructured data, including patient records, clinical trial reports, audit reports, and more.
Palmyra X5 demonstrates robust performance across a suite of industry-standard benchmarks, showcasing its capabilities in reasoning, retrieval, and domain-specific tasks.
BBH (Big-Bench Hard): Evaluates complex reasoning and compositional logic. Palmyra X5 achieves a competitive score of 70.99%, aligning closely with top-tier models.
GPQA (Graduate-Level Google-Proof Q&A): Assesses the model’s ability to answer challenging, graduate-level questions in biology, physics, and chemistry that are resistant to simple lookup strategies. X5’s score of 47.20% indicates strong performance in scientific reasoning tasks.
MMLU_PRO: Focuses on professional-level knowledge across various domains such as law, medicine, and finance. Palmyra X5 scores 65.02%, demonstrating its suitability for enterprise applications in regulated sectors.
MATH_HARD: Tests symbolic reasoning and multi-step problem-solving abilities. X5’s score of 71.57% showcases its proficiency in handling complex analytical tasks.
Palmyra X4
Deprecation notice: Palmyra X4 (palmyra-x4) and Palmyra X5 (palmyra-x5) will be deprecated on December 14, 2026.Migration path: Use Palmyra X6 (palmyra-x6) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See pricing for cost details and the deprecation policy for more information.
Overview
Use cases and capabilities
Benchmarking
palmyra-x4 is an advanced language model that excels in processing and understanding complex tasks. It’s ideal for workflow automation, coding tasks, and data analysis.Pricing:
Input: $2.50 per 1M tokens
Output: $10.00 per 1M tokens
Content window: 128k
Agents & actions: Palmyra X4 acts as an advanced AI agent, capable of executing tasks beyond simple text generation by interacting with external systems like databases, applications, and other services. This enables it to perform real-time data updates and automate complex workflows.
Retrieval-augmented generation (RAG): Equipped with RAG, Palmyra X4 can retrieve and incorporate relevant information from vast data sources, enhancing the model’s accuracy and ensuring responses are always grounded in current, context-specific data.
Code generation: The model supports advanced code generation, enabling it to automate scripting and integrate seamlessly with various programming environments, optimizing workflows for technical teams.
Tool calling: Palmyra X4 is built to handle precise API interactions, allowing it to execute complex functions directly, making it a versatile tool for enterprise-level integrations and automated actions.
Palmyra X4 consistently ranks at the top in structured output, API tool calling, and accuracy for complex, multi-step workflows.
Top accuracy (ACC): Palmyra X4 achieves 78.76% accuracy in tool call identification and execution, leading the industry by nearly 20%.
Structured call planning (AST): Palmyra X4 scores 87.93% in planning and organizing tool calls, accurately interpreting input, generating parameters, and sequencing steps.
Execution performance (Exec): With an 88.27% score in executing tool calls, Palmyra X4 ranks highest in efficiently carrying out enterprise actions.
Global benchmarks: Palmyra X4 ranks in the world’s top 10 on HELM Lite (86.1%) and HELM MMLU (81.3%), excelling across 57 subjects.
Using models with the Writer API
Chat completions
Text generation
To select the Palmyra model you want to use for a chat completion, specify the model ID in the model parameter of the request.Below is an example of specifying the palmyra-x5 model in a chat completion request.
from writerai import Writer# Initialize the client. If you don't pass the `api_key` parameter,# the client looks for the `WRITER_API_KEY` environment variable.client = Writer()chat_response = client.chat.chat( model="palmyra-x5", messages=[ { "role": "user", "content": "Summarize GDPR compliance requirements for a cloud-based data storage provider" } ])print(chat_response.choices[0].message.content)
import { Writer } from "writer-sdk";// Initialize the client. If you don't pass the `apiKey` parameter,// the client looks for the `WRITER_API_KEY` environment variable.const client = new Writer();const chat_response = await client.chat.chat({ model: "palmyra-x5", messages: [ { role: "user", content: "Summarize GDPR compliance requirements for a cloud-based data storage provider", }, ],});console.log(chat_response.choices[0].message.content);
You can also use prebuilt tools within a general-purpose chat completion request:
To select the Palmyra model you want to use for text generation, specify the model ID in the model parameter of the request.Below is an example of specifying the palmyra-x5 model in a text generation request.
curl --location 'https://api.writer.com/v1/completions' \--header 'Content-Type: application/json' \--header "Authorization: Bearer $WRITER_API_KEY" \--data '{ "model": "palmyra-x5", "prompt": "Summarize GDPR compliance requirements for a cloud-based data storage provider"}'
from writerai import Writer# Initialize the client. If you don't pass the `api_key` parameter,# the client looks for the `WRITER_API_KEY` environment variable.client = Writer()text_generation = client.completions.create( model="palmyra-x5", prompt="Summarize GDPR compliance requirements for a cloud-based data storage provider")print(text_generation.choices[0].text)
import { Writer } from "writer-sdk";// Initialize the client. If you don't pass the `apiKey` parameter,// the client looks for the `WRITER_API_KEY` environment variable.const client = new Writer();const text_generation = await client.completions.create({ model: "palmyra-x5", prompt: "Summarize GDPR compliance requirements for a cloud-based data storage provider",});console.log(text_generation.choices[0].text);
Get started with the Writer API by signing up for a free account and following the API quickstart.
Deprecation policy
Timeline for deprecation
We’ll announce the deprecation of a model at least three months in advance. This will give customers time to plan for the migration to the new model.
We’ll continue to support deprecated models for a period of time after they’re deprecated. This will give customers time to migrate to the new model.
We’ll eventually stop supporting deprecated models. The timeline for this will vary depending on the model. We will announce the end of support for a deprecated model at least six months in advance.
Deprecated models
Model name
Deprecation Date
Palmyra X5
2026-12-14
Palmyra X4
2026-12-14
Palmyra X 003 Instruct
2026-07-13
Palmyra Vision
2026-07-13
Palmyra Med
2026-07-13
Palmyra Fin
2026-07-13
Palmyra Creative
2026-07-13
Palmyra Fin 32k
2025-03-03
Palmyra X 002 32k
2024-09-06
Palmyra X 32k Instruct
2024-09-06
Palmyra X 002 Instruct
2024-09-06
Migration path
We’ll provide customers with a migration path to the new model, including detailed documentation and support to help them migrate their applications.
We’ll also offer training and consulting services to help customers transition.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Writer AI Studio","colors":{"primary":"#BFCBFF","light":"#6985FF","dark":"#5551ff"},"logo":{"light":"https://mintcdn.com/writer/YZ72OUP7BQyK8p2G/logo/writer_logo_light.svg?fit=max\u0026auto=format\u0026n=YZ72OUP7BQyK8p2G\u0026q=85\u0026s=c9a784871f9b98724bb1eae947e745ed","dark":"https://mintcdn.com/writer/YZ72OUP7BQyK8p2G/logo/writer_logo_dark.svg?fit=max\u0026auto=format\u0026n=YZ72OUP7BQyK8p2G\u0026q=85\u0026s=9e22a34b91e20df881d68634a0042c1d"},"favicon":"https://mintcdn.com/writer/z-qGRP1BKyHYhEJN/images/icons/favicon.svg?fit=max\u0026auto=format\u0026n=z-qGRP1BKyHYhEJN\u0026q=85\u0026s=33356fdc372b2640b92c5546da07c9e0","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"navbar":{"primary":{"type":"button","label":"Sign in","href":"https://app.writer.com/login"}},"footer":{"socials":{"x":"https://x.com/Get_Writer","github":"https://github.com/writer","linkedin":"https://www.linkedin.com/company/getwriter"}},"seo":{"metatags":{"description":"Writer AI Studio developer documentation - Build AI agents with APIs, SDKs, Agent Builder, and no-code tools. Integrate generative AI into your applications.","og:site_name":"Writer AI Studio Documentation","og:type":"website","twitter:card":"summary_large_image","twitter:site":"@Get_Writer"},"indexing":"all"},"integrations":{"gtm":{"tagId":"GTM-NXVXDK"},"segment":{"key":"o2ZzfP0pJxH4cihXBPrF4IlbGqmG34BA"}},"contextual":{"options":["copy","view","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"writer","hasAudioNarration":false,"actualSubdomain":"writer","customDomains":["dev.writer.com"],"gitSource":{"type":"github","owner":"writercolab","repo":"writer-monorepo","deployBranch":"main","contentDirectory":"docs-official","isPrivate":true,"mountPath":"","label":"","_id":"6aebb4e79904d1b9b86455b1"},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6ec54f220c97c51d44594","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"Home","count":100},{"language":"default","tag":"Writer Framework","count":71},{"language":"default","tag":"Component reference","count":45},{"language":"default","tag":"Connect to your data","count":33},{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"Available prebuilt connectors","count":29},{"language":"default","tag":"Content","count":17},{"language":"default","tag":"Legacy API Reference","count":16},{"language":"default","tag":"Getting started","count":14},{"language":"default","tag":"Input","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--purple-1: #5551FF;--purple-2: #4A46DA;--black: #000;--gray-1: #333}body{font-family:\"Graphik\", sans-serif;font-weight:400}body.bold{font-weight:600}h1{font-family:\"Poppins\", sans-serif;font-weight:600!important}h2,h3{font-family:\"Poppins\", sans-serif;font-weight:500}img[src$=\"quickstart\"]{border:1px solid #e4e7ed}img[src$=\"no-code\"]{border:1px solid #e4e7ed}img[src$=\"auth\"]{min-width:25%;width:35%;margin:auto}img[src$=\"auth-table\"]{min-width:25px;width:25px}img[src$=\"framework\"]{border:1px solid #e4e7ed}.imageBorder{border:1px solid #e4e7ed}.flex-none.min-w-full.text-sm.overflow-x-auto{background-color:#171b1a}.no-bullet li{list-style-type:none;font-size:small}.large-icon{width:60px;height:100%}.bg-primary\\/10{background-color:#bfcbff}.text-primary{color:black}.dark .prompts{color:#828282;font-family:'Roboto Mono', monospace}.prompts{color:black;font-family:'Roboto Mono', monospace}.papers{font-family:'Roboto Mono', monospace;font-size:small;padding-left:20px;padding-right:20px;text-align:justify}th,td{padding:10px 10px 10px 10px;text-align:left}.update table th,.update table td{word-break:break-word}.expandedImageContainer{padding:16px;border-radius:16px;background:#E9EEF1;overflow:hidden;display:flex;justify-content:center}.expandedImageContainerInner{display:flex;align-items:flex-start;max-width:300px;max-height:210px}.expandedImageContainer img{max-height:210px}.card{> div {\n > div {\n width: unset;\n height: unset;\n }\n }}.components__table{table-layout:fixed;width:300px}.button-wrapper{margin-top:30px}.button{border:none;cursor:pointer;font-size:14px;font-weight:600;padding:8px 20px;position:relative;outline:none;transition:background-color 0.1s ease-in}.primary-button{background-color:var(--purple-1);border-radius:40px;color:white;display:inline-flex;align-items:center;\u0026:hover{background-color:var(--purple-2)}}.secondary-button{background-color:var(--black);border-radius:30px;color:white;\u0026:hover{background-color:var(--gray-1)}}.button--arrow{padding-right:40px;\u0026::after{content:'';display:inline-block;width:12px;height:12px;background-image:url('data:image/svg+xml;utf8,\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\u003cpath id=\"Vector\" d=\"M9.47019 6.56246H0.375V5.4375H9.47019L5.19808 1.16537L5.99998 0.375L11.625 5.99998L5.99998 11.625L5.19808 10.8346L9.47019 6.56246Z\" fill=\"white\"/>\u003c/svg>');background-size:contain;background-repeat:no-repeat;position:absolute;right:16px;top:50%;transform:translateY(-50%)}}.componentFields td,.componentFields th{padding:8px;border:1px solid rgb(var(--gray-200))}.componentFields .desc{width:50ch}:is(.dark .componentFields td,.dark .componentFields th,.dark .blueprintFields td,.dark .blueprintFields th){border:1px solid rgb(var(--gray-800))}.blueprintFields td,.blueprintFields th{padding:8px;border:1px solid rgb(var(--gray-200));vertical-align:top}#topbar-cta-button{margin:0}#topbar-cta-button a{display:inline-flex;align-items:center;background-color:var(--purple-1)!important;border-radius:9999px;padding:4px 14px;font-weight:600;font-size:14px;text-decoration:none;transition:background-color 0.2s ease;line-height:24px}#topbar-cta-button a span{color:white!important}#topbar-cta-button a:hover{background-color:var(--purple-2)!important}#topbar-cta-button svg{margin-left:4px;height:16px;width:16px}#topbar-cta-button svg path{stroke:white!important;fill:none!important;stroke-width:1.5!important;stroke-linecap:round!important}li[id=\"https://app.writer.com/login\"]{margin:0;max-width:100%;box-sizing:border-box}li[id=\"https://app.writer.com/login\"] a{display:inline-flex!important;align-items:center!important;background-color:var(--purple-1)!important;border-radius:9999px!important;padding:4px 8px 4px 14px!important;font-weight:600!important;font-size:14px!important;text-decoration:none!important;transition:background-color 0.2s ease!important;line-height:24px!important;max-width:100%!important;box-sizing:border-box!important;white-space:nowrap!important;overflow:hidden!important}li[id=\"https://app.writer.com/login\"] a div,li[id=\"https://app.writer.com/login\"] a span{color:white!important}li[id=\"https://app.writer.com/login\"] a:hover{background-color:var(--purple-2)!important}li[id=\"https://app.writer.com/login\"] svg{margin-left:0px!important;height:16px!important;width:16px!important}li[id=\"https://app.writer.com/login\"] svg path{stroke:white!important;stroke-width:1.5!important;stroke-linecap:round!important;fill:none!important}div[id=\"sidebar\"]{overflow-x:hidden;box-sizing:border-box}div[id=\"sidebar-content\"]{overflow-x:hidden;box-sizing:border-box}ul[class*=\"bg-zinc-950/5\"]{max-width:100%;box-sizing:border-box;overflow-x:hidden}#content-area.max-w-5xl{max-width:80rem}#content-area.max-w-xl{max-width:60rem!important}img.max-height-800{max-height:800px!important}img.max-width-80{max-width:80%!important}#navbar .nav-tabs{flex:1 1 auto!important;width:100%!important;justify-content:center!important}"}],"page":{"pagePath":"home/models","slug":"/home/models","pageMetadata":{"title":"Choose a model","sidebarTitle":"Palmyra models overview","description":"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.","href":"/home/models"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Heading,Note,Tab,Table,Tabs,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecation notice`}),`: Palmyra X4 (`,_jsx(_components.code,{children:`palmyra-x4`}),`) and Palmyra X5 (`,_jsx(_components.code,{children:`palmyra-x5`}),`) will be deprecated on `,_jsx(_components.strong,{children:`December 14, 2026`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Migration path`}),`: Use `,_jsx(_components.a,{href:`/home/models#palmyra-x6`,children:`Palmyra X6`}),` (`,_jsx(_components.code,{children:`palmyra-x6`}),`) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See `,_jsx(_components.a,{href:`/home/pricing`,children:`pricing`}),` for cost details and the `,_jsx(_components.a,{href:`/home/models#deprecation-policy`,children:`deprecation policy`}),` for more information.`]})]}),`\n`,_jsx(_components.p,{children:`Whether you use no-code, Agent Builder, or APIs, you need to choose a model. Here is an overview of the Palmyra models and their capabilities.`}),`\n`,_jsx(Heading,{level:`2`,id:`model-comparison`,children:`Model comparison`}),`\n`,_jsx(_components.p,{children:`The following table compares the capabilities, context windows, and pricing of the Palmyra X6, X5, and X4 models.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsx(_components.th,{children:`Palmyra X6`}),_jsx(_components.th,{children:`Palmyra X5`}),_jsx(_components.th,{children:`Palmyra X4`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Description`})}),_jsx(_components.td,{children:`Agentic model for WRITER Agent and long-horizon enterprise workflows with sub-agents, grounding, and MCP tool use`}),_jsx(_components.td,{children:`General-purpose model with a 1M token context window and adaptive reasoning`}),_jsx(_components.td,{children:`Language model for complex tasks that require extended context`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API model ID`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`palmyra-x6`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`palmyra-x5`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`palmyra-x4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Bedrock model ID`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`writer.palmyra-x5-v1:0`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`writer.palmyra-x4-v1:0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Pricing (Input)`})}),_jsx(_components.td,{children:`$2.00 / 1M tokens`}),_jsx(_components.td,{children:`$0.60 / 1M tokens`}),_jsx(_components.td,{children:`$2.50 / 1M tokens`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Pricing (Output)`})}),_jsx(_components.td,{children:`$8.00 / 1M tokens`}),_jsx(_components.td,{children:`$6.00 / 1M tokens`}),_jsx(_components.td,{children:`$10.00 / 1M tokens`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Context window`})}),_jsx(_components.td,{children:`1M tokens`}),_jsx(_components.td,{children:`1M tokens`}),_jsx(_components.td,{children:`128k tokens`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Max output`})}),_jsx(_components.td,{children:`8,192 tokens`}),_jsx(_components.td,{children:`8,192 tokens`}),_jsx(_components.td,{children:`4,096 tokens`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Palmyra X6 is the default model for `,_jsx(_components.a,{href:`/home/pricing#writer-agent`,children:`WRITER Agent`}),`. Palmyra X6, X5, and X4 are available via API. To analyze images, use `,_jsx(_components.a,{href:`/home/chat-with-images`,children:`vision capabilities with Palmyra X5`}),`.`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Palmyra X5 in WRITER Agent is billed at $5.00 input and $12.00 output per 1M tokens.`})}),`\n`,_jsx(Heading,{level:`2`,id:`model-details`,children:`Model details`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Palmyra X6`,icon:`comment`,iconType:`regular`,id:`palmyra-x6`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Overview`,id:`overview`,children:[_jsxs(_components.p,{children:[`Palmyra X6 is Writer’s default agentic model for `,_jsx(_components.a,{href:`https://support.writer.com/article/235-ask-writer`,children:`WRITER Agent`}),` and long-horizon enterprise workflows. It was co-developed with the product’s orchestration layer. Capability scores in the Benchmarking tab measure the model in that combined system, which is how customers deploy it.`]}),_jsx(_components.p,{children:`Palmyra X6 can hold a single objective for up to 8 hours without supervision, planning, executing, verifying output, and delivering finished work rather than a draft that needs another pass.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pricing`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Input: $2.00 per 1M tokens`}),`\n`,_jsx(_components.li,{children:`Output: $8.00 per 1M tokens`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Context window`}),`: 1M`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Task economics`}),` (median on Writer’s internal evaluation of production customer tasks, n=22):`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Cost per finished task: $0.12`}),`\n`,_jsx(_components.li,{children:`Latency per finished task: 26 seconds`}),`\n`]})]}),_jsxs(Tab,{title:`Use cases and capabilities`,id:`use-cases-and-capabilities`,children:[_jsx(_components.p,{children:`Palmyra X6 is built for the agentic work marketing, revenue, and operations teams run in production, including grounded research, content generation, connector-driven actions, and multi-step playbooks.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`WRITER Agent workflows`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Connector-driven tasks`}),`: Query CRM records, search Slack messages, update documents, and perform other actions through `,_jsx(_components.a,{href:`/home/mcp-gateway`,children:`prebuilt and custom connectors`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Multi-step automation`}),`: Break complex requests into sequenced tool calls across multiple systems`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Grounded responses`}),`: Pull context from Knowledge Graphs, documents, and connector data with retrieval and citation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Playbooks`}),`: Execute predefined multi-step workflows end to end`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Agentic capabilities`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sub-agents`}),`: Delegate work to spawned sub-agents and merge results back into the primary workflow`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MCP tool use`}),`: Discover and call external tools through MCP connectors`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Content generation`}),`: Draft and edit long- and short-form content to a brief`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Brand voice`}),`: Apply brand voice and custom instructions to output`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Long-horizon execution`}),`: Sustain multi-hour objectives with planning, self-testing, and correction loops`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Image analysis and generation`}),`: Interpret input images and generate new images`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Presentations`}),` `,_jsx(_components.em,{children:`(early)`}),`: Generate slide presentations from a prompt or source`]}),`\n`]})]}),_jsxs(Tab,{title:`Benchmarking`,id:`benchmarking`,children:[_jsx(_components.p,{children:`Writer evaluates Palmyra X6 on production customer tasks (marketing, revenue, research, and outreach), not abstract reasoning benchmarks alone. Each capability is scored 0 to 1 against a locked baseline (n=22, reference frozen 2026-06-07). Scores measure Palmyra X6 running in WRITER Agent.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Capability scores (Palmyra X6 in WRITER Agent)`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Capability`}),_jsx(_components.th,{children:`What it measures`}),_jsx(_components.th,{children:`Score`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sub-agents`}),_jsx(_components.td,{children:`Delegating work to spawned sub-agents and merging results`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.86`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Grounding and retrieval`}),_jsx(_components.td,{children:`Knowledge Graph and document grounding, retrieval, and citation`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.91`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`MCP tool use`}),_jsx(_components.td,{children:`Discovering and calling external tools through MCP connectors`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.88`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content generation`}),_jsx(_components.td,{children:`Drafting and editing long- and short-form content to a brief`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.88`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Playbooks`}),_jsx(_components.td,{children:`Executing predefined multi-step workflows end to end`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.84`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model and system awareness`}),_jsx(_components.td,{children:`Knowing its identity, tools, scope, and when to safely refuse`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.97`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Brand voice`}),_jsx(_components.td,{children:`Applying brand voice and custom instructions to output`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.92`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image analysis and generation`}),_jsx(_components.td,{children:`Interpreting input images and generating new images`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.80`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Presentations `,_jsx(_components.em,{children:`(early)`})]}),_jsx(_components.td,{children:`Generating slide presentations from a prompt or source`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`0.74`})})]})]})]}),_jsxs(_components.p,{children:[`Average capability score: `,_jsx(_components.strong,{children:`0.87`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Domain benchmarks (raw model)`})}),_jsx(_components.p,{children:`The scores below measure the Palmyra X6 model directly, not in WRITER Agent, on finance benchmarks:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Benchmark`}),_jsx(_components.th,{children:`Score`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Finance Agent`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.753`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`FinanceQA`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.673`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`FinanceBench`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.855`})]})]})]})]})]})}),_jsxs(Accordion,{title:`Palmyra X5`,icon:`comment`,iconType:`regular`,id:`palmyra-x5`,children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecation notice`}),`: Palmyra X4 (`,_jsx(_components.code,{children:`palmyra-x4`}),`) and Palmyra X5 (`,_jsx(_components.code,{children:`palmyra-x5`}),`) will be deprecated on `,_jsx(_components.strong,{children:`December 14, 2026`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Migration path`}),`: Use `,_jsx(_components.a,{href:`/home/models#palmyra-x6`,children:`Palmyra X6`}),` (`,_jsx(_components.code,{children:`palmyra-x6`}),`) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See `,_jsx(_components.a,{href:`/home/pricing`,children:`pricing`}),` for cost details and the `,_jsx(_components.a,{href:`/home/models#deprecation-policy`,children:`deprecation policy`}),` for more information.`]})]}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Overview`,id:`overview-2`,children:[_jsx(_components.p,{children:`Palmyra X5 is Writer’s general-purpose model for building and scaling AI agents, featuring a 1 million token context window, adaptive reasoning, and strong speed and cost efficiency.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pricing`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Input: $0.60 per 1M tokens`}),`\n`,_jsx(_components.li,{children:`Output: $6.00 per 1M tokens`}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Palmyra X5 in WRITER Agent is billed at $5.00 input and $12.00 output per 1M tokens. See `,_jsx(_components.a,{href:`/home/pricing#writer-agent`,children:`WRITER Agent pricing`}),`.`]})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content window`}),`: 1M`]})]}),_jsxs(Tab,{title:`Use cases and capabilities`,id:`use-cases-and-capabilities-2`,children:[_jsx(_components.p,{children:`Palmyra X5’s 1M token context window further streamlines enterprise workflows and unlocks complex, multi-step use cases that weren’t possible before.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Multi-step agentic workflows`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Support documentation`}),`: Classify requests, assess urgency, assign a human review, stage updates in a CMS, and publish after approval.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Fund reporting`}),`: Streamline the analysis and preparation of detailed reports on the performance and status of investment funds, using reporting and research data pulled in from third-party systems`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Content lifecycle management`}),`: Flag content that could be outdated, generate suggested revisions, and share them for human review.`]}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Large data requirements`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Customer feedback analysis`}),`: Analyze large volumes of customer feedback to identify common themes, summarize sentiments, and generate actionable insights.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Research and development`}),`: Process and summarize multiple technical reports, research papers, and experimental data, accelerating innovation and product development.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Financial reporting`}),`: Process and summarize annual reports, SEC filings, and market analysis reports together at once to extract financial data, identify trends, and generate executive summaries.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Legal document analysis`}),`: Analyze lengthy legal documents, including contracts, patents, and compliance reports, to identify key clauses, flag potential risks, and ensure regulatory compliance.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Medical records analysis`}),`: Analyze and summarize large files of medical records containing structured and unstructured data, including patient records, clinical trial reports, audit reports, and more.`]}),`\n`]})]}),_jsxs(Tab,{title:`Benchmarking`,id:`benchmarking-2`,children:[_jsx(_components.p,{children:`Palmyra X5 demonstrates robust performance across a suite of industry-standard benchmarks, showcasing its capabilities in reasoning, retrieval, and domain-specific tasks.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`BBH (Big-Bench Hard)`}),`: Evaluates complex reasoning and compositional logic. Palmyra X5 achieves a competitive score of 70.99%, aligning closely with top-tier models.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`GPQA (Graduate-Level Google-Proof Q\u0026A)`}),`: Assesses the model’s ability to answer challenging, graduate-level questions in biology, physics, and chemistry that are resistant to simple lookup strategies. X5’s score of 47.20% indicates strong performance in scientific reasoning tasks.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MMLU_PRO`}),`: Focuses on professional-level knowledge across various domains such as law, medicine, and finance. Palmyra X5 scores 65.02%, demonstrating its suitability for enterprise applications in regulated sectors.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MATH_HARD`}),`: Tests symbolic reasoning and multi-step problem-solving abilities. X5’s score of 71.57% showcases its proficiency in handling complex analytical tasks.`]}),`\n`]})]})]})]}),_jsxs(Accordion,{title:`Palmyra X4`,icon:`comment`,iconType:`regular`,id:`palmyra-x4`,children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecation notice`}),`: Palmyra X4 (`,_jsx(_components.code,{children:`palmyra-x4`}),`) and Palmyra X5 (`,_jsx(_components.code,{children:`palmyra-x5`}),`) will be deprecated on `,_jsx(_components.strong,{children:`December 14, 2026`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Migration path`}),`: Use `,_jsx(_components.a,{href:`/home/models#palmyra-x6`,children:`Palmyra X6`}),` (`,_jsx(_components.code,{children:`palmyra-x6`}),`) instead. Palmyra X6 has a 1M token context window (Palmyra X4 is 128k). See `,_jsx(_components.a,{href:`/home/pricing`,children:`pricing`}),` for cost details and the `,_jsx(_components.a,{href:`/home/models#deprecation-policy`,children:`deprecation policy`}),` for more information.`]})]}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Overview`,id:`overview-3`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`palmyra-x4`}),` is an advanced language model that excels in processing and understanding complex tasks. It’s ideal for workflow automation, coding tasks, and data analysis.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pricing`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Input: $2.50 per 1M tokens`}),`\n`,_jsx(_components.li,{children:`Output: $10.00 per 1M tokens`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content window`}),`: 128k`]})]}),_jsx(Tab,{title:`Use cases and capabilities`,id:`use-cases-and-capabilities-3`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agents \u0026 actions`}),`: Palmyra X4 acts as an advanced AI agent, capable of executing tasks beyond simple text generation by interacting with external systems like databases, applications, and other services. This enables it to perform real-time data updates and automate complex workflows.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Retrieval-augmented generation (RAG)`}),`: Equipped with RAG, Palmyra X4 can retrieve and incorporate relevant information from vast data sources, enhancing the model’s accuracy and ensuring responses are always grounded in current, context-specific data.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Code generation`}),`: The model supports advanced code generation, enabling it to automate scripting and integrate seamlessly with various programming environments, optimizing workflows for technical teams.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tool calling`}),`: Palmyra X4 is built to handle precise API interactions, allowing it to execute complex functions directly, making it a versatile tool for enterprise-level integrations and automated actions.`]}),`\n`]})}),_jsxs(Tab,{title:`Benchmarking`,id:`benchmarking-3`,children:[_jsx(_components.p,{children:`Palmyra X4 consistently ranks at the top in structured output, API tool calling, and accuracy for complex, multi-step workflows.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Top accuracy (ACC)`}),`: Palmyra X4 achieves 78.76% accuracy in tool call identification and execution, leading the industry by nearly 20%.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Structured call planning (AST)`}),`: Palmyra X4 scores 87.93% in planning and organizing tool calls, accurately interpreting input, generating parameters, and sequencing steps.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Execution performance (Exec)`}),`: With an 88.27% score in executing tool calls, Palmyra X4 ranks highest in efficiently carrying out enterprise actions.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global benchmarks`}),`: Palmyra X4 ranks in the world’s top 10 on HELM Lite (86.1%) and HELM MMLU (81.3%), excelling across 57 subjects.`]}),`\n`]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`using-models-with-the-writer-api`,children:`Using models with the Writer API`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Chat completions`,id:`chat-completions`,children:[_jsxs(_components.p,{children:[`To select the Palmyra model you want to use for a chat completion, specify the model ID in the `,_jsxs(_components.a,{href:`/api-reference/completion-api/chat-completion#body-model`,children:[_jsx(_components.code,{children:`model`}),` parameter`]}),` of the request.`]}),_jsxs(_components.p,{children:[`Below is an example of specifying the `,_jsx(_components.code,{children:`palmyra-x5`}),` model in a chat completion request.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.writer.com/v1/chat'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$WRITER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"palmyra-x5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"user\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` writerai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Writer`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# Initialize the client. If you don't pass the `api_key` parameter,\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# the client looks for the `WRITER_API_KEY` environment variable.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Writer()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`chat_response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.chat.chat(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"palmyra-x5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(chat_response.choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Writer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"writer-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// Initialize the client. If you don't pass the `apiKey` parameter,\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// the client looks for the `WRITER_API_KEY` environment variable.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Writer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` chat_response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`chat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"palmyra-x5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` messages:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chat_response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choices`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`You can also use `,_jsx(_components.a,{href:`/home/tool-calling`,children:`prebuilt tools`}),` within a general-purpose chat completion request:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/home/model-delegation`,children:`LLM tool`}),` to call another model`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/home/kg-chat`,children:`Knowledge Graph tool`}),` to ask questions about a Knowledge Graph`]}),`\n`]}),_jsxs(_components.p,{children:[`To analyze images, use `,_jsx(_components.a,{href:`/home/chat-with-images`,children:`vision capabilities with Palmyra X5`}),` directly in a chat completion.`]})]}),_jsxs(Tab,{title:`Text generation`,id:`text-generation`,children:[_jsxs(_components.p,{children:[`To select the Palmyra model you want to use for text generation, specify the model ID in the `,_jsxs(_components.a,{href:`/api-reference/completion-api/text-generation#body-model`,children:[_jsx(_components.code,{children:`model`}),` parameter`]}),` of the request.`]}),_jsxs(_components.p,{children:[`Below is an example of specifying the `,_jsx(_components.code,{children:`palmyra-x5`}),` model in a text generation request.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.writer.com/v1/completions'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$WRITER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"palmyra-x5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` writerai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Writer`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# Initialize the client. If you don't pass the `api_key` parameter,\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# the client looks for the `WRITER_API_KEY` environment variable.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Writer()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`text_generation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"palmyra-x5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` prompt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(text_generation.choices[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].text)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`13`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Writer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"writer-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// Initialize the client. If you don't pass the `apiKey` parameter,\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// the client looks for the `WRITER_API_KEY` environment variable.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Writer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` text_generation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`completions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"palmyra-x5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Summarize GDPR compliance requirements for a cloud-based data storage provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text_generation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`choices`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Get started with the Writer API by signing up for a free account and following the `,_jsx(_components.a,{href:`/home/quickstart`,children:`API quickstart`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`deprecation-policy`,children:`Deprecation policy`}),`\n`,_jsx(Heading,{level:`3`,id:`timeline-for-deprecation`,children:`Timeline for deprecation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`We’ll announce the deprecation of a model at least three months in advance. This will give customers time to plan for the migration to the new model.`}),`\n`,_jsx(_components.li,{children:`We’ll continue to support deprecated models for a period of time after they’re deprecated. This will give customers time to migrate to the new model.`}),`\n`,_jsx(_components.li,{children:`We’ll eventually stop supporting deprecated models. The timeline for this will vary depending on the model. We will announce the end of support for a deprecated model at least six months in advance.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`deprecated-models`,children:`Deprecated models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model name`}),_jsx(_components.th,{children:`Deprecation Date`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X5`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-12-14`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X4`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-12-14`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X 003 Instruct`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-07-13`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra Vision`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-07-13`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra Med`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-07-13`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra Fin`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-07-13`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra Creative`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-07-13`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra Fin 32k`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2025-03-03`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X 002 32k`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2024-09-06`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X 32k Instruct`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2024-09-06`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Palmyra X 002 Instruct`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2024-09-06`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`migration-path`,children:`Migration path`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`We’ll provide customers with a migration path to the new model, including detailed documentation and support to help them migrate their applications.`}),`\n`,_jsx(_components.li,{children:`We’ll also offer training and consulting services to help customers transition.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Choose a model","sidebarTitle":"Palmyra models overview","description":"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.","href":"/home/models"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Model comparison","slug":"model-comparison","depth":2,"children":[]},{"title":"Model details","slug":"model-details","depth":2,"children":[]},{"title":"Using models with the Writer API","slug":"using-models-with-the-writer-api","depth":2,"children":[]},{"title":"Deprecation policy","slug":"deprecation-policy","depth":2,"children":[{"title":"Timeline for deprecation","slug":"timeline-for-deprecation","depth":3,"children":[]},{"title":"Deprecated models","slug":"deprecated-models","depth":3,"children":[]},{"title":"Migration path","slug":"migration-path","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"writer","siteName":"Writer AI Studio","title":"Choose a model - Writer AI Studio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T23:35:04.442Z","originalFileLocation":"home/models.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Writer AI Studio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Choose a model - Writer AI Studio\">\u003cmeta data-mint-head property=\"og:description\" content=\"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Writer AI Studio Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev.writer.com/home/models\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://writer.mintlify.site/_mintlify/api/og/v2?division=Palmyra+models\u0026amp;title=Choose+a+model\u0026amp;description=Choose+the+right+Palmyra+model+for+your+needs.+Compare+capabilities%2C+context+windows%2C+and+pricing+for+the+Palmyra+X6%2C+X5%2C+and+X4+models.\u0026amp;theme=42614b5f169f207d5a1f89aa\u0026amp;signature=d5d59276a82f6410057e7539ac5946ff40d680f8d44166855512e7e2af2598b3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Choose a model - Writer AI Studio\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://writer.mintlify.site/_mintlify/api/og/v2?division=Palmyra+models\u0026amp;title=Choose+a+model\u0026amp;description=Choose+the+right+Palmyra+model+for+your+needs.+Compare+capabilities%2C+context+windows%2C+and+pricing+for+the+Palmyra+X6%2C+X5%2C+and+X4+models.\u0026amp;theme=42614b5f169f207d5a1f89aa\u0026amp;signature=d5d59276a82f6410057e7539ac5946ff40d680f8d44166855512e7e2af2598b3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/writer/rBMYB50U__7D_mBT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Writer AI Studio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#BFCBFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev.writer.com/home/models\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/home/models.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev.writer.com/#organization\",\"name\":\"Writer AI Studio\",\"url\":\"https://dev.writer.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/writer/YZ72OUP7BQyK8p2G/logo/writer_logo_light.svg?fit=max\u0026auto=format\u0026n=YZ72OUP7BQyK8p2G\u0026q=85\u0026s=c9a784871f9b98724bb1eae947e745ed\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev.writer.com#website\",\"name\":\"Writer AI Studio\",\"url\":\"https://dev.writer.com\",\"publisher\":{\"@id\":\"https://dev.writer.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev.writer.com/home/models#webpage\",\"url\":\"https://dev.writer.com/home/models\",\"name\":\"Choose a model\",\"description\":\"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\",\"dateModified\":\"2026-11-12T23:35:04.442Z\",\"isPartOf\":{\"@id\":\"https://dev.writer.com#website\"},\"breadcrumb\":{\"@id\":\"https://dev.writer.com/home/models#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev.writer.com/home/models#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Models and pricing\",\"item\":\"https://dev.writer.com/home/models-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Choose a model\",\"item\":\"https://dev.writer.com/home/models\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://dev.writer.com/home/models#article\",\"headline\":\"Choose a model\",\"name\":\"Choose a model\",\"description\":\"Choose the right Palmyra model for your needs. Compare capabilities, context windows, and pricing for the Palmyra X6, X5, and X4 models.\",\"url\":\"https://dev.writer.com/home/models\",\"mainEntityOfPage\":{\"@id\":\"https://dev.writer.com/home/models#webpage\"},\"dateModified\":\"2026-11-12T23:35:04.442Z\",\"publisher\":{\"@id\":\"https://dev.writer.com/#organization\"},\"isPartOf\":{\"@id\":\"https://dev.writer.com#website\"}}]}\u003c/script>","agentPointerHref":"/home/models.md","siteName":"Writer AI Studio","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","groups":[{"group":"Getting started","pages":[{"title":"Writer Control Center","sidebarTitle":"Introduction","mode":"wide","href":"/home/introduction"},{"title":"Choose your development path","sidebarTitle":"Development options","href":"/home/development_options"},{"title":"Quickstart","href":"/home/quickstart"},{"title":"WRITER MCP","sidebarTitle":"WRITER MCP","href":"/home/writer-mcp"},{"title":"Pricing","href":"/home/pricing"},{"title":"Cookbooks","href":"/home/cookbooks"},{"title":"SDKs","href":"/home/sdks"},{"title":"Changelog","href":"/home/changelog"},{"title":"Agent Builder","url":"/home/agent-builder/overview","href":"/home/agent-builder-link"},{"title":"API Reference","url":"/api-reference/application-api/applications","href":"/home/api-reference-link"}]},{"group":"Core concepts","pages":[{"group":"Generative AI concepts","pages":[{"title":"Understand generative AI","sidebarTitle":"Generative AI overview","href":"/home/generative-ai-overview"},{"title":"Write effective prompts","sidebarTitle":"Prompting strategies","mode":"wide","href":"/home/prompting"},{"title":"Configure model parameters","sidebarTitle":"Model parameters","href":"/home/model-parameters"},{"title":"Understand tokens","sidebarTitle":"Tokens","href":"/home/tokens"}]},{"title":"Connect your data to AI with Knowledge Graph","sidebarTitle":"Knowledge Graph concepts","href":"/home/knowledge-graph-concepts"}]},{"group":"Agent Builder v2","pages":[{"title":"Learn about Agent Builder v2","sidebarTitle":"Overview","href":"/home/agent-builder/overview"},{"title":"Agent Builder v2 quickstart","sidebarTitle":"Quickstart","href":"/home/agent-builder/getting-started"},{"title":"Learn about Agent Builder v2 observability","sidebarTitle":"Agent observability","href":"/home/agent-builder/observability"}]},{"group":"Monitor and manage","pages":[{"title":"Add external models","href":"/home/external-models"},{"group":"Guardrails","pages":[{"title":"Configure guardrails","href":"/home/guardrails"},{"title":"Built-in DLP guardrail","href":"/home/guardrails-dlp"},{"title":"Set up Bedrock guardrails","sidebarTitle":"AWS Bedrock","href":"/home/guardrails-bedrock"},{"title":"Set up Azure Content Safety guardrails","sidebarTitle":"Azure Content Safety","href":"/home/guardrails-azure"}]},{"group":"Encryption","pages":[{"title":"Encryption Key Management","sidebarTitle":"Encryption Key Management","href":"/home/encryption-key-management"},{"title":"Set up BYOK encryption","sidebarTitle":"Set up BYOK","href":"/home/setup-byok"}]},{"group":"Observability","pages":[{"title":"Observability overview","href":"/home/observability"},{"title":"Event logs","href":"/home/event-logs"},{"title":"Export logs","href":"/home/logs-export"},{"title":"Export audit events","href":"/home/audit-events-export"},{"title":"Usage and spend","href":"/home/usage-and-spend"},{"title":"Learn about Agent Builder v2 observability","sidebarTitle":"Agent observability","href":"/home/agent-builder/observability"}]}]},{"group":"Models and pricing","pages":[{"title":"Choose a model","description":"Compare Writer's Palmyra models with external provider models to select the best fit for your AI agents","href":"/home/models-overview"},{"group":"Palmyra models","pages":[{"title":"Choose a model","sidebarTitle":"Palmyra models overview","href":"/home/models"},{"title":"Language support","description":"Palmyra LLM supports 30+ languages including Arabic, French, Spanish, Hindi, and Chinese. View MMLU and BLEU benchmark scores for multilingual text generation.","href":"/home/language_support"}]},{"group":"External models","pages":[{"title":"Add external models","href":"/home/external-models"},{"title":"AWS Bedrock","sidebarTitle":"AWS Bedrock","href":"/providers/aws-bedrock"},{"title":"OpenRouter","sidebarTitle":"OpenRouter","href":"/providers/openrouter"}]}]},{"group":"Connect to your data","pages":[{"title":"Configure connectors","href":"/home/mcp-gateway"},{"title":"Custom connectors","href":"/home/custom-connectors"},{"title":"Private endpoints","href":"/home/private-endpoints"},{"group":"Available prebuilt connectors","pages":[{"title":"Adobe Experience Manager connector","sidebarTitle":"Adobe Experience Manager","href":"/connectors/adobe-experience-manager"},{"title":"Asana connector","sidebarTitle":"Asana","href":"/connectors/asana"},{"title":"Atlassian connector","sidebarTitle":"Atlassian","href":"/connectors/atlassian"},{"title":"Contentful connector","sidebarTitle":"Contentful","href":"/connectors/contentful"},{"title":"Databricks connector","sidebarTitle":"Databricks","href":"/connectors/databricks"},{"title":"FactSet connector","sidebarTitle":"FactSet","href":"/connectors/factset"},{"title":"Figma connector","sidebarTitle":"Figma","href":"/connectors/figma"},{"title":"Gmail connector","sidebarTitle":"Gmail","href":"/connectors/gmail"},{"title":"Gong connector","sidebarTitle":"Gong","href":"/connectors/gong"},{"title":"Google BigQuery connector","sidebarTitle":"Google BigQuery","href":"/connectors/google-bigquery"},{"title":"Google Calendar connector","sidebarTitle":"Google Calendar","href":"/connectors/google-calendar"},{"title":"Google Docs connector","sidebarTitle":"Google Docs","href":"/connectors/google-docs"},{"title":"Google Drive connector","sidebarTitle":"Google Drive","href":"/connectors/google-drive"},{"title":"Google Sheets connector","sidebarTitle":"Google Sheets","href":"/connectors/google-sheets"},{"title":"HubSpot connector","sidebarTitle":"HubSpot","href":"/connectors/hubspot"},{"title":"Microsoft Calendar connector","sidebarTitle":"Microsoft Calendar","href":"/connectors/microsoft-calendar"},{"title":"Microsoft OneDrive connector","sidebarTitle":"Microsoft OneDrive","href":"/connectors/microsoft-onedrive"},{"title":"Microsoft Outlook connector","sidebarTitle":"Microsoft Outlook","href":"/connectors/microsoft-outlook"},{"title":"Microsoft SharePoint connector","sidebarTitle":"Microsoft SharePoint","href":"/connectors/microsoft-sharepoint"},{"title":"Microsoft Teams connector","sidebarTitle":"Microsoft Teams","href":"/connectors/microsoft-teams"},{"title":"PitchBook connector","sidebarTitle":"PitchBook","href":"/connectors/pitchbook"},{"title":"Salesforce connector","sidebarTitle":"Salesforce","href":"/connectors/salesforce"},{"title":"Salesforce Marketing Cloud connector","sidebarTitle":"Salesforce Marketing Cloud","href":"/connectors/salesforce-marketing-cloud"},{"title":"Semrush connector","sidebarTitle":"Semrush","href":"/connectors/semrush"},{"title":"Slack connector","sidebarTitle":"Slack","href":"/connectors/slack"},{"title":"Snowflake connector","sidebarTitle":"Snowflake","href":"/connectors/snowflake"},{"title":"Webflow connector","sidebarTitle":"Webflow","href":"/connectors/webflow"},{"title":"Wrike connector","sidebarTitle":"Wrike","href":"/connectors/wrike"},{"title":"ZoomInfo connector","sidebarTitle":"ZoomInfo","href":"/connectors/zoominfo"}]},{"title":"Create and manage Knowledge Graphs","url":"https://support.writer.com/article/242-how-to-create-and-manage-a-knowledge-graph","href":"/home/knowledge-graphs"}]},{"group":"Chat completions","pages":[{"title":"Generate text from a prompt","href":"/home/text-generation"},{"title":"Generate chat completions","href":"/home/chat-completion"},{"title":"Stream responses from the API","href":"/home/streaming"},{"title":"Receive structured outputs","href":"/home/structured-output"},{"title":"Add images to chat completions","href":"/home/chat-with-images"}]},{"group":"No-code agents","hidden":true,"pages":[{"title":"Invoke no-code agents via the API","href":"/home/applications"},{"title":"Run agents asynchronously","href":"/home/async-applications"}]},{"group":"Knowledge Graphs","pages":[{"title":"Create and manage a Knowledge Graph","href":"/home/knowledge-graph"},{"title":"Ask questions to Knowledge Graphs","href":"/home/kg-query"},{"title":"Configure Knowledge Graph query parameters","href":"/home/knowledge-graph-query-config"},{"title":"Work with inline citations in Knowledge Graph responses","sidebarTitle":"Include inline citations in responses","href":"/home/inline-citations"},{"title":"Add web content to a Knowledge Graph","href":"/home/web-connector-url"}]},{"group":"Tool calling","pages":[{"title":"Call a custom function in a chat","href":"/home/tool-calling"},{"title":"Use no-code agents as tools","href":"/home/applications-tool-calling"},{"title":"Use a Knowledge Graph in a chat","href":"/home/kg-chat"},{"title":"Use another LLM as a tool","href":"/home/model-delegation"}]},{"group":"Additional capabilities","pages":[{"title":"Manage files","href":"/home/files"},{"title":"Parse a PDF","href":"/home/parse-pdf"}]},{"group":"Integrations","pages":[{"title":"Explore integrations","sidebarTitle":"Overview","href":"/home/integrations-overview"},{"title":"Structured output with Instructor","href":"/home/integrations/instructor"},{"title":"Using Writer with LangChain","href":"/home/integrations/langchain"},{"title":"Invoke Palmyra models on Amazon Bedrock","href":"/home/integrations/bedrock"},{"title":"Using Writer with AWS Strands Agents","href":"/home/integrations/strands"},{"title":"Using Writer with OpenLLMetry","href":"/home/integrations/openllmetry"}]},{"group":"Security and compliance","pages":[{"title":"Secure prompts against attacks","sidebarTitle":"Prompt security","href":"/home/prompt_injections"},{"title":"Transparency","href":"/home/transparency"},{"title":"Mitigate bias in AI outputs","sidebarTitle":"Mitigating bias","href":"/home/mitigating_bias"},{"title":"Toxic check","href":"/home/toxic-check"}]},{"group":"Resources","pages":[{"title":"Research","url":"https://writer.com/research/","href":"/home/research"},{"title":"Help Center","url":"https://support.writer.com/","href":"/home/help-center"},{"title":"Engineering Blog","url":"https://writer.com/engineering/","href":"/home/blog"},{"title":"Usage policy","href":"/home/usage-policy"}]}]},{"tab":"Writer Framework","icon":"shapes","hidden":true,"pages":[{"title":"Writer Framework","href":"/framework/introduction"}]},{"tab":"API Reference","icon":"key","pages":[{"title":"API Reference","href":"/api-reference/api-keys"}]},{"tab":"Legacy API Reference","hidden":true,"pages":[{"title":"Legacy API Reference","href":"/api-reference-legacy/billing/get-your-organization-subscription-details"}]}]},"basePath":"","title":"Choose a model - Writer AI Studio","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":[],"chunks":[]}