POST/v1/assistants

Assistants

Long-lived agents with tools, instructions, and a model. Drop-in compatible with the OpenAI Assistants shim.

Request
HTTP
POST
URL
/v1/assistants
Auth
api_key
Try it
curl https://api.fightclub.pro/v1/assistants \
  -H "Authorization: Bearer $FC_API_KEY" \
  -d '{"name":"Code Reviewer","model":"fc:openai/gpt-4o-mini","instructions":"Review pull requests."}'

Parameters

NameTypeDescription
name*stringAssistant name.
model*stringModel alias.
instructionsstringSystem prompt.
toolsarrayfunction / code_interpreter / file_search.

Response fields

NameTypeDescription
idstringAssistant ID (asst_*).
created_atintegerUnix timestamp.

Errors

  • 401invalid_api_key, Missing or revoked key.

See the full error reference.

Examples