API Overview

FastMetal provides an OpenAI-compatible API and Anthropic-compatible API for all models we support. Use your existing tools and libraries with minimal configuration changes.

Authentication

All API requests require authentication using an API key. Include your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Base URLs

Make requests to the appropriate base URL for your chosen API format:

https://api.fastmetal.ai/v1

Supported Endpoints

OpenAI Compatible

/models — List available models /chat/completions — Chat-based completions with conversation history /completions — Traditional text completions /embeddings — Transform text into vector embeddings

Anthropic Compatible

/messages — Send and receive messages /messages/count_tokens — Count tokens in messages

Platform

/quotas — Check your usage quota and balance /search — Search the web (if enabled)

Rate Limits

Rate limits are determined by your account's budget. Requests are rejected when your spend exceeds your available balance. Monitor your usage on the dashboard to avoid interruptions.

Error Handling

The API returns standard HTTP status codes. Common errors include:

401Invalid or missing API key
400Budget exceeded or invalid request
429Rate limit exceeded
500Internal server error