Gpt-image-2

GPT Image 2 on the new Deeprouter endpoint

能力
"POST", "endpoint": "/v1/chat/completions", "protocol": "openai-chat", "parameters": {"optional": {"n": {"type": "integer", "default": 1}, "size": {"type": "string", "default": "1024x1024"}, "stream": {"type": "boolean", "default": true}, "quality": {"type": "string", "default": "auto"}, "background": {"type": "string", "default": "auto"}}, "required": ["model", "messages"]}, "validation": {"timeout_ms": 600000, "status_codes": [200], "response_path": "choices[0].message.content", "must_be_non_empty": true}, "test_request": {"size": "1024x1024", "model": "{{model}}", "stream": true, "quality": "auto", "messages": [{"role": "user", "content": "Generate a simple red circle on a white background."}]}}
输入
text
输出
image
区域
global
验证时间
2026-10-15T05:17:32.195507802+00:00
价格
0 IFT / 1M tokens
文档
-

调用示例

curl https://api.inferlink.ai/v1/chat/completions \
  -H 'Authorization: Bearer $INFERLINK_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"openai/openai/gpt-image-2","messages":[{"role":"user","content":"Hello"}]}'