openai/gpt-image-2.5-flare
replicate.image-gen.gpt-image-2-5-flareGenerate or edit images with GPT Image 2.5 Flare through Replicate's official model, priced per image by quality.
- 价格
- $2.001/success按目录价
- 成功率
- 100%近 30 天 · 713 次
- 延迟 p50
- 198 毫秒p95 788 毫秒
- 最后验证
- 2026年9月14日实测可用
POSThttps://toolswitch.dev/v1/tools/replicate.image-gen.gpt-image-2-5-flareBeta- 可用平台额度调用
- 异步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
input | 对象 | 必填 | {"prompt":"A clean editorial illustration of a paper airplane.","quality":"low","aspect_ratio":"1:1","output_format":"we | |
- 请求体(JSON)
input对象必填示例:
{"prompt":"A clean editorial illustration of a paper airplane.","quality":"low","aspect_ratio":"1:1","output_format":"we
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/replicate.image-gen.gpt-image-2-5-flare' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"input":{"prompt":"A clean editorial illustration of a paper airplane.","quality":"low","aspect_ratio":"1:1","output_format":"webp","number_of_images":1}}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/replicate.image-gen.gpt-image-2-5-flare",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"input\":{\"prompt\":\"A clean editorial illustration of a paper airplane.\",\"quality\":\"low\",\"aspect_ratio\":\"1:1\",\"output_format\":\"webp\",\"number_of_images\":1}}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/replicate.image-gen.gpt-image-2-5-flare", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"input\":{\"prompt\":\"A clean editorial illustration of a paper airplane.\",\"quality\":\"low\",\"aspect_ratio\":\"1:1\",\"output_format\":\"webp\",\"number_of_images\":1}}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 $2.001/success 计费,已含服务费。