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
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g. deepseek-chat, deepseek-reasoner). |
| messages | array | Yes | Array of message objects with role and content. |
| stream | boolean | Optional | Whether to stream partial message deltas via Server-Sent Events. Default false. |
| temperature | number | Optional | Sampling 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
}'