Initial project import

This commit is contained in:
XM
2026-09-18 03:46:58 +08:00
commit b600da4b76
209 changed files with 45904 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from test.utils import post_json
def main() -> None:
result = post_json(
"/v1/images/generations",
{
"prompt": "一只橘猫坐在窗边,午后阳光,写实摄影",
"model": "gpt-image-2",
"n": 1,
"response_format": "url",
},
)
for item in result.get("data", []):
print(item.get("url", ""))
if __name__ == "__main__":
main()