Getting Started
Get up and running with the FastMetal API in minutes. This guide walks you through authentication, client setup, and making your first API call.
1. Get Your API Key
Sign in to your dashboard and generate an API key. Keep this key secure — it won't be shown again.
Sign Up2. Install a Client Library
FastMetal is compatible with OpenAI client libraries. Install one for your language:
3. Configure the Client
Point your client to the FastMetal API endpoint:
4. Make Your First Request
Send a chat completion request to test your setup:
Example Request
curl -X POST https://api.fastmetal.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [{"role": "user", "content": "Hello!"}]
}'Example Response
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1677858242,
"model": "YOUR_MODEL",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 12,
"total_tokens": 22
}
}