{ "model": "gpt-image-1", "prompt": "未来科技城市", "size": "1024x1024", "quality": "high", "n": 1 }
curl --location '/v1/images/generations' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-image-1", "prompt": "未来科技城市", "size": "1024x1024", "quality": "high", "n": 1 }'
{ "created": 1713833628, "data": [ { "url": "https://cdn.example.com/img-001.png" } ], "usage": { "total_tokens": 100, "input_tokens": 50, "output_tokens": 50, "input_tokens_details": { "text_tokens": 10, "image_tokens": 40 } } }