A guide for furniture-comp — connecting to our hosted LLM and image generation models. furniture-comp 使用指南 — 接入我们托管的大语言模型与图像生成模型。
A large general-purpose chat model, OpenAI-compatible, 262K token context window. 通用大语言对话模型,兼容 OpenAI 接口协议,支持 26.2 万 token 的上下文窗口。
Text-to-image, OpenAI-compatible /v1/images/generations, strong text rendering
including Chinese.
文生图模型,兼容 OpenAI 的 /v1/images/generations 接口,文字渲染效果出色,
包括中文文字。
You can use these two ways: through our hosted web chat (no code, images appear inline in the conversation), or by calling the APIs directly from your own code. 您可以通过两种方式使用:通过我们托管的网页聊天界面(无需编写代码,图像会直接显示在对话中), 或直接在您自己的代码中调用 API。
The easiest way to try both models together — ask for an image in a normal chat and it generates and shows up inline. 最简单的体验方式 — 在正常对话中直接要求生成图像,图像会自动生成并显示在对话中。
URL:网址: https://chat.tfd-runai.com/
Login:登录: a shared account has been created for your team. Credentials are sent to you separately by your contact — not published on this page. 我们已为您的团队创建了一个共享账号,登录凭证将由您的对接人另行发送 — 不会公开在本页面上。
Model:模型:
select nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4
from the model picker at the top of the chat. It can generate images directly in the conversation —
just ask, e.g. "Generate an image of a mid-century modern armchair with tapered wooden legs and a
teal upholstered seat, on a plain white studio background."
在聊天界面顶部的模型选择器中选择 nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4。
它可以直接在对话中生成图像 — 只需提出请求即可,例如:"帮我生成一张图片:中世纪现代风格扶手椅,
木质锥形椅腿,青蓝色软包座椅,纯白影棚背景。"
Both endpoints speak the OpenAI API shape your existing client code already knows — integration is normally a base URL + auth header change. 两个接口均采用与 OpenAI API 相同的调用格式,与您现有的客户端代码兼容 — 通常只需更改 base URL 和认证请求头即可完成对接。
Every API request needs two headers, from a Cloudflare Access Service Token issued to your team — request it from your contact rather than reusing another team's token. 每次 API 请求都需要携带两个请求头,其值来自 Cloudflare Access 为您的团队签发的 Service Token — 请向您的对接人申请专属令牌,不要复用其他团队的令牌。
CF-Access-Client-Id: <your-client-id>
CF-Access-Client-Secret: <your-client-secret>
Keep the secret out of shell history and process args — don't pass it as a curl -H command-line
argument on a shared machine. Use a curl --config file created with umask 077,
or your app's environment/secrets manager.
请勿将密钥暴露在 shell 历史记录或进程参数中 — 在共享机器上不要以 curl -H
命令行参数的形式传递密钥。建议使用 umask 077 创建的 curl --config 配置文件,
或使用您应用的环境变量 / 密钥管理服务。
Your team's Service Token is provisioned — this endpoint is ready to use. 您团队专属的 Service Token 已开通 — 该接口现已可用。
Base URL:基础地址: https://nemotron3-ultra.tfd-runai.com/v1
Model:模型: nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4
from openai import OpenAI
client = OpenAI(
base_url="https://nemotron3-ultra.tfd-runai.com/v1",
api_key="unused", # auth is via the CF-Access-* headers below, not a bearer key
default_headers={
"CF-Access-Client-Id": "<your-client-id>",
"CF-Access-Client-Secret": "<your-client-secret>",
},
)
result = client.chat.completions.create(
model="nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4",
messages=[{"role": "user", "content": "Describe a mid-century modern armchair in one paragraph."}],
)
print(result.choices[0].message.content)
Your team's Service Token is provisioned — this endpoint is ready to use. 您团队专属的 Service Token 已开通 — 该接口现已可用。
Base URL:基础地址: https://qwen-image.tfd-runai.com
Model:模型: Qwen/Qwen-Image
Request fields请求参数 — POST /v1/images/generations
| Field字段 | Type类型 | Notes说明 |
|---|---|---|
prompt | string | Required. Text description of the desired image.必填。所需图像的文字描述。 |
n | integer | Number of images, 1–10. Default 1.生成图像数量,1–10,默认为 1。 |
size | string | "WIDTHxHEIGHT", e.g. "1024x1024". Omit for model default.
"宽度x高度" 格式,如 "1024x1024",留空则使用模型默认值。 |
response_format | string | Only "b64_json" or "file" — "url" is not supported. Default "b64_json".
仅支持 "b64_json" 或 "file" — 不支持 "url"。默认值为 "b64_json"。 |
negative_prompt | string | Optional — things to avoid in the image.可选 — 指定图像中应避免出现的内容。 |
curl -s https://qwen-image.tfd-runai.com/v1/images/generations \
--config ~/.cf-access-furniture-comp.curl \
-H 'Content-Type: application/json' \
-d '{
"prompt": "A minimalist wooden dining chair, natural oak finish, plain white studio background",
"size": "1024x1024",
"n": 1
}' | jq -r '.data[0].b64_json' | base64 -d > chair.png
curl -s https://qwen-image.tfd-runai.com/v1/images/generations \
--config ~/.cf-access-furniture-comp.curl \
-H 'Content-Type: application/json' \
-d '{
"prompt": "极简风格木质餐椅,天然橡木色,纯白影棚背景",
"size": "1024x1024",
"n": 1
}' | jq -r '.data[0].b64_json' | base64 -d > chair.png
response_format: "url" is not implemented on the image endpoint — always use b64_json or file.
图像接口未实现 response_format: "url" — 请始终使用 b64_json 或 file。
CF-Access-* headers get intercepted by Cloudflare Access (a redirect/403), not a model-side error.
缺少两个 CF-Access-* 请求头的请求会被 Cloudflare Access 拦截(返回重定向或 403),而非模型端报错。