Gpt-image-2

GPT Image 2 是 OpenAI 最先进的图像生成模型,可快速生成和编辑高质量图像。它支持灵活的图像尺寸和高保真图像输入。

Capabilities
"POST", "endpoint": "/v1/chat/completions", "protocol": "openai-chat", "validation": {"timeout_ms": 90000, "status_codes": [200], "response_path": "choices[0].message.content", "must_be_non_empty": true}, "test_request": {"model": "openai/gpt-image-2", "messages": [{"role": "user", "content": "Generate a simple red circle on a white background."}], "max_tokens": 300}}
Input
text
Output
image
Regions
global
Last verified
2026-08-15T04:50:43.134192487+00:00
Price
0 IFT / 1M tokens
Documentation
-

Example

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"}]}'