API Stock
Generate AI video, images and music. Browse models and prices; OAuth and one prepaid balance.
Is this yours? Claim it freeA few minutes with a DNS record or a file. Then edit it, get uptime emails, a README badge and paid calls.
Add to your AI
Remote MCP server (streamable HTTP). Most clients sign you in with the provider on first use.
Claude Code
claude mcp add --transport http api-stock https://api.api-stock.com/mcp
Claude Desktop, Cursor, Windsurf (mcp config)
{
"mcpServers": {
"api-stock": {
"url": "https://api.api-stock.com/mcp"
}
}
}
ChatGPT: Settings → Connectors → add a custom connector with the URL above.
How to call API Stock from code (MCP)
Remote MCP over streamable HTTP with the official SDKs: initialize, list its tools, then call_tool / callTool.
Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://api.api-stock.com/mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
asyncio.run(main())TypeScript
// npm i @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://api.api-stock.com/mcp")));
console.log((await client.listTools()).tools.map((t) => t.name));Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "api-stock" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="api-stock")Track record
- Uptime
- 100% uptime over the last 27 checked days (one unpaid request a day)
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Tools (8)
- List models
list_modelsList the video, image and music models available, with the starting price of each. Call this first to pick a model. - Get model details
get_modelThe full parameter list, price table and an example request for one model. Call this before create_generation: parameters differ between models. - Estimate cost
estimate_costThe exact amount create_generation would charge for this request. Nothing is created or charged. - Create generation
create_generationStart a generation. Charges the user's balance and returns a taskId at once; the result arrives later — poll get_task. A failed generation is refunded. - Create input upload URL
create_upload_urlGet a signed URL to PUT one local image, video or audio file (up to 25 MiB). Upload is free, but requires a positive balance. After PUT succeeds, use publicUrl as a generation input. The upload URL expires in 10 minutes; at most 20 URLs pe… - Get task status
get_taskStatus of a generation and, once finished, the URLs of its files. Pass waitSeconds to wait for it to finish instead of polling in a loop. - List recent generations
list_generationsThe user's generations, newest first. - Get account balance
get_accountThe prepaid balance generations are charged from, and where to top it up.
Automated check: 80/100
Last run 2026-11-27 05:07 UTC. What we measured, not a guarantee.
- 10/10Every URL is https.
- 40/40MCP initialize answered (API Stock 1.1.0).
- 15/158 tools listed by tools/list.
- 0/10No MCP server card at /.well-known/mcp/server-card.json.
- 10/10Has a homepage or documentation link.
- 5/5Answered in 165 ms.
- 0/10Not claimed with a domain proof yet.