Palmyra X5 overview
Palmyra X5 specs
- Model ID
writer/palmyra-x5- Developer
- Writer
- Context window
- 1,040,000 tokens
- Max output
- 8,192 tokens
- Input
- Image, Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Use cases
Revenue and reporting: ingest full RFPs, pull from Salesforce, and draft first responses automatically, or generate fund reports by joining third-party market data with internal research in a single agent flow.
Support and knowledge management: classify tickets, stage CMS updates, publish content with review workflows, and keep knowledge bases fresh by flagging outdated content and suggesting revisions.
Regulatory and compliance intelligence: analyze lengthy contracts, 10-Ks, or EHRs in one pass, extract key clauses, identify risks, and summarize with citations for finance, healthcare, and legal teams.
Customer and research insights: summarize thousands of survey responses or research papers, surface themes, extract insights, and accelerate product or R&D decisions with minimal human input.
Capabilities
- Function calling
- Reasoning
- Streaming
- Structured outputs
- Web search
Palmyra X5 API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $0.6348 | 1M tokens |
| Output | $6.35 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Palmyra X5 vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| Palmyra X5 | $0.6348 | $6.35 |
| Aion-3.0 | $3.17 | $6.35 |
| Aion-3.5 | $3.17 | $6.35 |
| $2.12 | $6.35 | |
| $2.12 | $6.35 |
How to use the Palmyra X5 API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "writer/palmyra-x5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "writer/palmyra-x5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "writer/palmyra-x5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Palmyra X5 FAQ
What is the context window of Palmyra X5?
Palmyra X5 has a 1,040,000 tokens context window and can return up to 8,192 tokens.
What inputs and outputs does Palmyra X5 support?
Palmyra X5 takes image, text as input and returns text.
What is the model ID for Palmyra X5?
Use writer/palmyra-x5 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
How much does Palmyra X5 cost?
Palmyra X5 costs $0.6348 input and $6.35 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does Palmyra X5 support streaming?
Yes, Palmyra X5 can stream responses as they are generated.
Can Palmyra X5 read images?
Yes, Palmyra X5 accepts image input alongside text.
Does Palmyra X5 support calling external tools or functions?
Yes, it supports function calling, parallel tool calls, and tool use.
How can I use Palmyra X5 in my application?
Palmyra X5 is available via the API endpoint https://api.aimlapi.com/v1/chat/completions using the model id writer/palmyra-x5.
Can Palmyra X5 perform web searches?
Yes, Palmyra X5 includes web search as a supported feature and capability.

