completions
OpenAI-compatible text completions (legacy /v1/completions) — Drop-in OpenAI legacy Completions API: POST {prompt, max_tokens (1-2048, default 256), temperature (0-2), stop (string or up to 4), echo} and get a text_completion object with choices[0].text, finish_reason and usage. Powered by Llama 3.3 70B. Point any OpenAI SDK, LangChain or LlamaIndex client at base URL https://api.polyform.org/v1. One prompt per call, no streaming. Price: $0.01 USDC (Base, via x402).
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": "completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The three primary colors of light are |