responses
OpenAI Responses API compatible text generation — Drop-in OpenAI Responses API (POST /v1/responses) backed by Llama 3.3 70B on Workers AI. Body JSON: input (string, or array of {role, content} messages where content is a string or [{type:input_text,text}]), optional instructions, max_output_tokens (16-4096, default 1024), temperature, top_p, metadata. Returns the standard response object with output[0].content[0].output_text, a top-level output_text convenience field and token usage. developer role maps to system; images and tools are ignored; stream is not supported. Failed model calls return 502 and are never charged. 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": {
"input": "<input>"
},
"name": "responses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Write a two-sentence product update announcing faster API responses. |