Apiframe MCP server for AI agents

Live

API KEY

AI MEDIA GENERATION

AI

Apiframe gives your agent AI media generation: start image, video, and music jobs with models like Midjourney, Flux, Kling, Veo, and Suno, edit, upscale, and cut out images and video, list your trained LoRAs, and poll jobs for results.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Apiframe
agent · Acme Q3
Run
Generate an image of a ceramic mug on a wooden table with Flux.
S
apiframe_image_generate
640ms
Media generation agent
Started a Flux image generation job for the ceramic mug. The job is processing, and I will return the image when it completes.
Sources: Apiframe, 1 job
apiframe
1 job
18:29
Message Claude...

Tools your media generation agent reaches for on Apiframe, scoped per user.

CALL ANY TOOL
22 tools for media generation in Apiframe: start image, video, and music jobs, edit and upscale media, list LoRAs and models, and poll jobs for results.
apiframe_asset_create
Create asset
Download media from a URL and store it in Apiframe storage as a reusable asset. Returns the asset id, status and URL; reference it as asset://<id> in any media URL field of a generation request. Use this for inputs you will reuse across many jobs.
Parameters
Name
Type
Required
Description
type
string
Required
Kind of media. Example: image. One of: `image`, `video`, `audio`.
url
string
Required
Public URL of the media to store. Example: https://example.com/brand-logo.png.
apiframe_asset_get
Get asset
apiframe_image_background_remove
Remove image background
apiframe_image_edit
Image edit
apiframe_image_generate
Generate image
apiframe_image_upscale
Image upscale
apiframe_job_get
Get job
apiframe_jobs_list
List jobs
apiframe_lora_delete
Delete lora
apiframe_lora_get
Get lora
apiframe_loras_list
List loras
apiframe_me_get
Get me
apiframe_midjourney_action
Midjourney action
apiframe_models_list
List models
apiframe_music_generate
Generate music
apiframe_suno_action
Suno action
apiframe_udio_action
Udio action
apiframe_udio_audio_upload
Upload udio audio
apiframe_udio_lyrics_write
Write udio lyrics
apiframe_video_edit
Video edit
apiframe_video_generate
Generate video
apiframe_video_upscale
Video upscale
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Apiframe tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apiframe"], toolNames: [
    "apiframe_models_list",
    "apiframe_image_generate",
    "apiframe_job_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List the image models, start a Flux image of a ceramic mug on a wooden table, and check the job status" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apiframe"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List the image models, start a Flux image of a ceramic mug on a wooden table, and check the job status" }],
  tools,
});

// Execute the tool call with the user's vaulted Apiframe API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apiframe"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List the image models, start a Flux image of a ceramic mug on a wooden table, and check the job status" }],
  tools,
});

// Tool call runs with the user's vaulted Apiframe API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["apiframe"] }, pageSize: 100,
});

const agent = new Agent({
  name: "media_generation_agent",
  model: "gemini-2.5-pro",
  instruction: "Apiframe tools scoped to this user",
  tools,
});

await agent.run("List the image models, start a Flux image of a ceramic mug on a wooden table, and check the job status");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Apiframe tool. Click to copy, paste into your agent, done.
Images
Copy the prompt
Copied
Generate an image of a ceramic mug on a wooden table with Flux.
Copy the prompt
Copied
Remove the background from this product photo.
Copy the prompt
Copied
Upscale this photo with Topaz.
Video and music
Copy the prompt
Copied
Generate a 5-second video of waves on a beach with Kling.
Copy the prompt
Copied
Generate an upbeat instrumental track with Suno.
Copy the prompt
Copied
Extend this Suno track.
Jobs and account
Copy the prompt
Copied
What is the status of my latest generation job?
Copy the prompt
Copied
List the models Apiframe offers for video.
Copy the prompt
Copied
Show my team's credit balance and plan.
SEE HOW AUTH WORKS
Each user connects their own Apiframe API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Apiframe
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Apiframe
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Apiframe
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Apiframe
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI and media connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other AI and media connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Apiframe API key looks fine in a demo. In production every image, video, and music generation job looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Apiframe today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Apiframe as the user or through a shared key?
As the user. Each user connects their own Apiframe API key once, and Scalekit sends it with every call. Audit logs attribute every generation job and upload to that user, not a shared service account.
Where is the Apiframe API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Apiframe?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the model, job, and asset read tools without apiframe_lora_delete, which archives a LoRA so it can no longer be used, or the generate tools that spend credits. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Apiframe access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent get the result of a generation in Apiframe?
The generation tools return a job id. apiframe_job_get reports the job's status, progress, and result, with statuses QUEUED, PROCESSING, COMPLETED, FAILED, or CANCELLED, so the agent polls it until the job completes.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""apiframe"": {
""url"": ""https://mcp.scalekit.com/apiframe"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.apiframe]
url = ""https://mcp.scalekit.com/apiframe""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""apiframe"": {
""url"": ""https://mcp.scalekit.com/apiframe"",
""type"": ""http""
}
}
}