工作台
AI创作
AI应用
模板中心
模型广场
API服务
帮助中心
登录
gpt-image-2
gpt-image-2

gpt-image-2

OpenAI gpt-image-2 图像生成模型
按次计费
图片生成
API价格
模型价格 ¥0.500000 / 次
API代码示例
语言:
请求标签:
import requests
import json

url = "https://api.qikuaiai.com/v1/model"

payload = json.dumps({
   "type": 1,
   "model": "gpt-image-2",
   "prompt": "masterpiece, best quality, ultra detailed, anime style, young cute girl, soft lighting, smooth skin, big expressive eyes,long hair, delicate face, small nose, gentle smile,dynamic pose, looking at viewer",
   "size": "1024x1024",
   "n": 1,
   "response_format": "b64_json"
})
headers = {
   'Authorization': 'Bearer <token>',
   'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
在线咨询

联系我们

微信扫码