fobignDocs
POST/v1/chat/completions

Chat Completions

Creates a model completion for the provided chat conversation. Fully compatible with OpenAI client libraries with Server-Sent Events (SSE) token streaming.

Request Parameters

ParameterTypeRequiredDescription
modelstringYesModel identifier (e.g. deepseek-chat, deepseek-reasoner).
messagesarrayYesArray of message objects with role and content.
streambooleanOptionalWhether to stream partial message deltas via Server-Sent Events. Default false.
temperaturenumberOptionalSampling temperature between 0 and 2. Default 1.0.

cURL Example

curl -X POST https://api.fobign.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-fobign-72b8d04a6e92f15c3e7a1b8d2c4e9f0a5b6c7d8e9f0a1b2c" \ -d '{ "model": "deepseek-reasoner", "messages": [ {"role": "user", "content": "How many letters in the word strawberry?"} ], "stream": false }'