Skip to main content
Every Forii request requires a Bearer token in the Authorization header.

Quick setup

export FORII_API_KEY="forii_sk_..."
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.forii.in/inference/v1",
    api_key=os.environ["FORII_API_KEY"],
)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.FORII_API_KEY,
  baseURL: "https://api.forii.in/inference/v1",
});
curl https://api.forii.in/inference/v1/chat/completions \
  -H "Authorization: Bearer $FORII_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "forii/deepseek-v3", "messages": [...]}'
For full details on key creation, scopes, and management, see Authentication.