api_agent_ai_gateway
Agent AI Gateway — One consistent interface to customer-owned generative AI. Route a real chat completion, an original generated image or spoken MP3 audio through the customer’s own OpenAI account, returning provider model, response type and tangible output. No hidden subscription, keys stored nowhere. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
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": {
"mode": "<mode>",
"prompt": "<prompt>"
},
"name": "api_agent_ai_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | chat, image or speech | |
| size | No | Image dimensions, default 1024x1024 | |
| model | No | Optional OpenAI chat model; approved model IDs only | |
| voice | No | Optional TTS voice, default alloy | |
| prompt | Yes | Text prompt or original content; max 4000 characters |