Skip to main content
GET
/
v1
/
models
cURL
curl --location --request GET https://api.writer.com/v1/models \
 --header "Authorization: Bearer <token>"
import os
from writerai import Writer

client = Writer(
# This is the default and can be omitted
api_key=os.environ.get("WRITER_API_KEY"),
)
model = client.models.list()
print(model.models)
import Writer from 'writer-sdk';

const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});

async function main() {
const model = await client.models.list();

console.log(model.models);
}

main();
{
  "models": [
    {
      "name": "Palmyra X 003 Instruct",
      "id": "palmyra-x-003-instruct"
    },
    {
      "name": "Palmyra Med",
      "id": "palmyra-med"
    },
    {
      "name": "Palmyra Financial",
      "id": "palmyra-fin"
    },
    {
      "name": "Palmyra X4",
      "id": "palmyra-x4"
    },
    {
      "name": "Palmyra X5",
      "id": "palmyra-x5"
    },
    {
      "name": "Palmyra Creative",
      "id": "palmyra-creative"
    }
  ]
}
Deprecation notice: The following models are deprecated and will be removed on July 13, 2026: palmyra-x-003-instruct, palmyra-vision, palmyra-med, palmyra-fin, and palmyra-creative.Migration path: Use palmyra-x5 as the replacement for all deprecated models. Palmyra X5 supports a 1M-token context window and covers general-purpose, financial, medical, and creative use cases. For vision workloads, use chat with images with Palmyra X5 instead of palmyra-vision. See the deprecation policy for more information.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.

Response

200 - application/json

Successful response

models
object[]
required

The ID of the model to use for processing the request.