---
title: Writer: Palmyra X5 API | Text Generation | ModelsLab
description: Enterprise LLM with 1M-token context window, adaptive reasoning, multi-modal support, and tool-calling for scalable AI agents, priced at $0.60/M input.
url: https://modelslab.com/models/writer/writer-palmyra-x5/api.md
canonical: https://modelslab.com/models/writer/writer-palmyra-x5/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T01:50:25.059544Z
---

Writer: Palmyra X5
---

 [LLMs.txt](https://modelslab.com/models/open_router/writer-palmyra-x5/llms.txt) [.md](https://modelslab.com/models/writer/writer-palmyra-x5.md)

writer-palmyra-x5 writer Closed Source Model $3.300000 / call

Writer: Palmyra X5
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Writer: Palmyra X5

writer writer-palmyra-x5

Copy model ID

PricingInput $0.60 / 1M tokens

Output $6.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[MM](https://modelslab.com/models/open_router/morph-morph-v3-large)[Open Router](https://modelslab.com/models/open_router)

 [Morph: Morph V3 Large

Closed Source Model](https://modelslab.com/models/open_router/morph-morph-v3-large)

[Q3](https://modelslab.com/models/together_ai/Qwen-Qwen3-30B-A3B-Instruct-2507-Lora)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 30B A3B Instruct 2507 Lora

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-30B-A3B-Instruct-2507-Lora)

[L3](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3.1-70B)[Together AI](https://modelslab.com/models/together_ai)

 [Llama 3.1 70B

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3.1-70B)

[M8](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x22B-Instruct-v0.1)[Together AI](https://modelslab.com/models/together_ai)

 [Mixtral 8X22b Instruct V0.1

Closed Source Model](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x22B-Instruct-v0.1)

[RL](https://modelslab.com/models/refuel_ai/togethercomputer-Refuel-Llm-V2)[ModelsLab](https://modelslab.com/models/refuel_ai)

 [Refuel LLM V2

Closed Source Model](https://modelslab.com/models/refuel_ai/togethercomputer-Refuel-Llm-V2)

[AO](https://modelslab.com/models/open_router/allenai-olmo-2-0325-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 2 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-2-0325-32b-instruct)

[ML](https://modelslab.com/models/open_router/mistralai-mistral-large)[Open Router](https://modelslab.com/models/open_router)

 [Mistral Large

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-large)

[XG](https://modelslab.com/models/open_router/x-ai-grok-4-fast)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 4 Fast

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-4-fast)

[TD](https://modelslab.com/models/open_router/tngtech-deepseek-r1t2-chimera)[Open Router](https://modelslab.com/models/open_router)

 [TNG: DeepSeek R1T2 Chimera

Closed Source Model](https://modelslab.com/models/open_router/tngtech-deepseek-r1t2-chimera)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-0324)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3 0324

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-0324)

[G3](https://modelslab.com/models/together_ai/google-gemma-3-4b-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3 4b it

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3-4b-it)

[PS](https://modelslab.com/models/open_router/perplexity-sonar-deep-research)[Open Router](https://modelslab.com/models/open_router)

 [Perplexity: Sonar Deep Research

Closed Source Model](https://modelslab.com/models/open_router/perplexity-sonar-deep-research)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B Base

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)

[AA](https://modelslab.com/models/open_router/arcee-ai-spotlight)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Spotlight

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-spotlight)

[OO](https://modelslab.com/models/open_router/openai-o3)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3

Closed Source Model](https://modelslab.com/models/open_router/openai-o3)

[QQ](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen2.5 VL 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-32b-instruct)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-DE)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3-DE)

[DR](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1)[Together AI](https://modelslab.com/models/together_ai)

 [DeepSeek R1-0528

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1)

About Writer: Palmyra X5
---

Palmyra X5 is Writer's most advanced model, purpose-built for building and scaling AI agents across the enterprise. It delivers industry-leading speed and efficiency on context windows up to 1 million...

### Technical Specifications

Model IDwriter-palmyra-x5CategoryLLM ModelsTaskText GenerationPrice$3.300000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Writer: Palmyra X5 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "writer-palmyra-x5",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/writer/writer-palmyra-x5/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Writer: Palmyra X5 API costs $3.300000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Writer: Palmyra X5](https://modelslab.com/writer-palmyra-x5) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Writer](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Writer: Palmyra X5 FAQ
---

### What is Writer: Palmyra X5?

Palmyra X5 is Writer's most advanced model, purpose-built for building and scaling AI agents across the enterprise. It delivers industry-leading speed and efficiency on context windows up to 1 million...

### How do I use the Writer: Palmyra X5 API?

You can integrate Writer: Palmyra X5 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "writer-palmyra-x5" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Writer: Palmyra X5 cost?

Writer: Palmyra X5 costs $3.300000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Writer: Palmyra X5 model ID?

The model ID for Writer: Palmyra X5 is "writer-palmyra-x5". Use this ID in your API requests to specify this model.

### Does Writer: Palmyra X5 have a free tier?

Yes, ModelsLab offers a free tier that lets you try Writer: Palmyra X5 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*