gpt-image-1
dall-e-3
dall-e-2
ohmygpt_webhook_url
:公网可以访问的API接口,在Image相关请求成功或失败时会向此URL发送一次Post请求{
success: true,
status: 'succeed',
message: null,
code: 200,
data: resdata,
}
success
:是否成功data
:响应数据Authorization: Bearer ********************
curl --location --request POST 'https://cn2us02.opapi.win/v1/images/generations' \
--data-urlencode 'prompt=A cute anime girl' \
--data-urlencode 'model=dall-e-3' \
--data-urlencode 'n=1' \
--data-urlencode 'quality=hd' \
--data-urlencode 'response_format=url' \
--data-urlencode 'size=1024x1024' \
--data-urlencode 'style=vivid'
{
"created": 1699413579,
"data": [
{
"revised_prompt": "Create an anime-style image of a young female character with serene white hair. She has a classic charm reminiscent of popular manga characters. Her features, while unique and striking, evoke a sense of familiarity and comfort, likely due to their adherence to popular anime aesthetics. Her hair, bright and white, cascades down in loose curls, reflecting her youth and vitality. Her eyes, wide and expressive, are shimmering with life, embodying the vibrant spirit of anime heroines.",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-kfoU3d52DhdDtaZCzTmS5I7C/user-UedaU9TyNiOob86Re2x21o2m/img-FnzJbqc2K2538Kpt4K8zGLkG.png?st=2023-11-08T02%3A19%3A39Z&se=2023-11-08T04%3A19%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-11-08T01%3A22%3A52Z&ske=2023-11-09T01%3A22%3A52Z&sks=b&skv=2021-08-06&sig=q2y01gp7dG7apuLGCdgvsX7e///m6pbeJwOIuWJEmMU%3D"
}
]
}