Skip to main content
Glama

venice_list_api_keys

Retrieve all API keys associated with your Venice AI account to manage access and permissions for AI model interactions.

Instructions

List all API keys on the account (requires admin API key)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline async handler function that calls veniceAPI to fetch API keys, handles errors, formats the list of keys, and returns a markdown text response.
    async () => { const response = await veniceAPI("/api_keys"); const data = await response.json() as APIKeysResponse; if (!response.ok) return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; const keys = data.data || []; const list = keys.map((k) => { const created = k.createdAt || k.created_at || "?"; const name = k.name || k.description || "Unnamed"; return `- ${name} (${k.id}) - created: ${created.split("T")[0]}`; }).join("\n"); return { content: [{ type: "text" as const, text: `API Keys (${keys.length}):\n${list}` }] }; }
  • The server.tool() call that registers the 'venice_list_api_keys' tool with no input schema and the inline handler function.
    "venice_list_api_keys", "List all API keys on the account (requires admin API key)", {}, async () => { const response = await veniceAPI("/api_keys"); const data = await response.json() as APIKeysResponse; if (!response.ok) return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; const keys = data.data || []; const list = keys.map((k) => { const created = k.createdAt || k.created_at || "?"; const name = k.name || k.description || "Unnamed"; return `- ${name} (${k.id}) - created: ${created.split("T")[0]}`; }).join("\n"); return { content: [{ type: "text" as const, text: `API Keys (${keys.length}):\n${list}` }] }; } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/georgeglarson/venice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server