为什么选它
- 请先申请开通,再发送生产流量。
- 价格会在该模型对你的账号可用时展示。
图像生成模型
gpt-image-2-4k
GPT Image 2 4K 可申请开通。请联系销售或在工作区提交访问申请。
参数规模
N/A
上下文
N/A
最大输出
N/A
许可证
Vendor Commercial License
接口
/v1/images
接入状态
待开通
为什么选它
价格与对比
from openai import OpenAI
client = OpenAI(
base_url="https://api.batchin.tech/v1",
api_key="BATCHIN_API_KEY"
)
resp = client.images.generate(
model="gpt-image-2-4k",
prompt="A cinematic skyline at sunrise"
)
print(resp.data[0].url)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.batchin.tech/v1",
apiKey: process.env.BATCHIN_API_KEY,
});
const resp = await client.images.generate({
model: "gpt-image-2-4k",
prompt: "A cinematic skyline at sunrise",
});
console.log(resp.data[0]?.url);curl https://api.batchin.tech/v1/images \ -H "Authorization: Bearer ***" \ -H "Content-Type: application/json" \ -d '{
"model": "gpt-image-2-4k",
"prompt": "A cinematic skyline at sunrise"
}'规格与行为
架构
MoE Transformer
模型类型
图像生成模型
上下文
N/A
最大输出
N/A
适用场景
相关模型
返回模型中心