Skip to content
View as Markdown

Models

Lists the models your key can use, in the OpenAI model list format. Apps with a model picker call it to fill their list.

GEThttps://api.freetheai.org/v1/models

Request ​

bash
curl https://api.freetheai.org/v1/models \
  -H "Authorization: Bearer $FTAI_KEY"
python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.freetheai.org/v1", api_key=os.environ["FTAI_KEY"])

for model in client.models.list():
    print(model.id)
ts
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://api.freetheai.org/v1', apiKey: process.env.FTAI_KEY })

for await (const model of client.models.list()) {
  console.log(model.id)
}

No parameters. The list depends on your key: a key with Allowed models lists only those models, and a key with Tool-capable models only lists only models that can make tool calls (key settings).

Response ​

json
{
  "object": "list",
  "data": [
    { "id": "fta/zai/glm-5.3", "object": "model", "created": 1790000000, "owned_by": "..." },
    { "id": "fta/kimi/k3", "object": "model", "created": 1790000000, "owned_by": "..." }
  ]
}
FieldTypeDescription
objectstringAlways list.
data[].idstringThe model ID to send as model.
data[].objectstringAlways model.
data[].createdintegerUnix timestamp.
data[].owned_bystringThe catalog name the model is listed under. Not needed to make requests.

Context sizes, output limits, image support, and supported endpoints are on each model's page at freetheai.org/models.

Errors ​

StatusMeaning
401Missing or invalid API key.

FreeTheAI documentation. Paid models and plans are coming soon; the free tier has daily limits.