Featured
Multimodal chat completion
Send both text and images in the same message to enable rich, visual conversations with Palmyra X5.
Third-party models
Call third-party Amazon Bedrock models via the Writer SDK, including chat and tool calling.
Knowledge Graph
Use our RAG implementation to create, manage, and use structured data to enhance AI capabilities.
All cookbooks
Applications
Working with no-code agents
Retrieve no-code agent metadata and generate output from them using the Writer SDK.
Knowledge Graph management
Attach a Knowledge Graph to a no-code agent programmatically.
Run no-code agents asynchronously
Run no-code agents asynchronously and manage asynchronous jobs.
Completions
Text completion
Use the Writer Python SDK for text completion tasks.
Chat completion
Build single-turn and multi-turn chat completions to support conversational AI applications.
Multimodal chat completion
Send both text and images in the same message to enable rich, visual conversations with Palmyra X5.
Structured completions
Get predictable, machine-readable responses from Palmyra LLMs using JSON Schema or Pydantic objects.
Knowledge Graph
Knowledge Graph
Use our RAG implementation to create, manage, and use structured data to enhance AI capabilities.
Knowledge Graph tool calling
Access a Knowledge Graph in a chat.
Integrations
Instructor basics
Extract structured data from text, CSV, and PDF files using Instructor and Writer.
Advanced Instructor
Work with nested Pydantic models, retry and repair patterns, and streaming using Instructor and Writer.
LangChain basics
Use Writer with LangChain to build chat workflows and LangGraph agents with tool calling.
Advanced LangChain
Build Writer-powered LangChain agents with custom middleware, context engineering, and MCP.
OpenLLMetry
Monitor, trace, and debug Writer API calls using OpenLLMetry and Traceloop.
Strands Agents
Build agents with the Strands Agents SDK and Writer models, either through direct integration or Amazon Bedrock.
Models
List all models
List all of the Palmyra models available in the Writer API.
Third-party models
Call third-party Amazon Bedrock models via the Writer SDK, including chat and tool calling.
Palmyra Creative
Use the Palmyra Creative model to generate creative content.
Palmyra Fin
Use the Palmyra Fin model for financial analysis and forecasting.
Palmyra Med
Use the Palmyra Med model to answer medical questions and analyze medical records.
Tool calling
Tool calling fundamentals
Learn how to use tool calling to enhance the functionality of your LLM.
LLM tool calling
Use model delegation to refer medical questions to the Palmyra Med model during a chat.
Knowledge Graph tool calling
Access a Knowledge Graph in a chat.
Streaming tool calls
Use tool calling with streaming responses.
Math tool calling example
Extend the capabilities of your LLM with predefined mathematical functions.
Translation tool calling
Translate text between different languages in chat completions.
Web search tool calling
Answer real-time questions by retrieving up-to-date information from the internet during a chat.