Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a unified AI gateway tool for chat completions, embeddings, model listing, config, usage reporting, and async video jobs.
18% 100%+82 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 4 of 22 without it.
Our billing team needs an aggregate report of AI token consumption and cost for Butterbase app `app_bill_2026` covering May 1, 2026 through May 31, 2026 to diagnose a spending cap alert. Write the exact gateway tool call to retrieve this usage window.
Calls manage_ai with action get_usage and passes the start and end dates in YYYY-MM-DD format.
3 of 3 safety checks passed
The AI gateway provides chat, embeddings, model listing, configuration, usage reporting, and asynchronous video jobs. One umbrella tool: manage_ai.
| Action | What it does | Returns |
|---|---|---|
chat | Synchronous chat completion (no streaming) | OpenAI-shaped { choices: [...] } |
embed | Vector embeddings for string or string[] | OpenAI-shaped { data: [{ embedding: [...] }] } |
list_models | Available models with capabilities | { models: AiModel[] } |
get_config | Current AI config (default model, BYOK key flag, etc.) | AiConfig |
update_config | Set defaults, allowed models, max tokens, BYOK | AiConfig |
get_usage | Token + cost aggregate over a window | usage record |
submit_video | Submit an ordinary async video job | { job_id, status, polling_url } |
poll_video | Read an existing video job without submitting again | status, optional stage and authenticated content URLs |
manage_ai({
action: "chat",
app_id,
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "What's RAG?" }
],
model: "openai/gpt-4o-mini", // optional — falls back to app's default
temperature: 0.2, // optional
max_tokens: 500 // optional
})
This action sets stream: false deliberately — agent tools don't stream. If you need partial-token deltas, drive the SDK's ai.chatStream(…) from inside a function or DO instead.
messages[].content can be a string or an array of content parts ({ type: "text", text }, { type: "image_url", image_url: {...} }, { type: "video_url", video_url: {...} }).
Next to this one in the catalogue, plus more from the same author.