Llama API
llm_llamaLlama API - pay per call, no API key. OpenAI-format chat completions on meta-llama/llama-4-maverick, pinned to Parasail for reliability. You sign a fixed price computed from your max_tokens; unused tokens are not refunded. 20s server-side timeout - never charged if it fires; set your client timeout to 30s. Try GET /llm/llama/sample.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "llm_llama"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | OpenAI-format chat messages: [{role, content}, ...]. | |
| max_tokens | No | Max completion tokens, capped at 4096 - also bounds the price ceiling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| model | No | ||
| usage | Yes | ||
| choices | Yes | ||
| x402_receipt | No |