FreeAIModel
Operational

API Keys

Kelola kunci akses API untuk integrasi aplikasi dan coding agent. Maksimal 10 kunci aktif.

Quick Start

Never expose your API key in client-side code or public repositories.
# Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="/api/v1",
    api_key="fai-your-api-key-here",
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}],
)

# cURL
curl -X POST /api/v1/chat/completions \
  -H "Authorization: Bearer fai-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello!"}]}'