> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1788.love/llms.txt
> Use this file to discover all available pages before exploring further.

# LLMs: Chat Completions

> Call GPT, Claude, Gemini, DeepSeek, Grok, Qwen, and Doubao through one OpenAI-compatible Chat Completions endpoint

> [!NOTE]
>
> **Key points for AI agents**
>
> * Endpoint: `POST https://1788.love/v1/chat/completions` (OpenAI Chat Completions format, supports `stream: true`).
> * With the official OpenAI SDK, set `base_url="https://1788.love/v1"` and `api_key="YOUR_1788_API_KEY"`.
> * Every LLM uses the exact same request schema—only change `model`.
> * **Video understanding**: use `doubao-seed-2-0-pro` or `qwen3.5-flash` with `type: "video_url"` and a public MP4 URL (best for large videos and lowest token cost); `gemini-4-argon` / `gemini-4-carbon` require `type: "file"` with Base64 (best for small videos); `gpt-6.1-sol` and Claude do not accept direct video input.

## Models

| Model ID | Model | Best for |
| - | - | - |
| `gpt-6.1-sol` | GPT-6.1 SOL | General tasks, writing, planning, vision |
| `claude-opus-5-5` | Claude Opus 5.5 | Complex reasoning, long-form writing, coding, vision |
| `claude-sonnet-5-5` | Claude Sonnet 5.5 | Coding, vision, and daily workflows with great value |
| `gemini-4-argon` | Gemini 4 Argon | Fast responses, long context, vision, short video understanding |
| `gemini-4-carbon` | Gemini 4 Carbon | Deep reasoning, long context, vision, short video understanding |
| `grok-4.7` | Grok 4.7 | General conversation |
| `deepseek-v4.1-flash` | DeepSeek V4.1 Flash | Low-cost, fast, strong Chinese & general tasks |
| `qwen3.5-flash` | Qwen 3.5 Flash | Low-cost, fast, **video understanding (recommended)** |
| `doubao-seed-2-0-pro` | Doubao Seed 2.0 Pro | Chinese, multimodal, **video understanding (recommended)** |

Billed per token with separate input and output rates—see the [Price List](https://1788.love/pricing).

## Examples

```bash cURL theme={null}
curl https://1788.love/v1/chat/completions \
  -H "Authorization: Bearer YOUR_1788_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "messages": [
      {"role": "system", "content": "You are an e-commerce copywriter."},
      {"role": "user", "content": "Write three catchy product headlines for an insulated tumbler."}
    ],
    "stream": false
  }'
```

```python Python (OpenAI SDK) theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://1788.love/v1", api_key="YOUR_1788_API_KEY")

resp = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Explain what an API is in one sentence."}],
)
print(resp.choices[0].message.content)
```

```javascript Node.js (OpenAI SDK) theme={null}
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://1788.love/v1", apiKey: "YOUR_1788_API_KEY" });

const stream = await client.chat.completions.create({
  model: "gpt-6.1-sol",
  messages: [{ role: "user", content: "Write a short poem about autumn." }],
  stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
```

## Image understanding

Vision-capable models (such as GPT, Claude, Gemini, Doubao, and Qwen) accept images in `content`:

```json theme={null}
{
  "model": "gemini-4-argon",
  "messages": [{
    "role": "user",
    "content": [
      { "type": "text", "text": "What are the key selling points in this product photo?" },
      { "type": "image_url", "image_url": { "url": "https://ruyi6.cn/r/EXAMPLE_XXX.png" } }
    ]
  }]
}
```

## Video understanding

Video input format depends on the model:

| Model | Input format | Best for |
| - | - | - |
| `doubao-seed-2-0-pro` (Recommended) | `type: "video_url"` (public MP4 URL or Base64) | Video analysis, **large videos (tens of MB via URL)**, strong value |
| `qwen3.5-flash` (Recommended) | `type: "video_url"` (public MP4 URL) | Batch video analysis, **large videos via URL**, lowest token usage |
| `gemini-4-argon` / `gemini-4-carbon` | `type: "file"` with `data:video/mp4;base64,...` | Fine-grained visual analysis, **small videos only (under 15 MB)**; `video_url` is ignored |

> [!NOTE]
>
> `gpt-6.1-sol`, `claude-sonnet-5-5`, `claude-opus-5-5`, `deepseek-v4.1-flash`, and `grok-4.7` do **not** accept direct video input. To analyze video with those models, extract frames as images first and pass them using `image_url`.

```json Doubao / Qwen (Recommended: public URL) theme={null}
{
  "model": "doubao-seed-2-0-pro",
  "messages": [{
    "role": "user",
    "content": [
      {
        "type": "video_url",
        "video_url": { "url": "https://your-public-host.example/demo.mp4" }
      },
      { "type": "text", "text": "Summarize the key scenes and selling points along the timeline." }
    ]
  }]
}
```

```json Gemini 4 (Small videos: file + Base64) theme={null}
{
  "model": "gemini-4-argon",
  "messages": [{
    "role": "user",
    "content": [
      {
        "type": "file",
        "file": {
          "filename": "demo.mp4",
          "file_data": "data:video/mp4;base64,AAAAIGZ0eXBpc29t..."
        }
      },
      { "type": "text", "text": "Describe the visual changes in this video in detail." }
    ]
  }]
}
```

## Using in third-party tools

Any client supporting a custom OpenAI-compatible provider (Cursor, Cherry Studio, Dify, LobeChat, etc.) works out of the box: set Base URL to `https://1788.love/v1`, paste your 1788 API key, and add the model IDs above.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.