api_agent_ai_gateway
Read-onlyIdempotent
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.
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 |