Choose a model - Writer AI Studio

Model comparison

The following table compares the capabilities, context windows, and pricing of the Palmyra X5 and X4 models.

Feature Palmyra X5 Palmyra X4
Description General-purpose model with a 1M token context window and adaptive reasoning Language model for complex tasks that require extended context
API model ID palmyra-x5 palmyra-x4
Bedrock model ID writer.palmyra-x5-v1:0 writer.palmyra-x4-v1:0
Pricing (Input) $0.60 / 1M tokens $2.50 / 1M tokens
Pricing (Output) $6.00 / 1M tokens $10.00 / 1M tokens
Context window 1M tokens 128k tokens
Max output 8,192 tokens 4,096 tokens

All Palmyra models are available in No-code, Agent Builder, and API. To analyze images, use vision capabilities with Palmyra X5.

Model details

Palmyra X5

Palmyra X5 is Writer’s newest and most advanced model for building and scaling AI agents, featuring a 1 million token context window, adaptive reasoning, and industry-leading speed and cost efficiency.

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

Large data requirements

Palmyra X5 demonstrates robust performance across a suite of industry-standard benchmarks, showcasing its capabilities in reasoning, retrieval, and domain-specific tasks.

Benchmarking

Palmyra X4

palmyra-x4 is an advanced language model that excels in processing and understanding complex tasks. It is ideal for workflow automation, coding tasks, and data analysis.

Pricing:

Content window: 128k

Palmyra X4 consistently ranks at the top in structured output, API tool calling, and accuracy for complex multi-step workflows.

Benchmarking

Using models with the Writer API

To select the Palmyra model you want to use for a chat completion, specify the model ID in the model parameter of the request.

Example in cURL

curl --location 'https://api.writer.com/v1/chat' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $WRITER_API_KEY" \
--data '{
  "model": "palmyra-x5",
  "messages": [\
    {\
      "role": "user",\
      "content": "Summarize GDPR compliance requirements for a cloud-based data storage provider"\
    }\
  ]
}'

Example in Python

from writerai import Writer

client = Writer()

chat_completion = client.chat.completions.create(
  model="palmyra-x5",
  messages=[\
    {\
      "role": "user",\
      "content": "Summarize GDPR compliance requirements for a cloud-based data storage provider"\
    }\
  ]
)

print(chat_completion.choices[0].message.content)

Example in JavaScript

import { Writer } from 'writer-sdk';

const client = new Writer();

const chat_completion = await client.chat.completions.create({
  model: 'palmyra-x5',
  messages: [\
    {\
      "role": "user",\
      "content": "Summarize GDPR compliance requirements for a cloud-based data storage provider"\
    }\
  ]
});

console.log(chat_completion.choices[0].message.content);

To select the Palmyra model you want to use for text generation, specify the model ID in the model parameter of the request.

Example in cURL

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"
}'

Example in Python

from writerai import Writer

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)

Example in JavaScript

import { Writer } from 'writer-sdk';

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);

Deprecation policy

Timeline for deprecation

Deprecated models

Model name Deprecation Date
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