Skip to main content
POST
Create an AIHubMix image generation

인증

Authorization
string
header
필수

Gateway-issued API key, formatted as sk-gateway-xxxxxxxx. Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).

본문

application/json
model
string
필수

Image model ID.

prompt
string
필수
Minimum string length: 1
n
integer | null
기본값:1
필수 범위: x >= 1
size
string | null
Pattern: ^[1-9][0-9]*x[1-9][0-9]*$
aspect_ratio
string | null
seed
integer | null
negative_prompt
string | null
image
any | null

Single input image as a URL, data URI, Base64 value, or URL object.

images
any[] | null
mask
any | null

Optional edit mask.

output_format
enum<string> | null
기본값:png
사용 가능한 옵션:
png,
jpeg,
webp
response_format
enum<string> | null
기본값:url
사용 가능한 옵션:
url,
b64_json
async
boolean
기본값:false
webhook_url
string<uri>
Maximum string length: 512
webhook_events_filter
enum<string>[]
Minimum array length: 1
사용 가능한 옵션:
completed,
failed,
cancelled
extra
object | null

응답

Image generation task

id
string
필수

Platform task ID.

object
enum<string>
필수
사용 가능한 옵션:
image,
video
model
string
필수
status
enum<string>
필수

Current task state. Completed, failed, and cancelled are terminal states.

사용 가능한 옵션:
pending,
in_progress,
completed,
failed,
cancelled
output
object[]
필수
error
object | null
필수
created_at
integer<int64>
필수

Unix timestamp in seconds.

completed_at
integer<int64> | null
필수
expires_at
integer<int64> | null
필수

Artifact expiry time in Unix seconds; may be null before completion.