chat_completions
OpenAI-compatible chat completions LLM inference, pay per call ($0.0015 flat, no API key, no account). POST an OpenAI-style {model, messages, max_tokens, temperature} body, or GET with ?prompt=&system=. Open models: Llama 3.1 8B (default), SEA-LION v4 27B (tuned for Indonesian and Southeast Asian languages), Mistral Small 3.1 24B, Llama 3.2 3B. Returns the standard choices[0].message.content shape plus token usage. Non-streaming; up to 1,024 output tokens. Price $0.0015 USDC per call (x402, Base).
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": {
"prompt": "<prompt>"
},
"name": "chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model alias, default llama-3.1-8b | |
| prompt | Yes | User message (GET variant), max 24,000 chars | |
| system | No | Optional system prompt | |
| max_tokens | No | 1-1024, default 512 | |
| temperature | No | 0-2, default 0.7 |