POST https://api.freemodel.app/v1/messages
Choose a Claude-compatible model ID returned by GET /v1/models.
Create a message
FreeModel accepts a standard Bearer key. Integrations that send anx-api-key header can also use a FreeModel sk-... key.
Response
Request body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | A Claude-compatible model ID available to your key. |
messages | array | Yes | Anthropic-style conversation messages. |
max_tokens | integer | Yes | Maximum tokens to generate. |
stream | boolean | No | Set to true when your client expects an event stream. |
temperature | number | No | Sampling variation when supported by the selected model. |