FlowBarCN API 文档

FlowBarCN 提供 OpenAI 兼容的对话、向量与图像接口,并提供统一的视频任务接口。使用控制台创建的 API Key,即可接入 DeepSeek、通义千问、GLM、Kimi、MiniMax、Seedream、Wan、HappyHorse 与 Cdance 等模型。

基础配置

Base URL: https://flowbar.cn/v1
Authorization: Bearer your-flowbar-api-key

对话:/v1/chat/completions;向量:/v1/embeddings;图像:/v1/images/generations;视频提交:/v1/video/generations;视频查询:/v1/video/generations/{task_id}

Python 示例

from openai import OpenAI
client = OpenAI(
    base_url="https://flowbar.cn/v1",
    api_key="your-flowbar-api-key"
)
resp = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role":"user","content":"你好"}]
)
print(resp.choices[0].message.content)

JavaScript 示例

import OpenAI from "openai";
const client = new OpenAI({
  baseURL: "https://flowbar.cn/v1",
  apiKey: "your-flowbar-api-key"
});
const resp = await client.chat.completions.create({
  model: "deepseek-chat",
  messages: [{ role: "user", content: "你好" }]
});
console.log(resp.choices[0].message.content);

cURL 示例

curl https://flowbar.cn/v1/chat/completions \
  -H "Authorization: Bearer your-flowbar-api-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-chat","messages":[{"role":"user","content":"你好"}]}'

常用模型速查

对话与推理:deepseek-v4-flash-0731-new、deepseek-v4-pro-0813、qwen3.8-max、glm-5.3、kimi-k3、minimax-m3;向量:text-embedding-v4;图像:Doubao-seedream-5.0-lite;视频:wan3.0-video、cdance2.0-mini-0807。完整名称和价格以模型广场、定价页为准。