AAimyria

Developer guides / English / Anthropic Messages

API setup · Anthropic Messages

Send an Anthropic Messages request.

This cURL example shows the request shape and required headers. Use a private key and a model ID that the current catalog marks as compatible with Messages.

1. Confirm protocol and model support

Open the live model catalog and select a model that explicitly supports Anthropic Messages. Copy its exact model ID. Availability, names and protocol mappings can change; a Claude-family name alone does not guarantee that every endpoint accepts it.

Open the model catalog · Review the setup tutorial

2. Store your private key

Use a server-side environment variable or secret manager. Do not embed the key in browser code or share it with other people.

export AIMYRIA_API_KEY="YOUR_OWN_API_KEY"
export AIMYRIA_MODEL="COPY_A_MESSAGES_COMPATIBLE_ID"

3. Send a request

The endpoint uses the Messages path. The model field is deliberately a placeholder; replace it with an ID that is currently listed as compatible.

curl https://aimyria.com/v1/messages \
  -H "x-api-key: $AIMYRIA_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "'"$AIMYRIA_MODEL"'",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Give me one concise greeting."}]
  }'

Common errors

Keep credentials and usage within the allowed scope

Follow Aimyria’s terms and the upstream provider’s policies. The published terms restrict sharing API access and prohibit redistribution without written authorization. Protect the key as a password.

Check supported regionsMore developer guidesCreate an account