Palmyra X5 API

Palmyra X5 on AIMLAPI.

Modalities
Image, TextText
In / Out price
$0.6348/$6.35per 1M
Context window
1.04M tokens
Released
Jan 21, 2026

Palmyra X5 overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Palmyra X5 through AI/ML API

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

Palmyra X5 pricing in US dollars
UsagePriceUnit
Input$0.63481M tokens
Output$6.351M 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.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Palmyra X5$0.6348$6.35
Aion-3.0$3.17$6.35
Aion-3.5$3.17$6.35
Fugu Max$2.12$6.35
Large 2407$2.12$6.35

How to use the Palmyra X5 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'

Related articles

All posts

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.

Start building with Palmyra X5

Palmyra X5 API

writer/palmyra-x5

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'