Using the API
Chat completions
Send a brief as a user message and get an article back, using the OpenAI chat format.
POST /v1/chat/completions is the main endpoint and the one the OpenAI SDKs call by default. It accepts the OpenAI Chat Completions request format and returns a chat.completion object.
Messages
Inkwell turns a brief into an article, so the roles mean something slightly different from a chat model.
Response
200 OK
finish_reason is stop when the article ended naturally and length when it hit max_tokens. If you see length, raise the limit.
Sampling parameters
See the API reference for every field.