Generate and edit images
Generate an image from text with /images/generations, and edit your own image with /images/edits (multipart).
AI gateway (API and MCP)
FastMetal's AI gateway serves every supported model through both an OpenAI-compatible API and an Anthropic-compatible API. Existing code works after you change base_url and the API key. Image and video generation use the same API key, through the API and the MCP server.

An AI gateway calls AI models from many providers through one endpoint and one API key. With FastMetal, LLMs from many vendors and image and video generation models work under one account, one API key and one prepaid balance.
The API key reaches 112+ AI models (as of November 28, 2026). Including models available only in Chat, one account reaches 129+ models.
base_url and the API keyIn both the OpenAI-compatible and the Anthropic-compatible format, swap the endpoint and the API key and your existing code keeps working. To switch models, change model in the request.
- base_url = "https://api.openai.com/v1"
+ base_url = "https://api.fastmetal.ai/v1"import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.fastmetal.ai/v1",
api_key=os.environ["FASTMETAL_API_KEY"],
)
res = client.chat.completions.create(
model="gpt-5-mini",
messages=[{"role": "user", "content": "Summarize the key points of this invoice in three lines."}],
)
print(res.choices[0].message.content)curl https://api.fastmetal.ai/v1/messages \
-H "Authorization: Bearer $FASTMETAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic-claude-sonnet-5-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Explain what caused this error log."}]
Besides text generation, image generation, video generation and structured decisions use the same API key and prepaid balance.
Generate an image from text with /images/generations, and edit your own image with /images/edits (multipart).
Start a generation job with /videos/create or /videos/{skuKey}/create, check progress at /videos/jobs/{id}, and download the finished video from /videos/jobs/{id}/content.
Send a request to /decisions/{skuKey} and a structured decision model returns a choice, a probability or a score for each question. Results such as a customer inquiry's category or urgency go straight into your program.
Upload an image once with POST /v1/media and refer to it by ID in later requests. Fetching, sharing settings and deletion also work by ID.
/key/info returns an API key's budget, usage and balance.
/models returns the list of models the API key can use.
One line adds FastMetal's MCP server to Claude Code. Codex and Cursor use the same API key. Usage is drawn from the same prepaid balance as the API.
claude mcp add --transport http fastmetal https://mcp.fastmetal.ai/mcp --header "Authorization: Bearer ${FASTMETAL_API_KEY}"The main tools are ask (ask a question), compare (compare several models), generate_image (generate an image), generate_video (generate a video), analyze_image (analyze an image) and list_models (list models).
Sign up to create an account and issue an API key.
Add prepaid credit by card. Accounts billed in yen can also pay by bank transfer: you get a dedicated transfer account and a qualified invoice, and the balance updates automatically after payment.
base_urlIn your existing code, change base_url to https://api.fastmetal.ai/v1 for the OpenAI SDK, or to https://api.fastmetal.ai for the Anthropic SDK, and replace the API key with your FastMetal key. Name a model and send the request.
Accounts on the English site are billed in US dollars by default. A yen account is also possible: you choose the currency at registration and cannot switch it later. Text models are billed per token, images per image and videos per video, and each model's rate is published on the pricing page.
When usage reaches your balance, FastMetal rejects further requests with a 429 (budget_exceeded) error. A bill above your balance cannot happen.
FastMetal's principle is "Your data, your choice." FastMetal never uses your data to train models. Requests are relayed to each model's provider, and that provider's policy applies. Each model's page shows how it handles training and retention.
Models whose id starts with japan- run inference in Japan. On November 5, 2026 we began offering japan-deepseek-v4.1-flash-1017, which runs on Fixstars Corporation (TSE Prime 3687) GPU servers in Japan, and input data is processed only on those servers. FastMetal's own servers are all in Japan too.
japan- run inference in Japan
FastMetal is prepaid: usage is drawn from the credit you buy, and the balance is the ceiling, so a bill above it cannot happen. One API key and one balance replace a separate contract with each AI vendor. Card payment works for both currencies. Accounts billed in yen can also pay by bank transfer to a dedicated account, and every purchase gets a qualified invoice (registration number T5010001015990). FastMetal is operated by PSI-Japan (株式会社国際調達情報), founded in 1981 and based in Chiyoda, Tokyo.
Legal notice (Specified Commercial Transactions Act, in Japanese)Every supported model is served through both an OpenAI-compatible API and an Anthropic-compatible API. Point the OpenAI SDK, clients that call the Anthropic-compatible /v1/messages, or tools that use /v1/responses, such as Codex, at the new endpoint. The MCP server works with Claude Code, Codex and Cursor.
Change base_url to https://api.fastmetal.ai/v1 for the OpenAI SDK, or to https://api.fastmetal.ai (without /v1) for the Anthropic SDK, and replace the API key with your FastMetal key. Use a model id from FastMetal's model list. Streaming, tool calling and structured output work as they are on the models that support them.
Text models are billed per token, images per image and videos per video. Accounts on the English site are billed in US dollars by default, and a yen account is also possible. Each model's rate is on the pricing page.
Your prepaid balance is the ceiling. When usage reaches your balance, FastMetal rejects further requests with a 429 (budget_exceeded) error, so a bill above your balance cannot happen. Check budget, usage and balance at /key/info.
FastMetal never uses your data to train models. Requests are relayed to each model's provider, and that provider's policy applies. Each model's page shows how it handles training and retention, so you can pick a model that fits your conditions. To run inference in Japan, choose a model whose id starts with japan-.
Streaming, tool calling and structured output work as they are on the models that support them. The model list shows what each model supports. Tools that use /v1/responses, such as Codex, work against the same endpoint.