メインコンテンツへスキップ
POST
/
openai
/
images
/
generations
Openai Images Generations
curl --request POST \
  --url https://api.acedata.cloud/openai/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A cute baby sea otter",
  "model": "dall-e-2"
}
'
{
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ],
  "created": 123
}

承認

Authorization
string
header
必須

ヘッダー

accept
enum<string>

Openai Images Generations Param Accept

利用可能なオプション:
application/json

ボディ

application/json
prompt
enum<string>
必須

Openai Images Generations Prompt

利用可能なオプション:
A cute baby sea otter,
A wooden bookshelf consisting of three shelves: on the top shelf one book, the second shelf three books, and the bottom shelf seven books.,
Cinematic minimal portrait of a solitary man standing in an intense orange-to-red gradient environment, strong silhouette lighting, deep shadow contrast, reflective glossy floor, symmetrical composition.,
Symmetrical design featuring two elegant blue peacocks with detailed feather patterns, surrounded by blue floral elements, intricate vintage botanical ornament, soft beige background, decorative art illustration.,
Avant-garde sports fashion advertisement, oversized basketball posed like a monumental sculpture, female athlete reclining across the ball's curved surface, giant word 'ELEVATE' in bold typography behind, burnt orange studio backdrop, glossy reflective floor.,
High-fashion surrealist poster for Rolex. Deep emerald green minimalist studio with polished reflective floor. A massive Rolex watch standing upright like a monument; a male model in tailored dark green suit leans casually against the watch face, wearing a matching Rolex.,
Ultra-realistic product photography of a rich strawberry soft-serve ice cream in a crispy waffle cone, clean modern premium aesthetic, soft serve vibrant natural pink, sculpted swirl with curled peak, lightly topped with strawberry dust.,
Hyper-realistic UI/UX mockup on a slim modern laptop on a minimal wooden desk with soft natural daylight; clean SaaS dashboard with elegant typography, glassmorphism cards, smooth gradients, subtle drop shadows, charts, sidebar navigation, macOS-style window frame.,
9:16 vertical Korean idol portrait photoshoot, 3x3 grid (nine frames), same person in all images, consistent facial features and styling, soft black mist filter effect, lowered contrast, blooming highlights, subtle glow around light sources.,
Mobile phone photo, old CCD camera aesthetic, harsh flash, grainy, dim messy indoor lighting, candid snapshot feeling, slight motion blur.,
Create a science fiction movie poster.,
以中国连环画(小人书)的风格帮我绘制大闹天宫,
新中式水墨山水海报,竖版9:16构图,东方极简美学风格,大面积留白,主题是春岚一叶红
:

"A cute baby sea otter"

model
enum<string>
必須

Openai Images Generations Model

利用可能なオプション:
dall-e-2,
dall-e-3,
gpt-image-1,
gpt-image-1.5,
gpt-image-2,
gpt-image-2:reverse,
gpt-image-2:official,
nano-banana,
nano-banana-2,
nano-banana-pro
background
enum<string>
デフォルト:auto

Openai Images Generations Background

利用可能なオプション:
transparent,
opaque,
auto
moderation
enum<string>
デフォルト:auto

Openai Images Generations Moderation

利用可能なオプション:
low,
auto
n
integer
デフォルト:1

Openai Images Generations N

必須範囲: 1 <= x <= 10
:

1

output_compression
integer
デフォルト:100

Openai Images Generations Output Compression

必須範囲: 0 <= x <= 100
output_format
enum<string>
デフォルト:png

Openai Images Generations Output Format

利用可能なオプション:
png,
jpeg,
webp
partial_images
integer
デフォルト:0

Openai Images Generations Partial Images

必須範囲: 0 <= x <= 3
size
string | null
デフォルト:auto

Openai Images Generations Size

Pattern: ^(auto|\d+x\d+)$
:

"1024x1024"

quality
enum<string>
デフォルト:auto

Openai Images Generations Quality

利用可能なオプション:
auto,
high,
medium,
low,
hd,
standard
:

"auto"

response_format
enum<string> | null
デフォルト:url

Openai Images Generations Response Format

利用可能なオプション:
url,
b64_json
:

"url"

style
enum<string>
デフォルト:vivid

Openai Images Generations Style

利用可能なオプション:
vivid,
natural
:

"vivid"

callback_url
string

Openai Images Generations Callback Url

async
boolean

Openai Images Generations Async

レスポンス

Openai Images Generations Response 200

data
object[]
必須
created
number
必須