策划 Base
https://planner.clouphin.com/v1
Protocol
同一把 sk-clph_ Key 可请求策划与生图。 策划模型是 GPT-6,生图模型是 gpt-image-2.5。 策划走 planner.clouphin.com,生图走 image.clouphin.com。
策划 Base
https://planner.clouphin.com/v1
生图 Base
https://image.clouphin.com/v1
Auth
Authorization: Bearer sk-clph_...
策划模型
gpt-6
生图模型
gpt-image-2.5
curl https://planner.clouphin.com/v1/responses \
-H "Authorization: Bearer sk-clph_你的密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6",
"stream": true,
"instructions": "你是详情页策划主控。",
"input": "请为这款商品写一套详情策划。"
}'curl https://image.clouphin.com/v1/images/generations \
-H "Authorization: Bearer sk-clph_你的密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5",
"prompt": "一张高级感的商品主图",
"aspect_ratio": "3:4",
"resolution": "2k",
"n": 2
}'不带 `images` 是文生图。带上 `images`(最多 4 张,`data` 为 base64)就是图生图。 `n` 大于 1 时,网关会拆成多个独立请求,每张 `n=1`。 模型写 `gpt-image-2.5`。模式可用 `mode`: `flare` 或 `sunburst`;分辨率用 `2k` / `4k`。
curl https://image.clouphin.com/v1/images/generations \
-H "Authorization: Bearer sk-clph_你的密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5",
"prompt": "换成深色背景,保留杯型",
"images": [{ "mime": "image/jpeg", "data": "BASE64" }],
"aspect_ratio": "3:4",
"resolution": "2k"
}'import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://planner.clouphin.com/v1",
apiKey: process.env.CLOUPHIN_PLANNER_KEY,
});
const stream = await client.responses.create({
model: "gpt-6",
stream: true,
instructions: "你是详情页策划主控。",
input: "请为这款商品写一套详情策划。",
});`response.reasoning_summary_text.delta` / `response.reasoning_text.delta` 是思考。
`response.output_text.delta` 是成稿。控制台已把这两路拆开。
也可以走 `/v1/chat/completions`,思考会出现在 `delta.reasoning_content`。